Discussion Locked

block internet

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi
I have linux server and i have configure proxy through my Linux server.I want disable internet
from some client.is this possible some particular ip address can access internet.

3 replies

by jerome

you can do it in two ways..
1. setup a firewall (iptables) and add some
rules that would block incomming request for
specific IP's

iptables -A input -i NIC_INTERFACE -p tcp -s
BANNED_IPorRANGE --dport PROXY_PORT -j REJECT

2. if your using squid you may want to check the
squid.conf

by whw

While iptables or ipchains will most certainly do the trick, you might try looking at squidGuard (assuming the proxy you're using is squid). It offers a few more "bells and whistles" than either iptables or ipchains and is very easily configured.

This discussion is closed to new replies.