Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • 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)


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
up vote 0 down vote accepted

Ok so i figured that out,


ovpn 1      1      main            ppp0            detect          -               -


ppp0    tun0


tun0                    -                       ovpn       1000
share|improve this answer

Your Answer


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.