LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2012, 03:10 AM   #1
vasupraveen29
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Smile 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
 
Old 08-16-2012, 07:24 AM   #2
clocker
Member
 
Registered: Sep 2011
Distribution: fedora, redhat, mint
Posts: 87

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Virtual Box Centos 6.2 x86 Internet Access Issue. dailyoliver Linux - Server 15 03-11-2013 04:19 AM
access internet in redhat 5.4 & centos 5.5 Srikanth86 Linux - Newbie 3 04-08-2011 07:51 AM
[SOLVED] PPPOE server access the internet clients fail to access the internet simbini Linux - Newbie 3 08-31-2010 01:37 AM
EXACTLY how do I access Internet from CentOS 5.0? michaeltipton2222 Linux - Newbie 2 11-01-2007 03:02 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 11:28 AM


All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration