[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: IP CHAINS DOUBT



Sendil,
	This is easy to accomplish remember that you need to use input and output
rules, this will block from within and from outside as well:

/sbin/ipchains -A input -i $your_interface -p tcp -s $ip_addr_source -d
$ip_addr_dest -j DENY
/sbin/ipchains -A output -i $your_interface -p tcp -s $ip_addr_source -d
$ip_addr_dest -j DENY

	The downside to this is that you will be adding alot of IP's in future
needs as the number of sites you want to restrict access too grows... I
would use a script that builds the rule set from a file that holds the
restricted site access.

read the man pages on ipchains for further details. To check a rule use:

ipchains -C input -p tcp -s $source $port_num -d $dest $port_dest -i
$your_interface


James


-----Original Message-----
From: redhat-install-list-admin redhat com
[mailto:redhat-install-list-admin redhat com]On Behalf Of senthil
Sent: Friday, June 29, 2001 9:40 AM
To: redhat-install-list redhat com
Subject: IP CHAINS DOUBT


Hi list

Can any one please show me how to block a particular url using ipchains.
Suppose if i want to block a url  http://foo.com/temp/mintgold     how do i
do that ?

thanx in advance

sendil



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.262 / Virus Database: 132 - Release Date: 6/12/2001



_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://listman.redhat.com/mailman/listinfo/redhat-install-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]