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

    Using Separate Public IP Addresses as Source for Traffic leaving PFSense depending on Vlan that Traffic is originated on

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 240 Views 2 Watching
    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.
    • X Offline
      xq1xq1xq1
      last edited by

      I have 2 Static Public IP Addresses with the same Public IP address Gateway in the same subnet.

      I assigned one of these Public Static IP Addresses to my WAN Interface.

      All of my traffic that leaves my PfSense uses this Public Static IP address as the source for connecting to the internet.

      How can I use my second Public Static IP Address to be the source Public IP Address for traffic originating from only one of my VLANS?

      Thanx

      1 Reply Last reply Reply Quote 0
      • A Offline
        Asamat Global Moderator
        last edited by

        You need:

        • to add this second IP as IP Alias (Firewall/Virtual IPs)
        • to add Outbound NAT rule for this VLAN ("for traffic originating from only one of my VLANS") like
          Source: this VLAN net
          Destination: Any
          Translation Address: this Virtual IP

        https://www.netgate.com/docs/pfsense/book/nat/outbound-nat.html?highlight=outbound%20nat

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