Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: jay on May 03, 2006, 08:25:49 AM

Title: How do i block certain LAN IP from accessing internet?
Post by: jay on May 03, 2006, 08:25:49 AM
Good day,

I would like to block certain lan ip (not ip range) from accessing internet and only allow to access certain websites. Hope somebody can help me on this. I used one of the article in linuxsolved forum to do the internet sharing (http://www.linuxsolved.com/forums/viewtopic.php?p=298#298).

I shall be grateful if somebody can assist me on this.

Thank you.
Title: How do i block certain LAN IP from accessing internet?
Post by: Ricky on May 03, 2006, 10:57:25 AM
well that is possible. Use squid and create seperate acl for each client and then set access control for it.
Title: How do i block certain LAN IP from accessing internet?
Post by: dragoncity99 on May 07, 2006, 10:05:35 AM
Yes, Ricky pointed out.

You can either use:

1. Proxy

or

2. Pure iptables to filter out.

If, ur filtering out different networks according to their network segments, i.e.:

10.0.0.x
10.0.1.x
well it's still possible

If, ur serious about iptable to help u, u can dig here:

linuxguruz.com/iptables/