Re: IPv4-routing
Op 20100926 om 23:04 schreef Jaap van Wingerde:
> Op <Sun 26 Sep 2010 10:08:28 PM CEST> schreef Geert Stappers <stappers@stappers.nl> in bericht <[🔎] 20100926200828.GK11909@gpm.stappers.nl>:
> > cat /proc/sys/net/ipv4/ip_forward
> >
> > ???
> jaap@servertje:~$ cat /proc/sys/net/ipv4/ip_forward
> 1
> jaap@servertje:~$
>
> > Output van `netstat -rn` van _alle drie_ de systemen?
>
> jaap@servertje:~$ netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 10.0.134.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun2
> 10.0.132.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
> 10.0.133.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
> 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
> jaap@custard:~$
Die ziet er goed uit.
> jaap@vps:~$ netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 10.0.133.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
> 94.143.246.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 94.143.246.254 0.0.0.0 UG 0 0 0 eth0
> jaap@gaugino:~$
De VPS heeft _geen_ weet van de VPNs.
> Nokia-N900-02-8:~# netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 10.0.134.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
> 10.0.132.0 10.0.134.1 255.255.255.0 UG 0 0 0 tun0
> 10.0.133.0 10.0.134.1 255.255.255.0 UG 0 0 0 tun0
> 192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
> 0.0.0.0 192.168.11.1 0.0.0.0 UG 0 0 0 wlan0
> Nokia-N900-02-8:~#
Die ziet er goed uit, de VPNs zitten achter tun0.
Gebruik het als voorbeeld bij de VPS.
> Dank.
Laat vooral weten wat het effect is van de toegevoegde routes op VPS.
Stappers
Die twee VPNs, i.p.v. drie, zou gebruiken.
Reply to: