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

    Basic out-going NAT isn't working

    Scheduled Pinned Locked Moved NAT
    30 Posts 7 Posters 5.3k 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.
    • L
      lemb
      last edited by

      Firewall is routing the packets like it's a router. Capturing the packets on the WAN interface shows that the source IP remains unchanged (private IP).

      I've triple checked that setting on Setup>>Firewall/NAT>>Disable all packet filtering isn't on.
      Outbound NAT rules are set to automatic, but even configuring it to Manually and adding a default rule doesn't do anything.

      I haven't seen anything useful in the system logs.

      A "pfctl -s state" command returns an empty table.

      I upgraded it from 2.1.4 to 2.1.5 thinking maybe something behind the scenes was causing problems but whatever is going on must be in the configuration file as the issue persists.

      How does pfSense determine which interfaces require natting? Does it have something to do with an interface having a default gateway?

      Any other things I can check for via the console?

      I heard that pfblocker can cause problems. I did have it installed but removed it to rule it out.

      Besides rebuilding the firewall I'm out of ideas.

      Help me Obi Wan Kenobi, you're my only hope!

      1 Reply Last reply Reply Quote 0
      • S
        Supermule Banned
        last edited by

        :D

        Have you defined a gateeway in routing menu?

        1 Reply Last reply Reply Quote 0
        • L
          lemb
          last edited by

          The WAN interface is configured as DHCP. The gateway is automatically and assigned due to that. looking at the route table the default gateway seems just fine.

          1 Reply Last reply Reply Quote 0
          • S
            Supermule Banned
            last edited by

            And you have set DNS in DNS settings for FW ?

            1 Reply Last reply Reply Quote 0
            • L
              lemb
              last edited by

              hmm, I want to say yes, but I also know that they weren't ideal. Let me have a look at that.

              Edit: The "Allow DNS server list to be overridden by DHCP/PPP on WAN" is checked and the DNS servers are listed correctly on the dashboard.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                So lets see this sniff where your saying IP is not being changed.  Change back to auto on your outbound nat.

                what does your state table look like - your not seeing a state that has been natted?

                states.png
                states.png_thumb

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • R
                  rubinho
                  last edited by

                  Same Problem here with v. 2.1.5  :/

                  As soon as I make any change under 2.1.5 on the outbound NAT, NAT doesn't work anymore.

                  A return to automatic also does not work anymore

                  I have downgraded to 2.1.4 and it works again.

                  I have already opened a thread due to the problem in the German section. (sry for duple Post)

                  [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                  [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    So as I asked the OP, lets see your state stable showing these unchanged IPs and lets see your nat table.  There rarely is a reason to use manual if you ask me.  What did you think you required manual natting outbound for?

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • R
                      rubinho
                      last edited by

                      I use manual NAT for Multi-WAN and a OVPN Interface.

                      [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                      [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        So ok, lets see these states where your not changing the outbound IP and your outbound nat rules..  Without some info to work from, its just PEBKAC sorry ;)

                        "NAT doesn't work anymore."

                        Do you take your car to the mech and just say it doesn't work anymore ;)  Do you go to the doc and when he asks whats wrong - "I'm Sick"

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • R
                          rubinho
                          last edited by

                          Sorry for the poor information. My english is cruel.

                          It is very complicated for me to detail to write in english.

                          It is easier for me if you tell me by what and how I look and I'll tell you what comes out, ok ?

                          One in advance … the command "pfctl -s state" brings an empty result, the firewall-log is empty

                          [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                          [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            so this is empty?

                            [2.1.5-RELEASE][root@pfsense.local.lan]/root(3): pfctl -s state
                            vmx3f0 ipv6 24.13.xx.xx -> 184.105.253.14      MULTIPLE:MULTIPLE
                            vmx3f0 ipv6-icmp ff02::1[192] <- fe80::201:5cff:fe66:4046      NO_TRAFFIC:NO_TRAFFIC
                            gif0 ipv6-icmp 2001:470:xxx:9c4::2[51329] -> 2001:470:xxx:9c4::1      NO_TRAFFIC:NO_TRAFFIC
                            vmx3f2 tcp 17.110.224.14:443 <- 192.168.2.230:56975      ESTABLISHED:ESTABLISHED
                            vmx3f0 tcp 192.168.2.230:56975 -> 24.13.xx.xx:1609 -> 17.110.224.14:443      ESTABLISHED:ESTABLISHED
                            vmx3f0 ipv6-icmp ff02::1 <- fe80::201:5cff:fe66:4046      NO_TRAFFIC:NO_TRAFFIC
                            vmx3f1 tcp 70.37.56.25:443 <- 192.168.1.100:26456      ESTABLISHED:ESTABLISHED
                            <snipped rest="" of="" output="">Then you got NOTHING going through your pfsense if you have no STATES!!  Did you turn off nat and firewalling and just using it as a router?</snipped>

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            1 Reply Last reply Reply Quote 0
                            • R
                              rubinho
                              last edited by

                              what can I say …  :-\

                              /root(5): pfctl -s state
                              /root(6):

                              pfsense1.jpg
                              pfsense1.jpg_thumb
                              pfsense2.jpg
                              pfsense2.jpg_thumb

                              [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                              [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                Is traffic flowing through the firewall?  Without states there is either no traffic or something really wrong..  I would would do a clean install to be honest.

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rubinho
                                  last edited by

                                  @johnpoz:

                                  Is traffic flowing through the firewall?

                                  No, it work only the services, are directly connected on the WAN interface, such as squid, ipsec, ovpn etc…

                                  @johnpoz:

                                  Without states there is either no traffic or something really wrong..

                                  Yes i know :D

                                  @johnpoz:

                                  I would would do a clean install to be honest.

                                  Thats the Problem
                                  It is a new clean install. I have reinstalled the latest version of pfSense (2.1.5 live-install x64), once on an APU and once on an  NF9D-2550 board… both the same result.
                                  As soon as I set on manual NAT and make a restart, NAT doesn't work anymore.

                                  I have now the v2.1.4 installed on my APU, and there it works with manual NAT. I don't know why ?!

                                  [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                                  [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

                                  1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by

                                    well seems your doing the nats wrong..  lets see these nats your doing.

                                    so it works if you have auto nats out of the box on a clean install?

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      rubinho
                                      last edited by

                                      If I do a clean install, Auto NAT works.
                                      Because, when I switch from Auto-NAT to manual NAT and let the auto settings, add a manual rule and make a restart, has NAT stopped working.

                                      2.1.4 everything runs without any problems, but under 2.1.5 with the same mappings, NAT stops (after reboot)

                                      By the way, i have an Alix with 2.1.5 nano-bsd image, there manual NAT runs without problems  :o

                                      Here a screenshot of a mapping without Multiwan.

                                      pfsense3.jpg_thumb
                                      pfsense3.jpg

                                      [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                                      [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

                                      1 Reply Last reply Reply Quote 0
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by

                                        So its working with the auto, even switched to manual.. But when "add a manual rule and make a restart, has NAT stopped working."

                                        So what are you adding - clearly this is what is breaking it.

                                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                                        If you get confused: Listen to the Music Play
                                        Please don't Chat/PM me for help, unless mod related
                                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kejianshi
                                          last edited by

                                          To me this outbound NAT looks strange.  I don't see how it could work well.  I'd expect everything to exit over wan_kdg with these setting.

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            rubinho
                                            last edited by

                                            ???

                                            Guys, i have only to add one rule, the system itself has created all other rules ?!

                                            What should be wrong?

                                            [Pfsense 2.4] Supermicro A1SRI-2558F@Atom C2558 4Gb RAM
                                            [Pfsense 2.4] Jetway NF9D@Atom D2550 + AD3INLAN-G Expansioncard  (3x Intel 82541PI Gigabit Controller)

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