Iptables - Port Forwading
Heiko Kattenstroth
Heiko at Meierhof-Kattenstroth.de
Fri Dec 14 18:13:03 CET 2001
From: "Jonas Schrieb" <jschrieb at game-sites.de>
Subject: Re: Iptables - Port Forwading
> Also so zB funktionieren bei mir ohne Probleme direkte
> licq-Verbindungen. (licq lauscht an den Ports 5000-5020):
>
> # eingehende tcp-pakete auf port 5000-5020 zu jonas routen (fuer icq)
> iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 5000:5020 -j DNAT
> --to jonas
> # ausgehende pakete mit inet-ip versehen
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> MfG Jonas
>
Ahh....vielen Dank. Hatte nur ppp0 und eth1 vertauscht.
MfG Heiko
More information about the Linux
mailing list