Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

On my Linux box, I have a tun0 interface by IPIP tunnel like:

tun0      Link encap:IPIP Tunnel  HWaddr   
          inet addr:  P-t-P:  Mask:

and I running an IPsec VPN server (ipsec-tools) on this box. How can I route all VPN traffic through the tun0 interface on the server (like Openswan's leftnexthop )?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.