General discussion

Locked

block internet

By mr_subodh ·
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.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

block internet

by jerome In reply to block internet

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

Collapse -

block internet

by mr_subodh In reply to block internet

Poster rated this answer

Collapse -

block internet

by WhW In reply to block internet

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.

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums