IPsec tunnel up, but no route added?

  • Hi,

    I have established an IPsec tunnel to a Cisco PIX successfull.

    INFO: IPsec-SA established: ESP Y.Y.Y.Y[0]->X.X.X.X[0] spi=2713566(0x2967de)
    INFO: IPsec-SA established: ESP X.X.X.X[0]->Y.Y.Y.Y[0] spi=1804963616(0x6b958f20)

    Tunnel config: <- X.X.X.X <=> Y.Y.Y.Y ->

    The tunnels is pointing to a specific host address, not a network Why I don't see any routing entry to the host after establishing the tunnel and why does pfSense route the traffic through the default gateway? How I can add a route to access the single host? Do I have to add a NAT rule?

    With ifconfig -an I can't see any ipsec interfaces. Which makes it difficult to add a static route.

    Thanks for help,


  • Rebel Alliance Developer Netgate

    IPsec does not use routes. The traffic is grabbed in the kernel.

    As for testing, you should be testing from a client PC behind pfsense, not from the firewall itself, unless you have taken some steps first, as detailed here:


  • Jimp,

    Thanks for the good hint. I have talked to the Admin of the other end of the tunnel and he told me I have to NAT my source IP to addr X.X.X.X. Is it also possible to set a external IP instead of the LAN IP in the static routes panel?



  • Rebel Alliance Developer Netgate

    Unfortunately you cannot NAT an address for IPsec in pfSense. It's a limitation of the underlying software. It's been talked about before, and a bounty was even put up at one time, but no solution has been completed.

    As for static routes, you can set routes to external addresses on WAN, but they must be in the same subnet as WAN. You can't set a route to an arbitrary IP, it has to be a directly connected path.

Log in to reply