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

    How to prevent access to porn site through pfsense server

    Scheduled Pinned Locked Moved pfSense Packages
    25 Posts 8 Posters 17.8k 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.
    • A
      abd2002390
      last edited by

      is there a way in the pfsense server
      and what about squid server used for?

      1 Reply Last reply Reply Quote 0
      • T
        tommyboy180
        last edited by

        Open DNS is a good suggestion, however you can do this with squid and squidguard. Just install squid and configure it to your needs. Then install squidguard. You can add custom blacklists that are more in-depth. From here you can block pr0n from pfsense.

        -Tom Schaefer
        SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

        Please support pfBlocker | File Browser | Strikeback

        1 Reply Last reply Reply Quote 0
        • J
          jigpe
          last edited by

          OT: How to delete the old cache or clear cache?
          jigp
          Davao City

          1 Reply Last reply Reply Quote 0
          • Cry HavokC
            Cry Havok
            last edited by

            Which cache?

            1 Reply Last reply Reply Quote 0
            • T
              tommyboy180
              last edited by

              I think he's talking about squid cache.

              -Tom Schaefer
              SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

              Please support pfBlocker | File Browser | Strikeback

              1 Reply Last reply Reply Quote 0
              • W
                wonslung
                last edited by

                i think the real question is why would you want to block my porn

                1 Reply Last reply Reply Quote 0
                • J
                  jigpe
                  last edited by

                  cache - like old cache logs. how to delete them?
                  jigp
                  Davao City

                  1 Reply Last reply Reply Quote 0
                  • P
                    Perry
                    last edited by

                    http://doc.pfsense.org/index.php/How_do_I_clear_the_DNS_Forwarder_cache%3F

                    /Perry
                    doc.pfsense.org

                    1 Reply Last reply Reply Quote 0
                    • T
                      tommyboy180
                      last edited by

                      That's how to clear the DNS Cache, I think he means clear the Squid Cache like you can in IPCop via the GUI.

                      To do this you need to
                      1. Stop Squid
                      2. delete everything in /var/squid/cache
                      3. recreate squid swap```
                      squid -z

                      4\. Start Squid

                      -Tom Schaefer
                      SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                      Please support pfBlocker | File Browser | Strikeback

                      1 Reply Last reply Reply Quote 0
                      • J
                        jigpe
                        last edited by

                        thanks sir
                        jigp
                        Davao City

                        1 Reply Last reply Reply Quote 0
                        • A
                          abd2002390
                          last edited by

                          i tried using squid guard mant time and dont do any thing and many time i press save and aplly and still stopped

                          1 Reply Last reply Reply Quote 0
                          • T
                            tommyboy180
                            last edited by

                            Take a look at the tutorial for squid guard. It shows you how to configure it step by step. Gotta love those Flash tutorials.

                            -Tom Schaefer
                            SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                            Please support pfBlocker | File Browser | Strikeback

                            1 Reply Last reply Reply Quote 0
                            • A
                              abd2002390
                              last edited by

                              thank u i have run it but i want to redirect to spicific webside when a user try to log to porn side

                              1 Reply Last reply Reply Quote 0
                              • L
                                LedHed
                                last edited by

                                You could always install the 'SquidGuard' Package, and deny access with the Porn Blacklist.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  abd2002390
                                  last edited by

                                  ok thank u
                                  i have do it
                                  but there was aproblem and he block browsing internet and redirict me to the main page of server web

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tommyboy180
                                    last edited by

                                    If you can get to your router do the following:
                                    Go to Services -> Proxy Content -> Default -> and click Destination Ruleset. (See Attachment 1)
                                    Now Scroll to the bottom of your Ruleset list and find "Default Access [all]" Change this to access = allow (See Attachment 2)

                                    Hope this helps.

                                    attachement1.jpg
                                    attachement1.jpg_thumb
                                    attachement2.jpg
                                    attachement2.jpg_thumb

                                    -Tom Schaefer
                                    SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                    Please support pfBlocker | File Browser | Strikeback

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      abd2002390
                                      last edited by

                                      yes i made this before
                                      when i open any webside it direct me to th main page of server and ask for use name and pass

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tommyboy180
                                        last edited by

                                        If you disable SquidGuard do you still get the usr and pass prompt?

                                        -Tom Schaefer
                                        SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                        Please support pfBlocker | File Browser | Strikeback

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          abd2002390
                                          last edited by

                                          yes and the problem does not been solved except i have the proxy server turned off

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            tommyboy180
                                            last edited by

                                            okay, so it sounds like you have something set wrong in Squid.
                                            Are you running squid in transparent mode? If not try that. Also check your Auth settings in Squid.

                                            -Tom Schaefer
                                            SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                            Please support pfBlocker | File Browser | Strikeback

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