Ja, das stimmt.
Ich habe ohne sh script VPN Tunnel gemacht. Ich mache im Shell:
/usr/sbin/telnetd -l /sbin/ar7login
mknod /var/tmp/tun c 10 200
/var/media/ftp/SMI-USBDISK-01/vpn/openvpn --client --config /var/media/ftp/SMI-USBDISK-01/vpn/config.ovpn
Und jetzt habe ich ping zum 10.0.13.4!!!
Danke Shoen!!!
Aber ich kann nicht verstehen, wie kann ich diese VPN hinter der FritzBox benutzen?
Koentten Sei bitte auf den Stufen schreiben.
Hier ist log:
Wed Jul 18 16:49:38 2012 OpenVPN 2.2.2 mips-linux [SSL] [LZO2] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Jan 9 2012
Wed Jul 18 16:49:38 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Wed Jul 18 16:49:38 2012 WARNING: file '/var/media/ftp/SMI-USBDISK-01/vpn/XXXXX.key' is group or others accessible
Wed Jul 18 16:49:38 2012 LZO compression initialized
Wed Jul 18 16:49:38 2012 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Jul 18 16:49:38 2012 Socket Buffers: R=[178176->131072] S=[178176->131072]
Wed Jul 18 16:49:38 2012 Data Channel MTU parms [ L:1558 D:1300 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Jul 18 16:49:38 2012 UDPv4 link local: [undef]
Wed Jul 18 16:49:38 2012 UDPv4 link remote: [AF_INET]XXXXXX:1193
Wed Jul 18 16:49:38 2012 TLS: Initial packet from [AF_INET]XXXXXXXXX:1193, sid=932e9f8f a1c1524a
Wed Jul 18 16:49:38 2012 VERIFY OK: depth=1, /C=RU/ST=MO/L=XXXXXX/O=XXXXX/CN=XXXXX_CA/emailAddress=XXXXXX
Wed Jul 18 16:49:38 2012 VERIFY OK: nsCertType=SERVER
Wed Jul 18 16:49:38 2012 VERIFY OK: depth=0, /C=RU/ST=MO/L=XXXXXXX/O=XXXXXXX/CN=XXXX.XX/emailAddress=XXXXXXXXXX
Wed Jul 18 16:49:40 2012 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Jul 18 16:49:40 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jul 18 16:49:40 2012 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Jul 18 16:49:40 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jul 18 16:49:40 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Wed Jul 18 16:49:40 2012 [XXX.XX] Peer Connection Initiated with [AF_INET]XXXXXXXXX:1193
Wed Jul 18 16:49:42 2012 SENT CONTROL [XXXXXX.XX]: 'PUSH_REQUEST' (status=1)
Wed Jul 18 16:49:42 2012 PUSH: Received control message: 'PUSH_REPLY,route 192.168.0.0 255.255.255.0,route 10.0.0.0 255.255.0.0,route 10.1.0.0 255.255.0.0,route 217.65.3.130 255.255.255.255,route 217.76.37.72 255.255.255.248,dhcp-option DNS 192.168.0.6,dhcp-option DNS 192.168.0.1,dhcp-option DOMAIN XXXX,dhcp-option WINS 192.168.0.6,route 10.0.128.1,topology net30,ping 10,ping-restart 120,ifconfig 10.0.128.26 10.0.128.25'
5.0.0,route 10.1.0.0 255.255.0.0,route 217.65.3.130 255.255.255.255,route 217.76.37.72 255.255.255.248,dhcp-option DNS 192 .168.0.6,dhcp-option DNS 192.168.0.1,dhcp-option DOMAIN XXX.XX,dhcp-option WINS 192.168.0.6,route 10.0.128.1,topology net30,ping 10,ping-restart 120,ifconfig 10.0.128.26 10.0.128.25'
Wed Jul 18 16:45:12 2012 OPTIONS IMPORT: timers and/or timeouts modified
Wed Jul 18 16:45:12 2012 OPTIONS IMPORT: --ifconfig/up options modified
Wed Jul 18 16:45:12 2012 OPTIONS IMPORT: route options modified
Wed Jul 18 16:45:12 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Wed Jul 18 16:45:12 2012 TUN/TAP device tun0 opened
Wed Jul 18 16:45:12 2012 TUN/TAP TX queue length set to 100
Wed Jul 18 16:45:12 2012 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Jul 18 16:45:12 2012 /sbin/ifconfig tun0 10.0.128.26 pointopoint 10.0.128.25 mtu 1500
Wed Jul 18 16:45:12 2012 /sbin/route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.0.128.25
Wed Jul 18 16:45:13 2012 /sbin/route add -net 10.0.0.0 netmask 255.255.0.0 gw 10.0.128.25
Wed Jul 18 16:45:13 2012 /sbin/route add -net 10.1.0.0 netmask 255.255.0.0 gw 10.0.128.25
Wed Jul 18 16:45:13 2012 /sbin/route add -net 217.65.3.130 netmask 255.255.255.255 gw 10.0.128.25
Wed Jul 18 16:45:13 2012 /sbin/route add -net 217.76.37.72 netmask 255.255.255.248 gw 10.0.128.25
Wed Jul 18 16:45:13 2012 /sbin/route add -net 10.0.128.1 netmask 255.255.255.255 gw 10.0.128.25
Wed Jul 18 16:45:13 2012 Initialization Sequence Completed
Danke Sehr!