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

    Automatic NAT Rules Generation not being generated for static routes

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 1.9k 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.
    • J
      jsvg
      last edited by

      Hey guys,

      I'm having some trouble with getting pfSense to autoNAT traffic that isn't on pfsense's primary subnet. I've added static routes, but not luck.

      First, my setup:

      Next, reading this passage from the holy book of pfsense: https://doc.pfsense.org/index.php/Automatic_NAT_Rules_Generation

      In a default single WAN connection configuration, pfSense automatically generates NAT rules for every directly connected interface, and any networks reachable on internal networks you define via static routes, to NAT outbound traffic to the Internet to the WAN IP.

      What I did: Went to the system->routing->gateways page and added 192.168.127.122 as a gateway on the lan interface. Then I went to went to the system->routing->routes tab and added 192.168.122.0/26 goes to 192.168.127.122.

      Clients on the 192.168.122.0/26 network cannot access the internet. I flipped pfense to manual NAT and added rules for 192.168.122.0/26 to exit via both gateways. This fixed the problem.

      If one reads that man page from pfsense, I shouldn't have had to do this. What am I doing wrong? Many thanks.

      A 1 Reply Last reply Reply Quote 1
      • A
        andrzejm @jsvg
        last edited by

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