How to ban a certain site to a certain IP in dansguardian?
Hi,
I will just ask on how will I ban a certain site to a certain IP address on the network? I am using Dansguardian Web filter. |
There are a couple of ways to do this; the easiest one is an entry in /etc/hosts.deny:
Code:
ALL: 201.11.209.251 Another way is to create an entry for IPTABLES and block the entire domain (on the principle that if a domain permits this kind of activity, you don't want any traffic from that domain). Using the above bad actor address, Code:
prompt: whois 201.11.209.251 Code:
sudo If you have some number if IP addresses you wish to block, simply create a file containing entries for those address ranges: Code:
iptables -A INPUT -s 212.156.0.0/16 -j DROP Now, forwarding that to a particular server is a little more tricky depending upon how the forwarded server wants a message constructed (say, an e-mail?). Hope this helps some. |
All times are GMT -5. The time now is 12:26 PM. |