[linux] routeren?

joop gerritse jjge op xs4all.nl
Vr Feb 8 14:23:05 CET 2008


Hallo, *

ik ben een beetje bang dat ik iets heel onnozels over het hoofd zie. Ik wil 
een Ubuntu box als router gebruiken. Ik heb de routing table:

root op Penti:/home/administrator# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.101.9   *               255.255.255.255 UH    0      0        0 tun0
192.168.101.1   192.168.101.9   255.255.255.255 UGH   0      0        0 tun0
192.168.101.0   192.168.101.9   255.255.255.0   UG    0      0        0 tun0
192.168.87.0    *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
10.0.0.0        192.168.101.9   255.0.0.0       UG    0      0        0 tun0
default         192.168.87.6    0.0.0.0         UG    100    0        0 eth0
root op Penti:/home/administrator# 

Hiermee moet dus alles wat binnenkomt voor 10.x.y.z via 192.168.101.9 naar 
tun0 gaan, en dat is een OpenVPN tunnelinterface naar weer een andere 
machine.

Als ik vanaf de Ubuntudoos ping 10.0.0.21 geef gaat dat ook goed.

Ik heb uiteraard ook /proc/sys/net/ipv4/ip_forward op 1 gezet.

Maar als ik van een andere machine ping 10.0.0.21 doe, gebeurt er nix. Zet ik 
(op de Ubuntudoos) tcpdump aan dan zie ik de icmp frames binnenkomen, maar er 
gaat niets uit over tun0.

Wat zie ik over het hoofd?

-- 
J.J. Gerritse
Mühlenstraße 11
D-47546 Kalkar-Wissel
Duitsland
+49-2824-971487



More information about the Linux mailing list