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

    New User to pfSense - some doubts

    Scheduled Pinned Locked Moved General pfSense Questions
    96 Posts 9 Posters 18.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      @HansSolo said in New User to pfSense - some doubts:

      Agreed. Unless......that rule doesn't actually give said access.

      It DOES!! since its a rule on your WAN...

      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.7.2, 24.11

      H 1 Reply Last reply Reply Quote 0
      • H
        HansSolo @johnpoz
        last edited by HansSolo

        @johnpoz said in New User to pfSense - some doubts:

        @HansSolo said in New User to pfSense - some doubts:

        Agreed. Unless......that rule doesn't actually give said access.

        It DOES!! since its a rule on your WAN...

        But in the source it lists a pfBlockerNG file, NOT a network location. What do you interpret that to mean?

        OTOH...I can't speak for anyone else, but there's so much information to absorb in such a short time, brain farts do occur.
        And it's possible I experienced a real winner.

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

          Doesn't matter if it only allows source IPs.. it is allowing to ANY ANY as dest.. So if user had a port forward to say 443 behind pfsense.. And it created a any any rule above that even if locked down to only NA... It now allows access to pfsense web gui and anything else that listens on pfsense wan, say dns, etc. etc.

          Which is BAD!!! I just installed that version, enabled it and did an update.. No rules on the WAN, only the rule on my lan blocking outbound access to stuff.

          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.7.2, 24.11

          H 2 Replies Last reply Reply Quote 0
          • H
            HansSolo @johnpoz
            last edited by

            @johnpoz said in New User to pfSense - some doubts:

            Doesn't matter if it only allows source IPs.. it is allowing to ANY ANY as dest.. So if user had a port forward to say 443 behind pfsense.. And it created a any any rule above that even if locked down to only NA... It now allows access to pfsense web gui and anything else that listens on pfsense wan, say dns, etc. etc.

            Which is BAD!!! I just installed that version, enabled it and did an update.. No rules on the WAN, only the rule on my lan blocking outbound access to stuff.

            Ok.
            Then I have no clue how that rule got there and where it came from.
            I may have to chalk it up to trying to learn too much too fast over the last 3 days.

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

              pfBlocker just by itself can be pretty confusing IMO. There's a LOT there to take it.

              I like to have full control of what rules are where which is why I recommend the Native Aliases approach. It's easier to understand the resulting ruleset when you have added everything yourself.

              pfSense is guilty of that in other areas, you have to add firewall rules to allow OpenVPN traffic but IPSec traffic is passed by default by rules added automatically. You can disable that at least. If we changed that now it would break hundreds of thousands of VPNs though! ๐Ÿ™„

              Steve

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

                So I see this warning

                Also consider protecting just the specific open WAN ports and it's just as important to protect the outbound LAN traffic.

                And if you open the advanced, you can limit to specific ports..

                But yeah if just set to inbound us, it creates this rule

                ===[  Aliastables / Rules  ]================================
                
                Firewall rule changes found, applying Filter Reload
                

                Yeah this is a HORRIBLE implementation... Just freaking HORRIBLE!!

                wanrule.png

                That should be limited to wan address on specific PORTS, unless the user changes it... Then that would be on them.. But I can see how new users might just open wide their wan... Arrrgghhh!!

                Or anything behind pfsense if they had a routed netblock, etc. etc.

                paging @BBcan177 again, I don't see how such a thing would be ok... Ultimately its on the admin of the firewall to understand what they are doing, and what is set... But pfsense does try and keep the users from shooting themselves in the foot.. This is not doing that at all..

                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.7.2, 24.11

                BBcan177B 1 Reply Last reply Reply Quote 1
                • H
                  HansSolo @johnpoz
                  last edited by HansSolo

                  @johnpoz said in New User to pfSense - some doubts:

                  So I see this warning

                  Also consider protecting just the specific open WAN ports and it's just as important to protect the outbound LAN traffic.

                  And if you open the advanced, you can limit to specific ports..

                  But yeah if just set to inbound us, it creates this rule

                  ===[  Aliastables / Rules  ]================================
                  
                  Firewall rule changes found, applying Filter Reload
                  

                  Yeah this is a HORRIBLE implementation... Just freaking HORRIBLE!!

                  wanrule.png

                  That should be limited to wan address on specific PORTS, unless the user changes it... Then that would be on them.. But I can see how new users might just open wide their wan... Arrrgghhh!!

                  So I'm not nuts or insane?...... โ˜ 
                  I gave the system the benefit of the doubt that it was performing some kind of "magic" on the back end.

                  Then checked to see if my system was compromised in any way from outside my network and couldn't find any compromises or openings etc. I agree those settings could be dangerous but again, it didn't seem to allow the access it appears it would. maybe because of redundant filters I had setup on the Opt1 and LAN interfaces.

                  I ALSO changed the port on which the WebConfigurator resides early on. I didn't like it on port 80 at all.
                  โœŒ

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

                    In the past when I had played with this, I had always just used the aliases in my own rules.. This really needs to be changed to force the user to easy select their wan address as destination or the any, vs forcing them to use an alias. And it should WARN them about ANY as destination especially above all other rules on the wan,

                    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.7.2, 24.11

                    H 1 Reply Last reply Reply Quote 1
                    • H
                      HansSolo @johnpoz
                      last edited by

                      @johnpoz said in New User to pfSense - some doubts:

                      In the past when I had played with this, I had always just used the aliases in my own rules.. This really needs to be changed to force the user to easy select their wan address as destination or the any, vs forcing them to use an alias. And it should WAN them about ANY as destination especially above all other rules on the wan,

                      Totally agree.
                      But would still like to hear from the developer to make sure there is no "back end" magic going on here.

                      Seems to write something like this they would know better, right?

                      1 Reply Last reply Reply Quote 0
                      • H
                        HansSolo
                        last edited by HansSolo

                        also, Jon....this is probably a totally different topic but....
                        You said you have no WAN rules, only outgoing LAN rules.....correct?

                        If you have no WAN rules, then everything inbound at least (probably outbound as well) "should" be blocked by default, right? WAN is your "gateway" to external ie the Internet.

                        So how then does anyone get to your server?
                        Only way a server is available to the public that I know of is specific WAN rules that allow traffic inbound.

                        Such as ALLOW from * * TO 'server address' 'server port'

                        And most often, it involves Natting from your Public IP address to the server's IP (which is usually Opt1)

                        Just curious. Always ready and eager to learn something new.

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

                          Yes, that's true. Without any pass rules on WAN no external clients can open a connection to a server behind the firewall.

                          However traffic from LAN side client can still open outbound connections as long as there are pass rules on LAN to allow it in.

                          Sorry, initially I though that was what you were trying to do. It's a common misconception to put pass rules on WAN to allow traffic out.

                          Technically the pf packet filter that pfSense is built on can filter traffic in both directions on all interfaces. pfSense configures it to allow traffic out on all interfaces by default and filter traffic in according to the user rules.
                          The only exception to that are rules on the floating tab that can be applied outbound. But don't worry about that until you're familiar with the normal rules. ๐Ÿ˜‰

                          Steve

                          johnpozJ 1 Reply Last reply Reply Quote 1
                          • GertjanG
                            Gertjan
                            last edited by Gertjan

                            @HansSolo said in New User to pfSense - some doubts:

                            You said you have no WAN rules, only outgoing LAN rules.....correct?

                            I guess I can answer that one on behalf of @johnpoz (as he said so above) :
                            He has some pass firewall rules on his WAN interface, created when building the a NAT rules.
                            An incoming UDP port 123 directed to his NTP server.
                            An incoming TCP port 80/443 directed to his Plex server.
                            Probably a VPN UDP port too.

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            1 Reply Last reply Reply Quote 0
                            • chpalmerC
                              chpalmer
                              last edited by

                              @HansSolo

                              How do you have your port forwards configured? Specifically "Filter rule association" ??

                              Triggering snowflakes one by one..
                              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                              chpalmerC 1 Reply Last reply Reply Quote 0
                              • chpalmerC
                                chpalmer @johnpoz
                                last edited by chpalmer

                                @johnpoz said in New User to pfSense - some doubts:

                                @HansSolo said in New User to pfSense - some doubts:

                                So are you also agreeing that pfSenseBlockerNG has incorrectly configured their settings?

                                NO!!! I just ran through the wizard and it didn't create single rule on my WAN!!

                                pfBlockerNG 2.1.4_16 here.. Yep- no wizard on NG.
                                It does not do any good to modify those rules because an update will rewrite them back to the way they were..

                                Triggering snowflakes one by one..
                                Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                H 1 Reply Last reply Reply Quote 1
                                • H
                                  HansSolo @chpalmer
                                  last edited by HansSolo

                                  @chpalmer said in New User to pfSense - some doubts:

                                  @johnpoz said in New User to pfSense - some doubts:

                                  @HansSolo said in New User to pfSense - some doubts:

                                  So are you also agreeing that pfSenseBlockerNG has incorrectly configured their settings?

                                  NO!!! I just ran through the wizard and it didn't create single rule on my WAN!!

                                  pfBlockerNG 2.1.4_16 here.. Yep- no wizard on NG.
                                  It does not do any good to modify those rules because an update will rewrite them back to the way they were..

                                  Whoa!
                                  I just ran into this on my pfSense machine.
                                  I had changed ALL those rules and then a bit later when I went back it had reset them ALL to ANY ANY.

                                  Anyone know what's going on? Is it SUPPOSED to re-write them back to ANY ANY ????

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

                                    That's what pfBlocker does, it creates and maintains those rules. But you can set what port and destination it uses:

                                    Selection_620.png

                                    Or you can set the list action to alias only and then add the rules manually. Which is what I would do.

                                    Steve

                                    H 1 Reply Last reply Reply Quote 1
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator @stephenw10
                                      last edited by

                                      @HansSolo said in New User to pfSense - some doubts:

                                      You said you have no WAN rules, only outgoing LAN rules.....correct?

                                      What I meant is pfblocker didn't create any wan rules... Only a lan rule filtering traffic to ad sites, etc.

                                      I do have multiple inbound wan rules that "I" created..

                                      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.7.2, 24.11

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        HansSolo @stephenw10
                                        last edited by

                                        @stephenw10 said in New User to pfSense - some doubts:

                                        That's what pfBlocker does, it creates and maintains those rules. But you can set what port and destination it uses:

                                        Or you can set the list action to alias only and then add the rules manually. Which is what I would do.

                                        Steve

                                        I think I'll do it like you do , manually.
                                        Wasn't aware of this configuration requirement. That's on me.

                                        Thanks for this. It's all a learning curve.

                                        chpalmerC 1 Reply Last reply Reply Quote 0
                                        • chpalmerC
                                          chpalmer @HansSolo
                                          last edited by

                                          @HansSolo said in New User to pfSense - some doubts:

                                          I think I'll do it like you do , manually.
                                          Wasn't aware of this configuration requirement. That's on me.

                                          Im not sure Id call that a configuration requirement but more an option.

                                          In my case I block from a few areas to several addresses. So an any destination works for me.

                                          As mentioned don't allow all to any on your WAN..

                                          Triggering snowflakes one by one..
                                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                          1 Reply Last reply Reply Quote 0
                                          • chpalmerC
                                            chpalmer @chpalmer
                                            last edited by

                                            @chpalmer said in New User to pfSense - some doubts:

                                            @HansSolo

                                            How do you have your port forwards configured? Specifically "Filter rule association" ??

                                            Triggering snowflakes one by one..
                                            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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