LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02: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, 06: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



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 03:19 AM
access internet in redhat 5.4 & centos 5.5 Srikanth86 Linux - Newbie 3 04-08-2011 06:51 AM
[SOLVED] PPPOE server access the internet clients fail to access the internet simbini Linux - Newbie 3 08-31-2010 12:37 AM
EXACTLY how do I access Internet from CentOS 5.0? michaeltipton2222 Linux - Newbie 2 11-01-2007 02:02 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:56 AM.

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
Open Source Consulting | Domain Registration