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

    Trouble accessing SG-1100 web UI via IPsec

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    hangsipsecsg-1100slow speedweb gui
    16 Posts 4 Posters 2.4k 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
      tumble @stephenw10
      last edited by

      @stephenw10 just tried that and it didn't change anything about the problem. Only switching back to AES (Auto) does the trick.

      Another strange side-effect worth mentioning - after unplugging myself from the LAN port (i.e., now accessing the SG-1100 via WAN through IPsec) results in not reaching the SG-1100 due to the firewall blocking me (I see filtered ports with nmap). So I plug back in to the LAN port and check the firewall log and I can see that the firewall doesn't accept me via IPsec although the rules in the IPsec firewall tab explicitly allow it. When I reboot the SG-1100 it suddenly allows me to pass again (without me modfiying the rules or doing anything else). I guess that's caused by some states piling up and my exotic setup, so probably don't need to worry about that.

      stephenw10S 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator @tumble
        last edited by

        Can we see a screenshot of the blocks that happen when you do that?

        Steve

        T 1 Reply Last reply Reply Quote 0
        • T
          tumble @stephenw10
          last edited by

          @stephenw10
          d07c5a71-de60-4602-8b53-4b6c5ddad91e-image.png

          The 10.42.42.42 is my IPsec IP. The 192.168.178.24 was my LAN IP.

          And the IPsec tab firewall rules are:
          cd5a7fd5-de9d-489f-8428-8d47c35e760e-image.png

          with the relevant alias "BER_PRIVILEGED_VPN" looking like this:
          67a11369-6646-4d8d-8ea0-9b61e6bdf99d-image.png

          and the port scan before and after retry (this one from an earlier case like that. I apparently didn't even port scan anymore on the last one, just triggered the reboot):
          2efb1f80-18a3-441d-9731-fa0e462298af-image.png

          stephenw10S 1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator @tumble
            last edited by

            The blocked TCP:S is odd given those rules.

            What rule does it show is blocking that traffic if you mouse-over the X?

            T 1 Reply Last reply Reply Quote 0
            • T
              tumble @stephenw10
              last edited by tumble

              @stephenw10 yep, that's why I was surprised to find it in the log.

              e761d9ea-3afb-4bf4-9b2a-c84e5abe6a48-image.png

              378ed401-aa52-4d4c-bdd9-acf74b192ce9-image.png

              stephenw10S 1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator @tumble
                last edited by

                Ok, so it's not matching the pass rule somehow. Either the alias is not populating for some reason or the ruleset is not loading. Try going to Status > Filter Reload and reloading it. Check for errors.

                Steve

                T 1 Reply Last reply Reply Quote 0
                • T
                  tumble @stephenw10
                  last edited by tumble

                  @stephenw10 the alias seems fine:

                  30e7ab8d-77de-455b-8aad-d78404ee3d25-image.png

                  After a filter reload

                  Initializing
                  Creating aliases
                  Creating gateway group item...
                  Generating Limiter rules
                  Generating NAT rules
                  Creating 1:1 rules...
                  Creating outbound NAT rules
                  Creating automatic outbound rules
                  Setting up TFTP helper
                  Generating filter rules
                  Creating default rules
                  Pre-caching Block all...
                  Creating filter rule Block all ...
                  Creating filter rules Block all ...
                  Setting up pass/block rules
                  Setting up pass/block rules Block all
                  Creating rule Block all
                  Creating filter rule Block all ...
                  Creating filter rules Block all ...
                  Setting up pass/block rules
                  Setting up pass/block rules Block all
                  Creating rule Block all
                  Pre-caching Default allow LAN to any rule...
                  Creating filter rule Default allow LAN to any rule ...
                  Creating filter rules Default allow LAN to any rule ...
                  Setting up pass/block rules
                  Setting up pass/block rules Default allow LAN to any rule
                  Creating rule Default allow LAN to any rule
                  Pre-caching Default allow LAN IPv6 to any rule...
                  Creating filter rule Default allow LAN IPv6 to any rule ...
                  Creating filter rules Default allow LAN IPv6 to any rule ...
                  Setting up pass/block rules
                  Setting up pass/block rules Default allow LAN IPv6 to any rule
                  Creating rule Default allow LAN IPv6 to any rule
                  Pre-caching allow pings from BER...
                  Creating filter rule allow pings from BER ...
                  Creating filter rules allow pings from BER ...
                  Setting up pass/block rules
                  Setting up pass/block rules allow pings from BER
                  Creating rule allow pings from BER
                  Creating filter rule allow pings from BER ...
                  Creating filter rules allow pings from BER ...
                  Setting up pass/block rules
                  Setting up pass/block rules allow pings from BER
                  Creating rule allow pings from BER
                  Pre-caching allow operators to access this firewall...
                  Creating filter rule allow operators to access this firewall ...
                  Creating filter rules allow operators to access this firewall ...
                  Setting up pass/block rules
                  Setting up pass/block rules allow operators to access this firewall
                  Creating rule allow operators to access this firewall
                  Creating filter rule allow operators to access this firewall ...
                  Creating filter rules allow operators to access this firewall ...
                  Setting up pass/block rules
                  Setting up pass/block rules allow operators to access this firewall
                  Creating rule allow operators to access this firewall
                  Pre-caching allow operators to access this firewall...
                  Creating filter rule allow operators to access this firewall ...
                  Creating filter rules allow operators to access this firewall ...
                  Setting up pass/block rules
                  Setting up pass/block rules allow operators to access this firewall
                  Creating rule allow operators to access this firewall
                  Creating filter rule allow operators to access this firewall ...
                  Creating filter rules allow operators to access this firewall ...
                  Setting up pass/block rules
                  Setting up pass/block rules allow operators to access this firewall
                  Creating rule allow operators to access this firewall
                  Pre-caching Block all...
                  Creating filter rule Block all ...
                  Creating filter rules Block all ...
                  Setting up pass/block rules
                  Setting up pass/block rules Block all
                  Creating rule Block all
                  Creating filter rule Block all ...
                  Creating filter rules Block all ...
                  Setting up pass/block rules
                  Setting up pass/block rules Block all
                  Creating rule Block all
                  Pre-caching allow all OpenVPN...
                  Creating filter rule allow all OpenVPN ...
                  Creating filter rules allow all OpenVPN ...
                  Creating IPsec rules...
                  Creating uPNP rules...
                  Generating ALTQ queues
                  Loading filter rules
                  Setting up logging information
                  Setting up SCRUB information
                  Processing down interface states
                  Running plugins
                  Done
                  

                  and unplugging from LAN again, then going in via IPsec, the result of a port scan is filtered and the log shows it again:

                  0c62cc50-8a6a-46e7-9b37-f2fd79858a9e-image.png

                  Gonna reboot the SG-1110 now and expect to be fine again.

                  kiokomanK 1 Reply Last reply Reply Quote 0
                  • kiokomanK
                    kiokoman LAYER 8 @tumble
                    last edited by kiokoman

                    @tumble
                    can you please try a

                    pfctl -vvsTables
                    

                    ?
                    is the table loaded?

                    you should see something like

                    --a-r-- BER_PRIVILEGED_VPN
                    Addresses:
                    

                    etc etc
                    you can also test it with

                    pfctl -t BER_PRIVILEGED_VPN -T test 10.42.42.42
                    

                    do you have floating rules ? extra packages installed ?

                    it's strange because I have a lot of tables, some with 1000/2000 ips, and I never encountered such a problem, there must be some misconfiguration somewhere
                    but i have a guy on the italian section of the forum with a similar problem
                    tcp:s blocked by a deny rule even if the ip is inside an alias and a pass rule is present for it

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tumble @kiokoman
                      last edited by

                      @kiokoman said in Trouble accessing SG-1100 web UI via IPsec:

                      do you have floating rules ? extra packages installed ?

                      Nope, the SG-1100 is pretty much as it comes out of the box. All I did was setting the domain, configuring the DNS resolver and configure the IPsec tunnel + the rules you can see above.

                      @kiokoman said in Trouble accessing SG-1100 web UI via IPsec:

                      it's strange because I have a lot of tables, some with 1000/2000 ips, and I never encountered such a problem

                      Same here on my bigger appliances (XG-7100).

                      Unfortunately, I had to ship the SG-1100 to our branch office so I lack physical access to it for now and unless it comes back to me for some reason, I won't get physical access again too soon/ever.

                      kiokomanK 1 Reply Last reply Reply Quote 0
                      • kiokomanK
                        kiokoman LAYER 8 @tumble
                        last edited by kiokoman

                        @tumble
                        the guy on the italian forum found out that the problem was associated to a wrong value on MTU

                        wrong MTU -> blocked TCP:S

                        problem reappeared, it was not mtu for him but maybe related to
                        https://redmine.pfsense.org/issues/9296

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Hard to see how that could be. The packet is arriving over the IPSec. TCP Syn packets are tiny anyway. But if you've seen something similar before I guess....

                          But that pass rule should match and clearly isn't. IP Options on it or something odd?

                          Steve

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