-
James Maurice Shupe | HermeTek Network Solutions
shupej@hermetek.com | *NIX Consulting and Hosting
GPG signed mail preferred |
http://www.hermetek.com
Plain text mail preferred | 1.866.325.6207
Key fingerprint: D484 EACC 9D0F A2A5 5277 C4A8 5704 1987 A938 DF3A
------------------------------------------------------------------------
This Email is covered by the Electronic Communications Privacy Act,
18 U.S.C. 2510-2521 and is legally privileged. The information
contained in this Email is intended only for use of the individual
or entity named above. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone 1.866.325.6207 and destroy the original message.
On Thu, 2008-10-16 at 15:27 -0400, Luis Rondon Paz wrote:
> hello everyone i have a question
> i have this in my iptables
>
> EXT_IF=eth1
>
> #############
> /sbin/iptables -t nat -A POSTROUTING -s
12.16.2.5 -o $EXT_IF -j MASQUERADE
>
>
> now
> how can i DROP ALL TRAFIC FROM IP
12.16.2.5 ??? exept port 80 to one
> external ip ?
>
> example
>
> i neeed to drop all traffic
> and i need to allow the traffic to one address only
>
> how can i do that Ç????
>
>
> /sbin/iptables -t nat -A POSTROUTING -s
12.16.2.5 -d EXTERNALONEHOSTONLY
> -o $EXT_IF -j ACCEPT
>
> /sbin/iptables -t nat -A POSTROUTING -s
12.16.2.5 -d
0.0.0.0/0 -o $EXT_IF
> -j DROP ???
>
>
> OR SHOULD I NEED TO USE TO FORWARD ??
>
> thanks for reading me .
>
>
>
>
>
>
>
>
>