LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-13-2006, 11:15 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
Cool Want to block an ip without proxy


Friends,

I have a Linux Enterprise 4 Machine . I make it, suppose
an internet Server or NAT. From this pc, I want to Block
a particular IP(suppose 192.168.10.5) in my network so that
that ip (192.168.10.5) can't browsing or can't use 8080(www/http) port . Here i mention that i don't want use Proxy server in this case . In this situation what will i do ?
Plz inform..........

Thx....
 
Old 03-13-2006, 11:26 PM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
You can use the linux firewall to do this. Try http://www.shorewall.net/
as a tool to help create your firewall. Also the website is a good tutorial on implementing firewalls.
 
Old 03-14-2006, 03:07 AM   #3
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
First be more precise that what you really want to do. If you have root privilges and package iptables{ which is linux firewall, and I think should be installed by default unless you explicitly remove it} installed then you can do it as follows.

From my understanding of your problem: you can do it as follows:
#/etc/init.d/iptables start
// to block all traffic from said IP
#iptables -I FORWARD --src 192.168.10.5 -j DROP
// to block http traffic(port 80) from said IP
#iptables -I FORWARD --src 192.168.10.5 --dport 80 -j DROP

iptables is much more powerful than what I have said, you would probably like to see man iptables to see its power, or one of the rusty russel's guide.

btw. shorewall is a firewall rule configurator that uses iptables.
 
  


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
Squid proxy: block Flash adverts hamish Linux - Software 4 02-13-2012 07:42 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
block msn in transparent proxy faraza Linux - Networking 1 01-18-2006 02:45 PM
block internal user to access external proxy server ckamheng Linux - Security 7 09-09-2005 03:37 AM
block access to other proxy servers jymbo Linux - Networking 4 07-06-2004 01:59 PM


All times are GMT -5. The time now is 12:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration