Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
  • 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

share|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
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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