Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    I am dying - HELP - Firewall fuck up

    Scheduled Pinned Locked Moved Firewalling
    13 Posts 4 Posters 2.3k Views 4 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.
    • M Offline
      mhank
      last edited by mhank

      Hi everybody
      I am dying (not slow, but rapidly) - not an adanced user, but a medium user -

      I have some firewall rules, basically, made an alias with the IPs and an alias with the Ports
      But stil the firewall keeps blocking

      Then I, in a moment of weakness, used the "+" option in the logs, to allow the traffic - AND STILL - Pfsense is blocking the traffic

      HELP - I am desperate !

      the log says:

      May 9 04:48:23 	WAN 	Default deny rule IPv4 (1000000103) 	172.58.110.191:37850		XXX.XXX.XX.166:5060		UDP 
      

      But, the firewall have this rule:

      IPv4 TCP/UDP 	* 	* 	IPs behind firewall	VoIP_public_ports 	* 	none
      

      A other one is this one, even do everything is allowed

      2cdae8d0-d7f2-4c9a-982d-598190b1c8f3-billede.png

      GertjanG V 2 Replies Last reply Reply Quote 0
      • GertjanG Online
        Gertjan @mhank
        last edited by

        @mhank said in I am dying - HELP - Firewall fuck up:

        the log says:
        May 9 04:48:23 WAN Default deny rule IPv4 (1000000103) 172.58.110.191:37850 XXX.XXX.XX.166:5060 UDP

        That's the default final (hidden) "block all traffic" rule.
        That rule is applied when "none of the above" match the traffic.
        The "none of the above" are the rule you created in the GUI.

        Like this :

        7741c93b-f377-45d4-af30-a8c0ba306ca9-image.png

        The last rule in my image is a "pass all" rule, pretty close to the rule you've found on LAN when you installed pfSense.

        @mhank said in I am dying - HELP - Firewall fuck up:

        IPs behind firewall

        What IPs did you list in this alias ?

        49e9c242-3427-4e01-bec4-c4722d9d0594-image.png

        If 192.168.1.0/24 is your LAN, who is this network 192.168.8.0/24 ?

        No traffic coming into "LAN19216810" was allowed to go to 192.168.8.0/24 so, yes, the default bock all rule was hit again == traffic blocked.
        "LAN19216810" is your LAN, right ?

        Show the entire image, not just fragments.

        No "help me" PM's please. Use the forum, the community will thank you.

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          mhank @Gertjan
          last edited by

          @gertjan
          i Do not follow, e..g. traffc between 192.168.1.0 and 192.168.8.0 are 2 different sites, connected via VPN.
          The rule says

          26c83187-c8eb-4df6-b45e-026935f69f69-billede.png

          so how can that be blocking?

          1 Reply Last reply Reply Quote 0
          • M Offline
            mhank @Gertjan
            last edited by

            @gertjan also this error from right now

            3d5f1f9c-fd36-4eb4-930b-a687c7edb518-billede.png

            so it is blocked, even do LAN rule says
            b63e9646-63d9-449f-8ef2-2f88d608e5f7-billede.png

            1 Reply Last reply Reply Quote 0
            • M Offline
              mer
              last edited by

              the 0/0B indicates the rule is not getting hit.
              Did you reboot the box or reset the states after adding the rules?
              Where did you define the rule, WAN, LAN, Floating?
              Ordering of the rules is important.
              The output of the command (ssh in, console or diag,command prompt from the gui):

              pfctl -sr

              shows exactly how everything is applied and can be helpful.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mhank @mer
                last edited by

                @mer
                I rebooted the box after applying the settings,
                The rules are under "lan" and under WAN (depending on the traffic)

                1 Reply Last reply Reply Quote 0
                • V Offline
                  viragomann @mhank
                  last edited by

                  @mhank said in I am dying - HELP - Firewall fuck up:

                  A other one is this one, even do everything is allowed

                  This blocked packet is "out of state", which indicates that the SYN packet went another path.

                  To investigate this you need to provide some more details about your network. How are the involved devices connected to pfSense? Which subnets do you have configured?
                  Maybe you have a network map.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mhank @viragomann
                    last edited by

                    @viragomann I will try to explain as good as I can :)

                    We a PFsense HA setup -

                    We have the

                    WLAN IP
                    LAN IP
                    DMZ zones (public IPs)
                    IP SEC (to our other datacenters)

                    Traffic to the PUBLIC IPs are routed through the firewall and to the correct server.
                    Server is routing back out with its public IP

                    I hope that make sense?

                    For some reason, the firewall blocks packets that are allowed, and I can not figure out why
                    We have similar setup in two other datacenters thats works perfect

                    V 1 Reply Last reply Reply Quote 0
                    • V Offline
                      viragomann @mhank
                      last edited by

                      @mhank
                      You initial post shows two blocks and one pass rule. The first one is UDP to port 5060 on WAN and the second one is a TCP to port 33233 with SA flag.
                      Since only the first one obviously should match to the shown firewall rule, we have to troubleshoot both separately.

                      As you can see in the firewall log, the UDP rule doesn't match. So double-check your firewall rule. The parameter which have to match are: interface, address family, protocol, source IP + port, destination IP + port.
                      We sadly can verify only a view of them, since we cannot see all. So you have to check if it's on the proper interface and if the destination IP and port is included in these aliases.

                      For the second block we need to know how the source and destination IPs are connected to pfSense. Presumably this is a request packet, so that the origin destination the packet went to IP is 192.168.8.11 and port 33233.
                      But as I stated above, it either went another route or the connection timed out. Without more details about your setup, it's pretty hard to say.

                      M 2 Replies Last reply Reply Quote 0
                      • M Offline
                        mhank @viragomann
                        last edited by

                        @viragomann
                        Thank you for your reply

                        I might be a litlle stupid here, but, if I look at the LAN and the rule is as below, I would say all LAN traffic would, pass is that correct?

                        78725fcc-d32a-4df2-aed8-45aec6675e78-billede.png

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mhank @viragomann
                          last edited by

                          @viragomann

                          or this block:

                          fed2dd8a-85e9-42ef-8005-463f6bfc37cf-billede.png

                          even do, I have these two rules:

                          e20631b2-4e12-42b7-ad61-d99651cce47b-billede.png

                          7c9d329b-51bc-4d3a-85fc-8db2bf24332d-billede.png

                          I am not anyway anexpert, but it is very hard for me to understand, why these blocks happen

                          V 1 Reply Last reply Reply Quote 0
                          • V Offline
                            viragomann @mhank
                            last edited by

                            @mhank
                            Again, the blocks you're seeing are out of state. The firewall rule only effects the initial SYN packet of a TCP connection. If the packet is passed, pfSense created a connection in its state table and all following packets of this connection are passed as well.
                            But your blocks doesn't show the SYN packet!

                            So you've probably an asymmetric routing issue: https://docs.netgate.com/pfsense/en/latest/troubleshooting/firewall.html.
                            That means the SYN packet from the client didn't pass pfSense. So there is no connection created in its state table and hence the ACK from the server is blocked.

                            Learn how TCP connections work: https://en.wikipedia.org/wiki/Transmission_Control_Protocol

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              mer @viragomann
                              last edited by

                              @viragomann said in I am dying - HELP - Firewall fuck up:

                              So you've probably an asymmetric routing issue

                              That could be a possibility, @mhank says back up a couple they are running a PFSense HA setup.
                              I would think a bit more information on the HA part could help. That's assuming HA is High Availability.

                              Are there multiple pfsense boxes acting redundantly?
                              Multiple WANs into a single pfSense box?

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