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

    Outbound NAT - am I missing something here?

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 997 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.
    • T Offline
      timthetortoise
      last edited by

      So I'm not sure I'm understanding how manual outbound NAT actually works. I've gotten it to work for a few hosts (after much trial and error, and only after using the opposite WAN connection that I would expect it to need. Then later, switching it to the correct one still worked).

      My configuration is attached. Apparently I'm completely lost in how this is supposed to work.

      So let's say I want to have the 192.168.122.0/23 network go out through the WAN_GUEST interface, and everything else out of WAN. How would I configure outbound NAT? Keep in mind I've tried it with and without the WAN rule for 192.168.122.0/23, with the same result (which would be it going out of the WAN interface until I switch my default gateway to WAN_GUEST).
      outbound.png_thumb
      outbound.png

      1 Reply Last reply Reply Quote 0
      • P Offline
        phil.davis
        last edited by

        The outbound NAT only tells the system under what conditions to do NAT on packets/flows. It does not actually change the routing of packets. As well as having NAT rules to apply NAT on the way out to the public internet for packets with private IPs, you need firewall rules with the gateway specified to direct particular stuff to particular WANs.

        Also, if all your internal private subnets are LANs direct-connected to pfSense, and all your public WANs are also direct-connected, then Automatic Outbound NAT should be fine - pfSense knows all about the traffic that could need NAT and can sort it out.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • T Offline
          timthetortoise
          last edited by

          Unfortunately due to some poor design decisions made before I arrived, certain servers need to go out via certain virtual IPs, so manual outbound NAT is a requirement in my case.

          @phil.davis:

          As well as having NAT rules to apply NAT on the way out to the public internet for packets with private IPs, you need firewall rules with the gateway specified to direct particular stuff to particular WANs.

          That completely answered my question, thank you very much for the help!

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