Routing packets to IPsec tunnel

Results 1 to 2 of 2

Thread: Routing packets to IPsec tunnel

  1. #1
    Join Date
    May 2013

    Routing packets to IPsec tunnel


    i have following situation. I have 2 servers with public IP and i created IPsec site-to-site VPN. On 2nd server i am running OpenVPN server. How can i force 1st server that packets destined for OpenVPN are forced into the ipsec tunnel? IPsec is configured in transport mode.


  2. #2
    Join Date
    Oct 2000
    If I get you right, what you do is add a route on Server1.
    Like so:
    * OpenVPN uses adresses -
    * Ip on Server2 for ipsec:
    On Server1 you add a route to via
    The command, not tested taken from memory! "route add -net netmask"
    Server2 should already know about the OpenVPN network so nothing need to be done there.
    --- Edit:
    Also, if there are other networks behind OpenVPN on Server2 then add them in the same way. Like "route add -net netmask"
    Last edited by x; 05-18-2013 at 04:11 PM.
    In pingvino veritas!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.