[PLUG] Port redirection on a firewall ?
Richard Langis
richard.langis at sun.com
Tue Nov 19 18:55:33 UTC 2002
For mail:
$iptables -A FORWARD -i $if_ext -p tcp -d $host --dport 25 -j ACCEPT
http:
$iptables -A FORWARD -i $if_ext -p tcp -d $host --dport 80 -j ACCEPT
Where $iptables is where `which iptables` shows up, $if_ext is your
external (firewalled) interface, and $host is the machine you are
routing to.
-R
Alex Daniloff wrote:
> Hello Linux folkz,
> Could somebody please give me an example of iptables
> configuration which allows to pass mail traffic through the
> firewall and redirect it to the mail server behind the firewall.
> And the same I'd like to achive for the web server which is
> a separate host as well.
> Thank you in advance for any ideas or sources of information.
>
> Alex
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
--
s u n m i c r o s y s t e m s
~ Richard Langis Jr. ~
richard.langis at sun.com
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now? [OK]
More information about the PLUG
mailing list