/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
/* ALSO: Don't quote this header. It makes you look lame :-) */

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Julian Eduardo de Anquin
Sent: Saturday, July 26, 2003 12:09 PM
To: Jamin W. Collins; [EMAIL PROTECTED]
Subject: RE: [Masq]

so how can i block mi masquerades Pcs access to some ip on the internet.
let's say y do not want the to access www.yahoo.com. how can i do this with
IpTables? thanks a lot

 <http://www.ayi-asociados.com>


<snip>


Hi Julian,
        A lot of this has been answered in the past...or if you do a quick
search on the Internet it'll turn up wonders. For example, if you wanted to
block access to www.badsite.com from internal ip address 10.11.12.13 you can
use the following rule, 

     iptables -A FORWARD -s 10.11.12.13 -d www.badsite.com \
                -p tcp --dport 80 -j REJECT 

Don't be afraid to read the man page on iptables and look at examples and
try to figure the commands out. It's the best way to learn!See this page for
more info:  http://www.mail-archive.com/[EMAIL PROTECTED]/msg01840.html.

Good Luck,
Jason

--
Jason V. Advani
The Ohio State University, Columbus, OH
SAE Treasurer & Formula SAE Production Coordinator
Electrical & Computer Engineering Major
513-325-9185 / Lakee911(AIM)
 

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ --
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to