Thanks to this forum, I got my VPN Client on my Fritz up and running, but no traffic are going over the VPN, how do I change the route, so all the clients on the LAN uses the VPN tunnel between the Fritz and the VPN Server:
VPN Witopia.net (OpenVPN Server 10.119.0.10) <====> FritzBox ( LAN: 192.168.1.1, OpenVPN Client: 10.119.0.1) <=====> LAN (NW: 192.168.1.0, mask: 255.255.255.0 GW: 192.168.1.1)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.119.0.109 * 255.255.255.255 UH 0 0 0 tun0
192.168.180.1 * 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 * 255.255.255.255 UH 2 0 0 dsl
10.119.0.1 10.119.0.109 255.255.255.255 UGH 0 0 0 tun0
87.x.x.x * 255.255.255.240 U 2 0 0 dsl
192.168.1.0 * 255.255.255.0 U 0 0 0 lan
169.254.0.0 * 255.255.0.0 U 0 0 0 lan
default * 0.0.0.0 U 2 0 0 dsl
With the following routing changes:
# route del default
# route add default gw 169.254.2.1 dev dsl
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.119.0.109 * 255.255.255.255 UH 0 0 0 tun0
192.168.180.1 * 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 * 255.255.255.255 UH 2 0 0 dsl
10.119.0.1 10.119.0.109 255.255.255.255 UGH 0 0 0 tun0
87.x.x.x * 255.255.255.240 U 2 0 0 dsl
192.168.1.0 * 255.255.255.0 U 0 0 0 lan
169.254.0.0 * 255.255.0.0 U 0 0 0 lan
default 169.254.2.1 0.0.0.0 UG 0 0 0 dsl
Connections from the FritzBox goes over the VPN tunnel and reaches almost the destination:
# traceroute www.heise.de
traceroute to www.heise.de (193.99.144.85), 30 hops max, 38 byte packets
1 lo1.virnxx18.ip.tele.dk (80.166.139.37) 12.517 ms 11.894 ms 12.538 ms
2 ge-3-1-0-50.virnxu4.dk.ip.tdc.net (83.88.7.218) 14.189 ms 11.974 ms 47.780 ms
3 xe-2-2-0.ffm2nqp1.de.ip.tdc.net (83.88.23.216) 42.550 ms 53.761 ms 42.064 ms
4 te3-1.c101.f.de.plusline.net (80.81.192.132) 43.482 ms 43.974 ms 46.261 ms
5 * * heise2.f.de.plusline.net (82.98.98.106) 44.858 ms !A
6 * * *
But when I try the same from a PC on the LAN, the VPN gets bypassed:
Tracing route to www.heise.de [193.99.144.85]
over a maximum of 30 hops:
1 1 ms 3 ms 1 ms 192.168.1.1
2 29 ms 18 ms 35 ms lo1.virnxx18.ip.tele.dk [80.166.139.37]
3 14 ms 14 ms 12 ms ge-3-1-0-50.virnxu4.dk.ip.tdc.net [83.88.7.218]
4 51 ms 43 ms 45 ms xe-2-2-0.ffm2nqp1.de.ip.tdc.net [83.88.23.216]
5 44 ms 46 ms 52 ms te3-1.c101.f.de.plusline.net [80.81.192.132]
6 47 ms 46 ms 46 ms heise2.f.de.plusline.net [82.98.98.106]
7 45 ms 46 ms 45 ms www.heise.de [193.99.144.85]
Trace complete.
Thanks in advance
Donald
VPN Witopia.net (OpenVPN Server 10.119.0.10) <====> FritzBox ( LAN: 192.168.1.1, OpenVPN Client: 10.119.0.1) <=====> LAN (NW: 192.168.1.0, mask: 255.255.255.0 GW: 192.168.1.1)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.119.0.109 * 255.255.255.255 UH 0 0 0 tun0
192.168.180.1 * 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 * 255.255.255.255 UH 2 0 0 dsl
10.119.0.1 10.119.0.109 255.255.255.255 UGH 0 0 0 tun0
87.x.x.x * 255.255.255.240 U 2 0 0 dsl
192.168.1.0 * 255.255.255.0 U 0 0 0 lan
169.254.0.0 * 255.255.0.0 U 0 0 0 lan
default * 0.0.0.0 U 2 0 0 dsl
With the following routing changes:
# route del default
# route add default gw 169.254.2.1 dev dsl
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.119.0.109 * 255.255.255.255 UH 0 0 0 tun0
192.168.180.1 * 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 * 255.255.255.255 UH 2 0 0 dsl
10.119.0.1 10.119.0.109 255.255.255.255 UGH 0 0 0 tun0
87.x.x.x * 255.255.255.240 U 2 0 0 dsl
192.168.1.0 * 255.255.255.0 U 0 0 0 lan
169.254.0.0 * 255.255.0.0 U 0 0 0 lan
default 169.254.2.1 0.0.0.0 UG 0 0 0 dsl
Connections from the FritzBox goes over the VPN tunnel and reaches almost the destination:
# traceroute www.heise.de
traceroute to www.heise.de (193.99.144.85), 30 hops max, 38 byte packets
1 lo1.virnxx18.ip.tele.dk (80.166.139.37) 12.517 ms 11.894 ms 12.538 ms
2 ge-3-1-0-50.virnxu4.dk.ip.tdc.net (83.88.7.218) 14.189 ms 11.974 ms 47.780 ms
3 xe-2-2-0.ffm2nqp1.de.ip.tdc.net (83.88.23.216) 42.550 ms 53.761 ms 42.064 ms
4 te3-1.c101.f.de.plusline.net (80.81.192.132) 43.482 ms 43.974 ms 46.261 ms
5 * * heise2.f.de.plusline.net (82.98.98.106) 44.858 ms !A
6 * * *
But when I try the same from a PC on the LAN, the VPN gets bypassed:
Tracing route to www.heise.de [193.99.144.85]
over a maximum of 30 hops:
1 1 ms 3 ms 1 ms 192.168.1.1
2 29 ms 18 ms 35 ms lo1.virnxx18.ip.tele.dk [80.166.139.37]
3 14 ms 14 ms 12 ms ge-3-1-0-50.virnxu4.dk.ip.tdc.net [83.88.7.218]
4 51 ms 43 ms 45 ms xe-2-2-0.ffm2nqp1.de.ip.tdc.net [83.88.23.216]
5 44 ms 46 ms 52 ms te3-1.c101.f.de.plusline.net [80.81.192.132]
6 47 ms 46 ms 46 ms heise2.f.de.plusline.net [82.98.98.106]
7 45 ms 46 ms 45 ms www.heise.de [193.99.144.85]
Trace complete.
Thanks in advance
Donald
Zuletzt bearbeitet: