Feature Suggestion: Interface Level Domain Block per Interface



  • This seems to be a large recurring problem by many users.

    I am running pfSense in transparent NAT + Squid + SquidGuard (with Shalla's List)

    Basically, the problem is that https cannot be trapped by Squid.  The idea is to generate automatically generate a set of IP addresses and rules just like Squid uses, but be able to apply them at the FW level on a per interface basis.

    A simpler method would be to create a type of Alias called IP lookup that periodically grabs/refreshes a list of IP's for the domain or specific machine (regex) listed.  Which solves another problem in that I have a few machines that I need to whitelist by DNS name as they change IP's (on Rare occasions, but it does happen).  Which completely screws up the rules etc and I must manually update 50 whitelist/blacklist IP's for our internal lan.

    Or maybe, just be able to input a regex for blocking based on reverse dns lookup.

    My real goal is to block facebook and youtube via https (except during break/lunch time) but still have the ease of transparent NAT/Squid/Guard to cover most filtering needs.

    I WISH I could support a bounty, but do not have the means to do so.  But, this would be a huge benefit to all !


  • Rebel Alliance Developer Netgate

    Aliases can already contain hostnames and those do periodically re-resolve but that does not help you at all because some sites return a random set of IPs each time out of a larger pool. You'd never be assured of catching the right values every time.



  • Alias can contain DNS name ?  Hmmm - that would solve one issue, but I was thinking that it would only accept IP's…. or at least, that is what the field entry says.

    (Update: Awesome - tried it and it works for single IP/dns relationships)

    I could still use the whole DNS and reverse lookup stuff.  An example goal is to block youtube via https but not all https services when using transparent proxy mode.)


  • Rebel Alliance Developer Netgate

    and that still won't help you at all.

    A site like youtube can return different IPs on each DNS query. It doesn't matter how often you refresh the list the client can still get another IP.

    Your best bet is to see if there is a published list somewhere of all netblocks for a given site. There are lists for Facebook that make blocking it easy with even normal aliases.


Log in to reply