• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Routing specific /24 over ipsec

Scheduled Pinned Locked Moved IPsec
2 Posts 2 Posters 418 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    normtodd
    last edited by Mar 4, 2018, 8:10 PM

    Hello -

    I have a network of 2 pfsense routers in 2 locations.

    everything is connected over ipsec and working great, everything can ping everything and traffic flows and its awesome.

    pfsense1 is 10.47.0.0/16
    pfsense2 is 10.72.0.0/16

    here is my challenge:

    I have a /24 inside the pfsense1 network of 10.47.5.0/24

    I need that specific /24 to ONLY route through the network of pfsense2, that is to say the traffic from that 24 enters and exits from the wan of pfsense2.

    I have looked elsewhere and seen example of how to do this using openvpn, where route statements can be used to direct traffic using the openvpn gateway.

    unfortunately, i do not see an ipsec gateway declared in my setup, so I cannot do that despite the fact that everything is working (and has been working well) for many months.

    any guidance would be greatly appreciated, and i am standing by to upload any configs from any router.

    all the best
    NT

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Mar 5, 2018, 4:53 AM

      That's because you cannot policy route IPsec like you can OpenVPN.

      You might be able to use a phase 2 of 10.47.5.0/24 <-> 0.0.0.0/0 with the reciprocal on the other side, but OpenVPN is a lot more flexible in this regard.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received