F
F
FlipWho2018-10-04 12:48:01
linux
FlipWho, 2018-10-04 12:48:01

How to set up NAT on pptpd-VPN with one network adapter?

Hello.
There is a problem: you need to make a VPN from a cloud server (Centos / Ubuntu) with one network adapter, so that when people connect to the VPN, all traffic leaves through a remote gateway.
From the simplest - I took pptpd, configured it, but I can't deal with NAT.
What rules should be written in order for people from the VPN subnet to flow through eth0?
If possible - using an example, let:
Physical adapter = eth0 = 1.1.1.1
Wirth VPN adapter = eth1 = 2.2.2.2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
myppomeu, 2018-10-16
@FlipWho

So have you tried it?
Values, of course, change for themselves.
In general - here , for example, is a translation of the iptables manual (the old version, there is a fresh version in English).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question