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

    Unexplained NAT failure.

    Scheduled Pinned Locked Moved NAT
    13 Posts 3 Posters 4.0k 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.
    • F
      finch
      last edited by

      Something I've noticed that may be part of the problem…

      When I reload the NAT configuration and monitor the reload, it does not progress beyond this message:

      Processing early nat rules for package /usr/local/pkg/squid.inc...

      As part of the troubleshooting process I removed Squid. There is no squid.inc in that directory.

      Edit. I'm trying to reinstall Squid. The installation hangs at "Reconfiguring filter... One moment please..." with the message "This operation may take quite some time, please be patient.  Do not press stop or attempt to navigate away from this page during this process."

      It is taking quite some time... it's a fast machine - Q6600 - and it's been taking quite some time for the past ten minutes. The system log displays this:

      Aug 6 15:05:06 squid[17791]: Bungled (null) line 182: http_reply_access allow all
      Aug 6 15:05:06 Squid_Alarm[17117]: Attempting restart…
      Aug 6 15:05:06 Squid_Alarm[16609]: Squid has exited. Reconfiguring filter.
      Aug 6 15:05:01 squid[13956]: Bungled (null) line 182: http_reply_access allow all
      Aug 6 15:05:01 check_reload_status: Reloading filter

      It doesn't tell me which file line 182 is in so I can investigate…

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        If you remove squid, do you get a working firewall?

        1 Reply Last reply Reply Quote 0
        • F
          finch
          last edited by

          @podilarius:

          If you remove squid, do you get a working firewall?

          Nearly. I talked someone through a factory reset. Now LAN clients can see everything but the servers on the OPT1 bridge.

          Everyone else - the Internet on the WAN interface - can see those servers. I think I know what the problem is - it's with the KVM configuration for the servers. pfSense is passing the packets.

          I'm struggling to install the OpenVPN export tool because apparently the pfSense box has no Internet connectivity even though I'm connected to it via SSH and HTTP and it can resolve hostnames. But there's an error message when I navigate to the list of packages to install.

          1 Reply Last reply Reply Quote 0
          • F
            finch
            last edited by

            I have managed to access the box running KVM and the Ovirt management tool. Hooray for port forwarding! Unfortunately rebooting that machine hasn't made a difference.

            At the moment, the situation is this:

            • LAN can see the Internet. This is a good thing.
            • WAN can see the Internet. Very good!
            • Internet can see OPT1. Great success.
            • LAN cannot see servers on OPT1. Very bad.

            Basically, from my hotel in Bangkok I can ping/access servers on OPT1 but I cannot do so from the pfSense box itself, nor from the LAN.

            This is driving me nuts. I really don't want to spend 14 hours getting home to perform a 4 hour fix (building a new box with new hardware) and then head back here… another 14 hours... ugh.

            Any suggestions?

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

              Are they on different physical interfaces??

              1 Reply Last reply Reply Quote 0
              • F
                finch
                last edited by

                Yes, they are. WAN is re0, LAN is em0, and OPT1 (connected to the virtualised servers) is on em1.

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

                  do you have rules for em0 -> em1 ?

                  1 Reply Last reply Reply Quote 0
                  • F
                    finch
                    last edited by

                    I have the default LAN to anywhere rule enabled and I have a rule on OPT1 allowing all traffic - OPT1 is essentially unfiltered at the moment.

                    1 Reply Last reply Reply Quote 0
                    • P
                      podilarius
                      last edited by

                      I would check the routes. Then I would check NAT rules (outbound as well). Are there any other rules besides your allow all in opt1 and LAN firewall rules?
                      Have you done a tcpdump at the pfsense machine first on LAN, then on opt1 to see if the traffic is making it through the firewall correctly?

                      1 Reply Last reply Reply Quote 0
                      • F
                        finch
                        last edited by

                        Well, it looks as though the problem has resolved itself.

                        And by that I mean that the guy who unplugged a cable from a switch and then replaced it to a different port finally told me that he had done so. Unsurprisingly, when that was fixed, the problem "magically" disappeared.

                        Thanks for the help, guys :)

                        1 Reply Last reply Reply Quote 0
                        • P
                          podilarius
                          last edited by

                          Ah … the user tried to hide his mistake ... happens all the time. Glad you have the issue resolved ... and don't have to make crazy flight plans for a 1 minute fix.

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