November 22, 2024, 02:57:17 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: How do i block certain LAN IP from accessing internet?  (Read 6024 times)

Offline jay

  • New Member
  • Posts: 3
How do i block certain LAN IP from accessing internet?
« 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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
How do i block certain LAN IP from accessing internet?
« Reply #1 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.

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
How do i block certain LAN IP from accessing internet?
« Reply #2 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/