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

    How to choose outgoing IP for local traffic to ipsec tunnel?

    Scheduled Pinned Locked Moved IPsec
    1 Posts 1 Posters 1.1k 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.
    • B
      bbo
      last edited by

      Hi,

      I have working pfsense setup - a few vlans, outbound wan interface, ipsec tunnel to headquaters. It is fine for clients - ipsec is correctly passed to tunnel, the rest of traffic goes to internet.

      But there is a problem with traffic originating localy from pfsence destined to headquaters. This traffic has WAN IP as a source and therefore is is not passed to tunnel but sent directly to internet. I need to find a way how to set source IP (IP of one of the other interfaces) for localy generated traffic. Something like 'src' in linux command 'ip route add XXXXX via XXXX src XXXX'.

      Can you help me?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.