• 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

link|improve this question
masquerading is a form of NAT, it nothing to do with how your packets are routed. – Zoredache Dec 27 '10 at 23:03
feedback

1 Answer

up vote 0 down vote accepted

Ok so i figured that out,

/etc/shorewall/providers

ovpn 1      1      main            ppp0            detect          -               -

/etc/shorewall/masq

ppp0    tun0

/etc/shorewall/route_rules

tun0                    -                       ovpn       1000
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.