PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Routing über iptables funktioniert nicht



Fleshgolem
05.05.03, 16:27
Hab Debian testing drauf
Ich bin mir ziemlich sicher, dass es schonma funktioniert hat, vor der neuinstallation ging es auch noch aber jetzt geht gar nix mehr.
Versuche das routing über

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
zu starten und ein "iptables -L -t nat" meldet auch, dass es an ist, aber am andren Rechner geht trotzdem nix, obwohl es dort definiv richtig eingerichtet is

Hier noch meine /etc/network/interfaces :



# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 217.11.16.70
netmask 255.255.0.0


eth0 ist für das Netzwerk und an eth1 hängt das dsl-modem

Jasper
05.05.03, 17:02
wie sehen die routing tables aus, von beiden kisten.

-j

Matzetronic
05.05.03, 18:11
fehlt da nicht die default-route (gateway)?

matze

Fleshgolem
05.05.03, 19:48
Die andre Kiste is ein Windows Rechner, kann also schlecht sein (Gateway und DNS sind richtig eingestellt)

Meine Routing Tabelle:


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
217.5.98.48 * 255.255.255.255 UH 0 0 0 ppp0
localnet * 255.255.255.0 U 0 0 0 eth0
217.11.0.0 * 255.255.0.0 U 0 0 0 eth1
default 217.5.98.48 0.0.0.0 UG 0 0 0 ppp0

Matzetronic
05.05.03, 20:04
axo, ging aus deinem post nich klar hervor :)

wieso gibst du deiner eth1 eine 217-er adresse ?

muss das so sein ?
217.5.98.48 * 255.255.255.255 UH 0 0 0 ppp0



matze

Fleshgolem
05.05.03, 20:40
Habse mal geändert, hilft aber auch nix