Client -> Server -> Internet

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
geffers
OpenVpn Newbie
Posts: 12
Joined: Tue Jul 01, 2014 5:22 pm

Client -> Server -> Internet

Post by geffers » Thu May 18, 2017 7:35 pm

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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Client -> Server -> Internet

Post by TinCanTech » Thu May 18, 2017 8:06 pm


Post Reply