Block all sites except one
-
how to configure pfsense block all sites except one?
-
How are you accessing this site.. fqdn, IP.. You just want the firewall rules or are you using proxy?
Rules are evaluated top down, first rule wins, no other rules evaluated... So walk down from top..
Allow dns - so client can resolve the IP.
Allow the IP and port - be it 80/443 or something else like ssh
remove the default any any rule.. Now all blocked!!! Vs what you allowed. -
i am using squid proxy server. i hope can make block some pc with alias rule
-
Why are you using the proxy if you want to block everything but 1 site?
How about you explain the big picture of what your trying to do... if your using the proxy then you shouldn't allow anything out normal and all should go through the proxy, etc..
Its very hard to help you with the correct solution with bits and pieces. If you need help configuring the proxy then your question should be in the proxy section not general.
-
Ok, what about config with the firewall rule? I will try without proxy server
-
I already told you how to do it via firewall rules. What site are you trying to allow? Are you access it via some fqdn, ie www.domain.tld
If so what is? Is your client(s) using pfsense for dns? Do you want to only allow some client IPs to to this one site but others normal access, etc.c
-
Ok. Thank you sir