Page 1 of 1

Client -> Server -> Internet

Posted: Thu May 18, 2017 7:35 pm
by geffers
Folks,

Setting up slowly so I know what and why things are happening.

Set up a server and client with simple PSK. Set server to forward traffic. Also on server set the following;

Code: Select all

sudo iptables -t nat -A POSTROUTING -s tun0 -o wlx74da382e0a3f -j MASQUERADE
Now am able to ping from client to server but if I ping an external internet address it goes via the client's normal eth or wlan adapter.

Am I missing something obvious, should there be some command routing tun to eth ?

Geffers

Re: Client -> Server -> Internet

Posted: Thu May 18, 2017 8:06 pm
by TinCanTech