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

    Squid and firewall rules

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 2 Posters 1.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.
    • R Offline
      ruuuter
      last edited by

      Hey everybody!

      I have an alix 2d13 with a cf card (pfSense 2.0.1),a hdd (for the squid logfiles) and a wlan-card (interface in pfsense is called WIFI) in it. This should become a hotspot.
      At the moment i am logging the wlan IPs(DHCP) with squid. Everything works fine, but this should become a save system and therfore I have to define firewall rules.
      But the Problem is, that the port 80 rules for the WIFI interface dont work because everything goes over the proxy.
      What can I do ? Below you can see my rules for the WIFI interface.

      Proto        Source      Port  Destination                Port                      Gateway      Queue            Description

      TCP/UDP WIFI net * *                       135                   *             none              NetBios Block 
      TCP/UDP WIFI net * *                       137 - 139           *             none              NetBios Block 
      TCP/UDP WIFI net * *                       445 (MS DS)          *             none              NetBios Block 
      TCP         WIFI net * WIFI address       80 (HTTP)           *                none              Web GUI Block 
      TCP         WIFI net * WAN address       *                   *                none              WAN address Block

      • WIFI net * WAN net               *                   *             none              WAN Subnet Block
      • WIFI net * ! LAN net               *                   *             none              WIFI to Any other than LAN

      Thank you!!
      Greets

      1 Reply Last reply Reply Quote 0
      • marcellocM Offline
        marcelloc
        last edited by

        Setup access lists,safe ports,black lists,squidguard,etc on squid to filter http.

        If you enable WAP/PAC using dns/dhcp you can also filter https urls.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • R Offline
          ruuuter
          last edited by

          But I want to block for example the connection from the WLAN to the LAN. Is there no possibility to use firewall rules with squid?
          I think access control of squid can not realise this or am I wrong?

          1 Reply Last reply Reply Quote 0
          • marcellocM Offline
            marcelloc
            last edited by

            @ruuuter:

            I think access control of squid can not realise this or am I wrong?

            Apply the same ip range/CIDR you would apply on firewall rules.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • R Offline
              ruuuter
              last edited by

              Ahhh, got it  :)

              Thank you!

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