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

Seems like traffic not going through firewall

Scheduled Pinned Locked Moved Firewalling
9 Posts 2 Posters 799 Views 2 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.
  • A Offline
    astph
    last edited by May 20, 2019, 6:12 AM

    Hi guys!

    Just want to ask, We've been using Pfsense for quite sometime already, everything seems to be working as usual, but lately I feel and noticed that the traffic seems not going through our firewall settings, like for example, Youtube is supposed to be blocked, but I can freely access Youtube, aside from Facebook, etc. Can anyone help point me to the right direction on where to look at?

    Thanks!

    ast

    1 Reply Last reply Reply Quote 0
    • J Offline
      johnpoz LAYER 8 Global Moderator
      last edited by May 20, 2019, 10:52 AM

      And how exactly are you trying to block youtube?

      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 25.07.1 | Lab VMs 2.8, 25.07.1

      A 1 Reply Last reply May 21, 2019, 3:08 AM Reply Quote 0
      • A Offline
        astph @johnpoz
        last edited by May 21, 2019, 3:08 AM

        @johnpoz Hi!

        Actually' I'm no IT person, just self taught to configure our Pfsense, not sure if I configured it correctly, but this is what I did:

        1. i have firewall setting to block all traffic to youtube.com, youtu.be, googlevideo.com

        2. i assign all dns to use opendns dns, and set opendns to block streaming sites (for this not sure if I configured our modem properly, as we recently just changed our modem, not sure what mode i should set our modem so that our pfsense would pick up the right ip address

        3. i'm also using squid proxy filter, indicated on blacklist the websites that are not allowed.

        It used to worked, but lately i can access all these "blocked" site.

        Thanks in advance.

        Regards,

        ast

        1 Reply Last reply Reply Quote 0
        • J Offline
          johnpoz LAYER 8 Global Moderator
          last edited by May 21, 2019, 7:24 AM

          you understand your firewall rules are meaningless if your using a proxy ;)

          Also you pointing proxy to opendns? So its block lists really all become meaningless now as well ;)

          So how about you pick 1 method of blocking and lets work through that.. So firewall rules with aliases - not really going to be workable since youtube is served off a CDN... So while it might sometimes work - in the long run its not really a viable option.

          So pick one solution do you want to block with proxy, or do you want to block with dns be it opendns or say pfblocker or your own host overrides.

          Proxy for that to work you have to be using explicit if you want https sites to be blocked, transparent will not work for blocking https.

          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 25.07.1 | Lab VMs 2.8, 25.07.1

          1 Reply Last reply Reply Quote 0
          • A Offline
            astph
            last edited by astph May 21, 2019, 7:32 AM May 21, 2019, 7:31 AM

            Hi!

            Thanks a lot for pointing those out LOL! Now I know.... anyway, my best option really is to ask your advice I would think :)

            I forgot to mention that our ISP here is under Carrier Grade NAT (recently), so because of this, I think the OpenDNS route wont work?

            Can I humbly ask for your advice on which is the best route to go with, having said I'm really a newbie on this, eventhough our Pfsense has been running for years already (used to work).

            Thanks sir!

            ast

            1 Reply Last reply Reply Quote 0
            • J Offline
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz May 21, 2019, 7:38 AM May 21, 2019, 7:36 AM

              I would go with pfblocker option or just your own local host overrides in pfsense dns (unbound or dnsmasq) depending on which on your using for the domains you don't want to resolve.

              Then force all clients behind pfsense to only be able to query pfsense for dns.

              As for as opendns working behind CGNAT?? As long as your account is always coming from the same IP (public) to them it should still work.. Only thing I would think is if your sharing public IPs with other customers you could have conflicts with what is filtered, etc.

              Or if you going to go the proxy route, then you need to make sure its setup as explicit (all clients need to actually point to proxy) And you need to make sure they can only go out via the proxy..

              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 25.07.1 | Lab VMs 2.8, 25.07.1

              1 Reply Last reply Reply Quote 0
              • A Offline
                astph
                last edited by May 21, 2019, 7:57 AM

                Thanks a lot for your advice....will check out pfblocker again, I used to have pfblocker installed in our system, but later on decided to remove it. So, if with pfblocker, do i need to remove all the firewall rules? Or pfblocker can work with the firewall rules?

                "Then force all clients behind pfsense to only be able to query pfsense for dns." -- may i ask how can i do this? Is this the same as allowing only my pfsense ip address as dns, and blocking all other port 53 traffic?

                Thanks!

                ast

                1 Reply Last reply Reply Quote 0
                • J Offline
                  johnpoz LAYER 8 Global Moderator
                  last edited by May 21, 2019, 8:30 AM

                  If your not allowing clients to resolve domainx.com then blocking domainx.com via an alias is prob not going to have any effect.. But could block direct IP access, etc.

                  Keep in mind again that putting in youtube.com into a alias isn't going to be very effective.. Since its hosted off a CDN, etc. And those IPs could change, and client could get different IP then what the alias loaded in... Also there is way more fqdn then just youtube.com - pretty much any country tld could work, etc.. .de, .co.uk etc. etc

                  Going to be one hell of an alias list trying to block them 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 25.07.1 | Lab VMs 2.8, 25.07.1

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    astph
                    last edited by May 22, 2019, 2:14 AM

                    I'm currently trying out pfblockerng now, just want ask for assistance, where or how can I block a certain website in pfblockerng? Example: Facebook or lets say social media sites in general?

                    Thanks!

                    ast

                    1 Reply Last reply Reply Quote 0
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received