shorewall masquerading from tun0 to ppp0

Posted by damir on Server Fault See other posts from Server Fault or by damir
Published on 2010-12-27T22:48:31Z Indexed on 2010/12/27 22:55 UTC
Read the original article Hit count: 306

Filed under:
|
  • First interface is ppp0 (pptp vpn)
  • Second inteface is tun0 (openvpn)
  • Third interface eth0 (default gw interface)

Openvpn is set to change default route on client for all packets to go through tun0 vpn, that part is working ok.

I would like to make all packets from tun0 go to ppp0 and get out from that interface (MASQ) but somehow they always end up on eth0 (default gw interface)

/etc/shorewall/masq

ppp0 tun0

doesn't seem to work

© Server Fault or respective owner

Related posts about iptables

Related posts about shorewall