WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   debian router routing eintragen (http://www.wcm.at/forum/showthread.php?t=123604)

aticio 29.01.2004 12:29

debian router routing eintragen
 
Hallo
Bitte um Hilfe.
Habe einen debian Router (192.168.0.1=intern) mit dem WCM Firewallscript laufen.
Nun muss ich alle anfragen welche intern auf die Adressen/Subnetz

10.1.0.0 255.255.255.0
10.1.1.0 255.255.255.0
10.1.50.0 255.255.255.0
10.1.51.0 255.255.255.0
10.1.62.0 255.255.255.0

kommen
auf die adresse 192.168.0.3 umrouten.

Kann mir jemand da helfen und sagen wie das zu machen ist?
Danke!

aticio 29.01.2004 16:54

was ist da falsch?
 
Was mache ich da falsch?

$IPTABLES -t nat -A PREROUTING -i $INTIF -d $SERVER -p tcp -j DNAT --to-destination $VPN_ROUTER

Bitte um Hilfe!

Sloter 30.01.2004 15:18

Re: was ist da falsch?
 
Zitat:

Original geschrieben von 3aticio333
Was mache ich da falsch?

$IPTABLES -t nat -A PREROUTING -i $INTIF -d $SERVER -p tcp -j DNAT --to-destination $VPN_ROUTER

Bitte um Hilfe!

Probier mal so, Port vielleicht noch anpassen:

$IPTABLES -t nat -A PREROUTING -d $INTIF -p tcp --destination-port 2300:2400 -i $INTIF -j DNAT --to $VPN_ROUTER

Sloter


Alle Zeitangaben in WEZ +2. Es ist jetzt 14:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag