LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS - Internet access (https://www.linuxquestions.org/questions/linux-newbie-8/centos-internet-access-4175422346/)

vasupraveen29 08-16-2012 02:10 AM

CentOS - Internet access
 
Hello everyone,

I have a linux server running on CentOS, my network users are all Windows XP.

I want to block access to certain IP from accessing the internet.

Please let me know the procedure and also how to edit the access list.

Thanx

Praveen

clocker 08-16-2012 06:24 AM

edit ipchains
 
well i use fedora which is the same backbone as centOs so you have to edit ipchains like so.

ipchains -P forward DENY
ipchains -A forward -s 192.168.0.2/255.255.255.0\
-j MASQ
This will accecpt ip forwarding for all PCs accept for the named address.


All times are GMT -5. The time now is 07:50 PM.