Portforwarding mit IP-Tables.....

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Tue Mar 16 13:42:46 UTC 2004


Am Di, den 16.03.2004 schrieb Falk Grosswig um 14:15:
> Hi,
> 
> ich kann Dir ja mal ein bissl helfen so wie ich es bei uns in der Firma
> auf Fedora praktiziere. Hier nun ein paar ausschnitte :

> echo 1 >> /proc/sys/net/ipv4/ip_forward
> echo 1 >> /proc/sys/net/ipv4/ip_dynaddr

>> statt >
nicht gut

> # weiterleitungen
> echo '|Enabling eMule|'
> 
> #-- eMule-Verbindungen nach 192.168.3.101 leiten --
> iptables -t nat -A PREROUTING -i ppp0 -p TCP --dport 4662 -j DNAT
> --to-destination 192.168.3.101
> iptables -t nat -A PREROUTING -i ppp0 -p UDP --dport 5662 -j DNAT
> --to-destination 192.168.3.101
> iptables -t nat -A PREROUTING -i ppp0 -p TCP --dport 4711 -j DNAT
> --to-destination 192.168.3.101
> iptables -t nat -A PREROUTING -i ppp0 -p UDP --dport 4711 -j DNAT
> --to-destination 192.168.3.101
> 
> iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 4711 -j DNAT --to
> 192.168.3.101:4711
> iptables -A FORWARD -p tcp --dport 4711 -j ACCEPT

Was bitte hast du jetzt anders per iptables konfiguriert als Ronny?
Anstatt ein komplettes Script zu posten, wäre es wohl hilfreicher für
Ronny, wenn du Erklärungen liefern würdest.

Völlig unberührt lässt du die eigentliche Frage, ob nämlich connects von
einem Host innerhalb des privaten Netzes auf einen anderen LAN Host
unter Verwendung der DynIP funktioniert. Ich würde mal frech
unterstellen, dass genau das mit deinem Script auch nicht funktioniert.

Gruß

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
Sirendipity 14:36:16 up 7 days, 14:55, load average: 0.02, 0.21, 0.18 
                   [ Γνωθι σ'αυτον - gnothi seauton ]
             my life is a planetarium - and you are the stars






More information about the Fedora-de-list mailing list