pfSense Firewall (totally) Rules! Basic rule setup...🤫

Поділитися
Вставка
  • Опубліковано 5 лип 2024
  • Hello everyone! In this video I will be briefly talking about what a firewall is in general. How the pfSense firewall tracks states and how we can go about configuring a wide array of different rules like access from the WAN, general LAN access and even DMZs. This is a bit of a long one, but I believe it can be pretty educational as well. Hope you enjoy!
    ❗Help the channel grow by subscribing if you aren't subscribed already! A like is also very appreciated and feel free to leave a comment about what you liked or disliked in the video and what else you would like to see from me :) 👊❗
    Timestamps:
    📕00:00 - Introduction
    📕00:33 - What is a Firewall?
    📕01:45 - Stateful Firewall
    📕04:23 - Increasing State limit
    📕04:48 - The State Table
    📕06:14 - Firewall Rules
    📕11:58 - WAN Rules
    📕25:05 - LAN Rules
    📕34:28 - DMZ Rules
    Support the Channel:
    ⭐Become a Patreon: / thenetworkberg
    ⭐Become a UA-cam Member: / @thenetworkberg
    Social Media:
    🌏 / thenetworkberg
    🌏 / bergnetwork
    🌏 / the-network-berg-39451...
    MTCRE Playlist:
    • Free MTCRE RoSv6
    MTCNA Playlist:
    • Free MTCNA RoSv6
    Thanks again for watching

КОМЕНТАРІ • 117

  • @TheNetworkBerg
    @TheNetworkBerg  2 роки тому +8

    Pinning this comment with the Firewall Rules reference material. I strongly suggest reading this yourself as well!
    Firewall netgate docs:
    docs.netgate.com/pfsense/en/latest/firewall/index.html

  • @jim7smith
    @jim7smith Рік тому +13

    Great tutorial. So many of your peers assume way too much existing knowledge in their viewers. You not only point out pitfalls, you show us how to repair the damage.

  • @rubyxfinity8634
    @rubyxfinity8634 Рік тому +28

    I LOVE your teaching style! There are so many "how to" videos for pfSense that assume advanced knowledge and make it impossible to follow (and thereby LEARN). You assume nothing and even go out of your way to explain the details and give examples. BRILLIANT. You have made this so easy to understand!

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому +3

      Thank you Ruby I really appreciate the kind feedback. Whenever I make these types of guides I really try to remember a younger me just getting into the tech space working for an ISP and wanting someone to teach me in a similar manner. Not being condescending or speak to me as if I was there helping create the firewall/router/switch and know everything about it. As long as these guides help ease at least one person into the sometimes complex world of networking then I am extremely happy!

    • @michaelcooper5490
      @michaelcooper5490 Рік тому +1

      I agree they don't take in to account some of us are novices at this type of thing.

    • @luigirambofettelucci9781
      @luigirambofettelucci9781 3 місяці тому +1

      I bought a Netgate SG-1100 and didn't know what vlans, tcp/udp or any of it meant years ago. Now I feel confident I won't get locked out of the web interface with your thorough breakdown and helping me understand everything. Thank you sir. You have earned yourself a sub here. Cheers🎉

  • @donr2864
    @donr2864 Рік тому +4

    I really appreciate the scope of this video! 1 step above an intro, unedited, and still within reasonable scope for someone to get started configuring their firewall properly before moving on to more nitty-gritty content!

  • @WebVid
    @WebVid 6 місяців тому

    Enormously helpful. This is all new to me, and because of your teaching style, it all makes sense.

  • @OBD01
    @OBD01 11 місяців тому +1

    Just found your channel while looking for pfsense knowledge. This video was a very helpful with making what I find as a complex subject easier to understand. thank you 👏👏

  • @Krahkarq
    @Krahkarq Рік тому +3

    Super helpful and a very clean and easy-to-follow teaching style. Thank you so much!

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому

      Thank you for the nice comment I really appreciate it very much!

  • @K1llerX
    @K1llerX Місяць тому +1

    It was really straight forward tutorial, in your video i understood what i couldnt get from probably 5 or more other different sources! Keep it going! Ty! (and subbed ofc)

  • @zappatx
    @zappatx Рік тому

    After watching 20 other videos this one BEST explained what I needed to know!!! Thank you!!

  • @Cruisin_In_Comfort
    @Cruisin_In_Comfort 2 роки тому +2

    Well done and easy to follow. Thanks for a great intro.

  • @damiansmith4156
    @damiansmith4156 5 місяців тому +1

    Great video!! You've made it very clear for me as a newbie to understand. I needed this lol

  • @gregorybehm8558
    @gregorybehm8558 Рік тому

    This was really good! Thanks for sharing your knowledge with us.

  • @carlyleroberts3995
    @carlyleroberts3995 Рік тому

    Well done for my first introduction to PFsense. Thank you.

  • @MonitorZero
    @MonitorZero Рік тому +1

    Was looking for a quick rundown on pfsense firewall capabilities and you covered all the bases. Thanks for the info. Subbed.

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому

      Thank you for subscribing I really appreciate it

  • @nduri2
    @nduri2 Рік тому

    Great work, thank you for this tutorial. Very informative.

  • @bodmitri
    @bodmitri 4 місяці тому +1

    Your video has been SOO helpful, awesome walk-through, thank you!

  • @qcnsllcqcnsupport7616
    @qcnsllcqcnsupport7616 Рік тому

    Thank you for this video, it was very informative 👍🏼, i work with paloalto firewall and the Pfsense interface and rules are very similar. Great job 👏🏾 👍🏼

  • @SaschiIein
    @SaschiIein 8 місяців тому

    Very very helpful!! Thank you very much, this saves a lot of time for me.

  • @allaboutcomputernetworks
    @allaboutcomputernetworks 3 місяці тому

    Thank you so much for making this lovely video!!

  • @GMack2023
    @GMack2023 3 місяці тому +1

    Excellent video, thank you for this well explained tutorial.

  • @karmakanic475
    @karmakanic475 4 місяці тому +1

    Great tutorial, thanks for sharing the knowledge. Huge subscribe :)

  • @azrehman1
    @azrehman1 2 роки тому +2

    Excellent work!! Please bring more videos on pfsense including with openvpn

  • @bikes-hikes-travels8814
    @bikes-hikes-travels8814 Рік тому +1

    Great information!

  • @The-bashing-zone
    @The-bashing-zone Рік тому

    I was also hoping that you cover NAT a bit as part of DMZ config. Overall rich content. Keep it this way :)

  • @za500
    @za500 Рік тому

    thank you! it worked as a charm

  • @waywardson-lw3tx
    @waywardson-lw3tx 8 місяців тому +1

    This was really good. Much appreciated.

  • @dumitrutrofosila6022
    @dumitrutrofosila6022 Рік тому +1

    Just brilliant, thank you for this tutorial!

  • @blindside995
    @blindside995 2 роки тому +1

    Glad to see you making content about pfsense. It's a fantastic open source firewall. I currently am using it as a transparent bridge on my network to do network detection on my wan interface.

    • @makeitcloudy
      @makeitcloudy 2 роки тому

      Can you drop some light, about the setup that it act as a bridge instead of L3, or advise with an article which is worth spending time on?

    • @blindside995
      @blindside995 2 роки тому

      @@makeitcloudy Hello, I just want to be clear. What I am referring to is not really like a switch. But kind of in a way... Though note you shouldn't use pfsense as a bridge as it is not designed for that work load and neither are the NICs that are most likely in your pfsense box. You want a switch doesn't really matter what kind it's just they are far better at well actual switching and forwarding traffic.
      Now, if you want to learn about what I am doing you can do that by watching this Lawerence Systems video Bridge with suricate testing.

    • @makeitcloudy
      @makeitcloudy 2 роки тому

      @@blindside995 thank you, I was watching Lawrence, he was my inspirations for freenas, syncthing and pfsense, before I realized network Berg exist :) cheers!

  • @prahe86
    @prahe86 Рік тому +1

    Great video, thank you.

  • @gatty.
    @gatty. 2 роки тому +1

    Awesome video! Thank you :)

  • @daniduthambawita1960
    @daniduthambawita1960 Рік тому

    Worked , thanks a lot!

  • @hatran-ir9ic
    @hatran-ir9ic 4 місяці тому +1

    Greate video. That's helpful to me.

  • @sagarshrestha9444
    @sagarshrestha9444 2 місяці тому +1

    this was really awesome
    thanks man

  • @Roje8
    @Roje8 2 роки тому +1

    Great Job! Thank You very much. I will try to "port" my firewall rules from Mikrotik to pfSense. Same logic but different way. Should work the same. Just a note. After I tested pfSense I made pfSense my primary firewall for about 100 users. Hardware, nothing special with 4 gigs of RAM - memory usage 72%.

  • @KeithTingle
    @KeithTingle 8 місяців тому

    this was great, thank you

  • @Franchyze923
    @Franchyze923 Рік тому

    very helpful! thanks

  • @BrianThomas
    @BrianThomas Рік тому

    Great video thank you. I noticed your RouterOS hardening video. Would you recommend using the firewall on both the MikroTik RouterOS and also on Pfsense?
    Another question I have some IoT devices and games on my PS5, and I've tried opening the required ports, but I'm still experiencing issues. I'm considering opening up all ports just for those devices, although I'm hesitant to do so. Do you have any advice on what else I could try?

  • @d3mist0clesgee12
    @d3mist0clesgee12 Рік тому

    great stuff thanks.

  • @microsoftsarker
    @microsoftsarker 10 місяців тому

    This is a wonderful video

  • @mazdaked8201
    @mazdaked8201 10 місяців тому

    Very good. I Like your teaching metod.

  • @marcussanmg2161
    @marcussanmg2161 Рік тому +1

    Great video !

  • @haybem7940
    @haybem7940 Рік тому +1

    Thank you very much

  • @rcdenis1
    @rcdenis1 Рік тому +1

    Subscribed!

  • @ericgoovaerts2603
    @ericgoovaerts2603 10 місяців тому

    Thanks

  • @alanberickson
    @alanberickson Рік тому

    Good info. Had a question on my setup. I have another rule which is " RFC 1918 networks " being blocked. Is this a pfsense item by default? Not sure if it's something I added or not. Trying to do some port forwarding and it's not working, and I'm not sure if this rule or the other one you're showing for the WAN is what's causing my traffic to not go thru or not. Thanks.

  • @jehangirsharif6767
    @jehangirsharif6767 Рік тому

    Great

  • @pldvs
    @pldvs 2 роки тому +1

    Thanks for that.

  • @A.Almatrodi
    @A.Almatrodi Рік тому

    Thanks so much. Looking for a video explaining how to reach PfSense and other servers from WAN, Please.

  • @georgiosstratigos4334
    @georgiosstratigos4334 Рік тому +1

    very nice video .. i was thinking on 27:00 , you could create a simple LAN rule for INTERNET access by adding the gateway on the advanced tab ,as a result you cut entirely the internal traffic between hosts inside lan and let users to have internet access ,then you use squid proxy or snort to block P2P .how about that

  • @tankman66
    @tankman66 Рік тому +1

    Hello, thank you for the video it was very helpful. I have a quick question, if the load times are really long for the pfsense webconfigurator does that mean I have some sort of firewall conflict with my dns? (I am just setting it all up today)

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому

      A slow webconfigurator sounds more like a resource issue, are you running the software on a VM or Hardware? I would highly suggest posting about it on the pfSense forums with your specs to see if someone from Netgate might be able to help out.

  • @80robina
    @80robina Рік тому

    you can group all your interfaces together so all your rules will appear under one tab, a lot more easier to look at

  • @mikeoreilly4020
    @mikeoreilly4020 2 місяці тому +1

    Very informative video, thank you. If I could ask a favor for your future videos, please try to control the constant quick mouse movement, it's very distracting.

    • @TheNetworkBerg
      @TheNetworkBerg  2 місяці тому

      Thank you for suggestion, sorry about distracting you. Sometimes I turn off the mouse pointer in my newer videos. I think at times I just move the mouse around as a pointer to showcase things but at a hyper ADHD level.

  • @gjkrisa
    @gjkrisa Рік тому

    so if i use space invaders tutorial to allow upnp for game consoles should i also place them in a dmz? i really have no need to have them on lan access i’ve been trying to figure out netgears vlan rules but it’s complicated for me to understand.

  • @tokoiaoben3842
    @tokoiaoben3842 Рік тому

    Thanks and I appreciate this. It is superful to people using pfsense. Let's say you have 10 vlans and you want to block access from your Lan network/vlan to these vlans.How do you implement that in pfsense. For me I would normally create separate alias containing vlans/network for each vlan, then I would create block rule for each vlan.For instance I create an alias Lan_V_Blocks and populate this with the vlans/networks that I want to block access from Lan network/vlan. The problem with this approach is time consuming. Is there any better and faster solution than this. ?

  • @email16v
    @email16v Рік тому

    I was hoping you would discuss explict deny rules between interfaces. For example, I don't want interfaces x to be able to get to interface y. Your allow to any rules would allow that connection which I want blocked.

  • @aah57
    @aah57 Рік тому

    It would be nice to combine RouterOS with pFsense.. ROS to function as routing, and pfSense as both firewall and VPN client.

  • @almi5783
    @almi5783 9 місяців тому

    Excellent Tutorial - Thank you. I wish the mouse would not giggle so much though. Please move the mouse slowly so we can see where it is without shaking it so often.

  • @brandonbrand2338
    @brandonbrand2338 2 роки тому

    Nice work there TNB. PfSense is a very robust firewall.

  • @-Mr.Mullet-
    @-Mr.Mullet- 2 роки тому +1

    Great video!
    Just a quick question: Why did you choose "single host or alias" and not "DMZ address" as destination when creating the WAN rule for the DMZ FTP server?
    Also, I can't seem to find a similar video for Mikrotik firewall rules, explaining the really basic stuff... Did you ever create one? The first 4-5min of this video was really informative, as I was not actually aware of how the firewalls operated. Thanks again.

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +2

      Thank you for your kind words, I chose single host as I was going to allow traffic just to the IP of the server in the DMZ. The object DMZ address relates to the IP of the DMZ interface of the FW which is not what I wanted to allow. The other object DMZ net relates to the entire subnet, which is also not a good fit for the policy I wanted to implement.
      Hmmmm I think the most similar videos I have on the subject for MT is what I covered in my MTCNA course here:
      📗MikroTik MTCNA - Firewall Principles (Forward,Input,Output)
      ua-cam.com/video/NXvHdZbAuTI/v-deo.html
      📗 MikroTik MTCNA - Firewall Fasttrack, Mangle Rules & Address Lists
      ua-cam.com/video/sZzvfyfCtWU/v-deo.html
      There is also this video from my live stream, but it is quite lengty:
      💻 Taking a look at RouterOS/MikroTik Firewall in EVE-NG Live Lab: Filters, NAT, Mangles etc!
      ua-cam.com/video/zA6bkg2KrjE/v-deo.html

    • @jwickerszh
      @jwickerszh Рік тому

      Ironically I did remember setting up firewalls more than 20 years requiring a lot of rules and the first time I setup pfsense (very recently) I was confused because it is too simple now 😅

  • @sivabhaskar3654
    @sivabhaskar3654 Рік тому

    i am able toping but notable to take the remote from the wan from the LAN IP can you help me out

  • @brandonfontaine285
    @brandonfontaine285 Рік тому

    I'm trying to set Blue Iris server in a "DMZ" and only allow access to it from specific network on LAN interface. I've tried setting rules in/out on both interfaces and I still can't get to it.

  • @johnh10000
    @johnh10000 4 місяці тому

    Thanks to Lawrence Systems I have several vlans and an alias "grouping" the private ones including the lan on which pfsense is on. I have a guest vlan, I'm trying to create a Captive Portal
    So I have this rule thanks Lawrence, which blocks my private interfaces. How do allow the local dns to pas (on lan).
    I tried allowing dns tcp/udp from gust to lan no joy.

  • @user-nq8ww7ix1h
    @user-nq8ww7ix1h 7 місяців тому

    My pf sense always blocks Outlook emails .
    But work well after a reboot .
    For about hour.
    What might be the problem

  • @anthonwalters3706
    @anthonwalters3706 2 роки тому

    What is your opinion w.r.t. Mikrotik firewall vs PFSense if you disregard the reporting side of PFSense? Would you choose PFSense over a solution with extensive scripting for instance on a CCR that also assists with IDS, blacklisting, tunneling, VPN's etc?

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +1

      Hi Anthon, I think the statement "With extensive scripting" already summarizes why a SOHO or Medium sized business should rather opt for something like a pfSense firewall as opposed to having the MikroTik doing the firewalling. Scripting in itself can be pretty complex and even if you are just importing scripts from some vendor you are probably going to be paying them for those services, which they do on their own platforms which is most likely just another firewall.
      If you are going to do your own scripting that also means you are going to have to learn the scripting language or find someone that understands it. It's definitely not the hardest scripting language in the world, but it's still a niche skillset. Very useful, but in the sense of business if I suddenly lost a person that performed all the scripting and that skillset gets lost then I think the business could face some serious trouble. Especially after some software upgrade on ROS that creates some or other bug on a script that you are using.
      So for ease of use I think pfSense is a much better firewall, although I still think MikroTik is a superior router :D!

    • @anthonwalters3706
      @anthonwalters3706 2 роки тому +1

      @@TheNetworkBerg Thanks for the quick reply - we have several staff quite comfortable with Mikrotik scripting and have about two decades worth of Mikrotik experience so we know them really well. The question for me here is whether we should look at PFSense as a replacement (or addition) for a skillset we already have given that we have no issue with Mikrotik where it stands at present. We supply a service to business in this regard. Your knowledge of Mikrotik and now PFSense makes your opinion matter hense the reason I asked and might save some time playing with something and then realize its not needed. So I guess the real question to ask is then why would you choose PFSense over Mikrotik if skills are not an issue.

    • @makeitcloudy
      @makeitcloudy 2 роки тому +2

      @@anthonwalters3706 Valid, but still a tough question to be honnest. I could say and summarize it this way, that if you can afford the effort of scripting by your own, and you are in such comfortable situation that the tests can be performed outside of production, then why not performing all the logic within your scripts, especially when you are sure about the people standing behind the whole logic. The thing is that the code itself, does not scale well if it is not designed properly. Keeping the IaC (Infrastructure as Code) in mind, the real question is about combining the scripts with the processes or other API's which can talk with your functionality. I still can not compare all the plugins available in pfsense, and whether those has the integration with the particular usecase you have in your head for the business case of your's, that's why this question can be probably answered by you only. Unless I'm completelly wrong. Cheers

  • @ChapalPuteh_
    @ChapalPuteh_ 8 місяців тому

    Once pfsense installed, we should whitelist the service which we want … right ?

  • @zeroibis
    @zeroibis Рік тому

    Then again if anything inside wants to get out all it does is go over 443 like lets say a VPN over 443 and bam you got everything now. Unfortunately outbound port blocking is not what it was in the old days, you got to secure all clients directly and ensure only trusted clients are on the network if you really care what is going outbound.

  • @user-cy9zz1tj7e
    @user-cy9zz1tj7e Рік тому

    thanks, teach firewall rules.

  • @davidhenzler4817
    @davidhenzler4817 3 місяці тому

    Haven't needed to access Package Manager until recently. Deleted a package and when I attempted to download the one I wanted... no available packages. Error message something about Internet not available. The firewall works great, and has been doing a flawless job. Maybe I left a remnant of initial setup in, that needs to be removed. Any ideas?

    • @davidhenzler4817
      @davidhenzler4817 3 місяці тому

      Package reinstall process was ABORTED due to lack of internet connectivity @ 2024-04-03 21:48:08

  • @TumescentPuma
    @TumescentPuma 4 місяці тому

    Does it make security sense to keep wan icmp blocked, or is reasonable to pass it. Steve Gibson’s shields up fails if your public ip responds to ping.

    • @TheNetworkBerg
      @TheNetworkBerg  4 місяці тому +1

      Most people tend to drop ICMP to the wan IP, though you could tweak rules to allow monitoring from a specific source to that you could see if the link ever goes down but no one else would even know the IP was live

  • @nahakuu
    @nahakuu Рік тому

    I started using Sophos at work, and I miss very much on Pfsense ability to add multiple ports/IPs to one rule, it is so tiresome when you must add all ports one by one...

  • @camaroguy420
    @camaroguy420 9 місяців тому

    dude youre fuckin Awesome!!

  • @AdrianuX1985
    @AdrianuX1985 2 роки тому +1

    Why not OPNsense (fork PFsense)?
    Maybe some comparison of both solutions?

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +2

      Sure, I could take a look at OPNsense as well and do some comparisons ^^

  • @luisrondonpaz5842
    @luisrondonpaz5842 6 місяців тому

    for some reason https and http does not work for me. im starting all from 0 with another vm to see where is the problem

  • @Cantakor
    @Cantakor 10 місяців тому

    Is it possibe to work with objects so I dont have to enter IP adresses every time in the rules?

    • @plu2
      @plu2 8 місяців тому

      It's called Aliases in pfSense

  • @Red1Wollip
    @Red1Wollip 3 місяці тому

    Strange question, can a Netgate Firewall be used with a Mikrotik RB3011?

    • @TheNetworkBerg
      @TheNetworkBerg  3 місяці тому

      Not a strange question at all Dennis, there's a few configurations you can run using both a RB3011 and a Netgate firewall. I would prefer putting the RB on the WAN edge and having it be responsible for connections and such where you could leverage the firewall features of the Netgate behind the MikroTik to monitor and restrict access to your internal networks a bit more effectively.

    • @Red1Wollip
      @Red1Wollip 3 місяці тому

      @@TheNetworkBerg That is the answer I was looking for. I have 20 VLANS setup on my 3011 with the last 10 devoted to 10 computers forr all the grandkids and neighberhood kids to utlize them for gaming. I need to get more granular control on the kids use of the internet. Another goal is VLAN internet connection blocking.
      sould this be acomplished on the Netgate or the 3011? I have a symentrical 1Gb x 1Gb internet connection. All the other Vlans are used for Plex, Unraid, Windows Server 2022, and Wireless networks.

  • @SaviorGuru
    @SaviorGuru 2 роки тому

    Can anyone point me to a video showing how to restrict internet access to few websites / IP address using pfsense?

  • @sbal0909
    @sbal0909 2 місяці тому

    Curious, as none of the rules you implemented any blocking actions, reason?

  • @ninjarider443
    @ninjarider443 11 місяців тому

    Have you ever tried IPFIRE?

  • @arthurmedina2278
    @arthurmedina2278 Рік тому

    i copy your config but still can torrent access

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому

      This video was aimed at how to configure firewall policies, I suggest looking at your logs and creating policies to specifically drop the torrent traffic you are seeing on either their protocols and/or destinations

  • @gabrieleci3908
    @gabrieleci3908 5 місяців тому

    Great video but you move too much the arrow on the screen.

    • @TheNetworkBerg
      @TheNetworkBerg  5 місяців тому

      Sorry if the mouse pointer was distracting for you, and thank you for your feedback :)

  • @austincable
    @austincable 6 місяців тому

    Does start talking about Firewall rule tell after 6 minutes! FYI...

  • @LelaCarpenter
    @LelaCarpenter Рік тому

    Good info, but man, CHILL with the spastic zig zagging of the mouse cursor over everthing. Highly distracting and annoying. Calm steady movements win every time.

  • @chipset2900
    @chipset2900 11 місяців тому +1

    Could you please quit waving the cursor around like a nervous fidgety teenager?

  • @davidlight1376
    @davidlight1376 Рік тому

    I almost had a seizure following this guy’s cursor.