Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-13-2006, 11:15 PM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 497

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


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 in my network so that
that ip ( 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..........

Old 03-13-2006, 11:26 PM   #2
Jerre Cope
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
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
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 -j DROP
// to block http traffic(port 80) from said IP
#iptables -I FORWARD --src --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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 PM.

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