Hi,
ich versuche meine box zu einem vpn zu verbinden (bis ich weiss, dass es geht versuche ich vpnbook.com) und alle devices auf meiner Seite mit masquerade zu verstecken.
Verbinde ich mich mit dem vpn sehe ich folgendes:
Natürlich kann ich so keine Seiten aufrufen. Route sagt folgendes
Also habe ich gegoogelt und die route wie hier vorgeschlagen geändert.
Wenn ich damit google pinge habe ich 100% package loss. Da ich mich mit routing wirklich null auskenne habe ich gehofft mir könnte hier jemand helfen?
Danke und Grüsse,
freesel
ich versuche meine box zu einem vpn zu verbinden (bis ich weiss, dass es geht versuche ich vpnbook.com) und alle devices auf meiner Seite mit masquerade zu verstecken.
Verbinde ich mich mit dem vpn sehe ich folgendes:
Code:
root@fritz:/var/media/ftp/platte01/vpn# openvpn --config vpnbook-uk1-tcp443.ovpn
Wed Oct 23 18:52:32 2013 OpenVPN 2.2.1 mips-linux [SSL] [LZO2] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Oct 22 2013
Enter Auth Username:vpnbook
Enter Auth Password:
Wed Oct 23 18:52:44 2013 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Oct 23 18:52:44 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Wed Oct 23 18:52:44 2013 NOTE: --fast-io is disabled since we are not using UDP
Wed Oct 23 18:52:44 2013 LZO compression initialized
Wed Oct 23 18:52:44 2013 Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Wed Oct 23 18:52:44 2013 Socket Buffers: R=[87380->131072] S=[16384->131072]
Wed Oct 23 18:52:44 2013 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Oct 23 18:52:44 2013 Attempting to establish TCP connection with [AF_INET]46.23.68.180:443 [nonblock]
Wed Oct 23 18:52:45 2013 TCP connection established with [AF_INET]46.23.68.180:443
Wed Oct 23 18:52:45 2013 TCPv4_CLIENT link local: [undef]
Wed Oct 23 18:52:45 2013 TCPv4_CLIENT link remote: [AF_INET]46.23.68.180:443
Wed Oct 23 18:52:45 2013 TLS: Initial packet from [AF_INET]46.23.68.180:443, sid=c91bdd37 eccef230
Wed Oct 23 18:52:45 2013 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Oct 23 18:52:46 2013 VERIFY OK: depth=1, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/[email protected]
Wed Oct 23 18:52:46 2013 VERIFY OK: depth=0, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/[email protected]
Wed Oct 23 18:52:46 2013 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Oct 23 18:52:46 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Oct 23 18:52:46 2013 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Oct 23 18:52:46 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Oct 23 18:52:46 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Wed Oct 23 18:52:46 2013 [vpnbook.com] Peer Connection Initiated with [AF_INET]46.23.68.180:443
Wed Oct 23 18:52:49 2013 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Wed Oct 23 18:52:49 2013 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 83.170.64.2,dhcp-option DNS 83.170.69.2,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.2.14 10.9.2.13'
Wed Oct 23 18:52:49 2013 OPTIONS IMPORT: timers and/or timeouts modified
Wed Oct 23 18:52:49 2013 OPTIONS IMPORT: --ifconfig/up options modified
Wed Oct 23 18:52:49 2013 OPTIONS IMPORT: route options modified
Wed Oct 23 18:52:49 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Wed Oct 23 18:52:49 2013 TUN/TAP device tun1 opened
Wed Oct 23 18:52:49 2013 TUN/TAP TX queue length set to 100
Wed Oct 23 18:52:49 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Oct 23 18:52:49 2013 /sbin/ifconfig tun1 10.9.2.14 pointopoint 10.9.2.13 mtu 1500
[B]Wed Oct 23 18:52:51 2013 NOTE: unable to redirect default gateway -- Cannot read current default gateway from system[/B]
Wed Oct 23 18:52:51 2013 /sbin/route add -net 10.9.0.1 netmask 255.255.255.255 gw 10.9.2.13
Wed Oct 23 18:52:51 2013 Initialization Sequence Completed
Natürlich kann ich so keine Seiten aufrufen. Route sagt folgendes
Code:
root@fritz:/var/media/ftp/container/external# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.180.1 * 255.255.255.255 UH 2 0 0 dsl
10.9.1.237 * 255.255.255.255 UH 0 0 0 tun1
10.9.0.1 10.9.1.237 255.255.255.255 UGH 0 0 0 tun1
77.11.168.78 * 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 * 255.255.255.255 UH 2 0 0 dsl
192.168.178.0 * 255.255.255.0 U 0 0 0 lan
192.168.179.0 * 255.255.255.0 U 0 0 0 guest
169.254.0.0 * 255.255.0.0 U 0 0 0 lan
default * 0.0.0.0 U 2 0 0 dsl
root@fritz:/var/media/ftp/container/external#
Code:
root@fritz:/var/media/ftp/container/external# route add 46.23.68.180 dev dsl
root@fritz:/var/media/ftp/container/external# route add -net 0.0.0.0/1 dev tun1
root@fritz:/var/media/ftp/container/external# route add -net 128.0.0.0/1 dev tun1
root@fritz:/var/media/ftp/container/external# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.180.1 * 255.255.255.255 UH 2 0 0 dsl
10.9.1.237 * 255.255.255.255 UH 0 0 0 tun1
10.9.0.1 10.9.1.237 255.255.255.255 UGH 0 0 0 tun1
77.11.168.78 * 255.255.255.255 UH 2 0 0 dsl
192.168.180.2 * 255.255.255.255 UH 2 0 0 dsl
46.23.68.180 * 255.255.255.255 UH 0 0 0 dsl
192.168.178.0 * 255.255.255.0 U 0 0 0 lan
192.168.179.0 * 255.255.255.0 U 0 0 0 guest
169.254.0.0 * 255.255.0.0 U 0 0 0 lan
default * 128.0.0.0 U 0 0 0 tun1
128.0.0.0 * 128.0.0.0 U 0 0 0 tun1
default * 0.0.0.0 U 2 0 0 dsl
root@fritz:/var/media/ftp/container/external#
Danke und Grüsse,
freesel
Zuletzt bearbeitet: