Bin OpenVPN-Anfänger und habe versucht, 2 Netze (192.168.6.0/24 hinter meiner FBF und 192.168.7.0/24 hinter meinem OpenWRT-Router) für gegenseitigen Zugriff zu konfigurieren.
Die vom dsmod generierte conf-datei (server):
Dies ist meine client-config:
Und dies kam dabei heraus:
Hätte ich hier nicht die Route zum 6er Netz gepusht kriegen sollen?
Versionskonflikt 2.1rc2<-->2.0.8?
Brett vorm Kopf?
Wer weiß Rat?
Die vom dsmod generierte conf-datei (server):
Code:
# OpenVPN 2.1 Config
proto udp
port 1194
dev tun
secret /tmp/flash/static.key
ifconfig 10.8.0.1 10.8.0.2
route 10.8.0.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.6.0 255.255.255.0"
max-clients 5
tun-mtu 1500
mssfix
daemon
verb 3
cipher BF-CBC
route 192.168.7.0 255.255.255.0
keepalive 10 120
Code:
remote xxx.dyndns.org
proto udp
port 1194
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret "/etc/openvpn/secret.key"
tun-mtu 1492
float
mssfix
#comp-lzo
nobind
verb 3
Code:
root@OpenWrt:/etc/openvpn# openvpn --version
OpenVPN 2.0.8 mipsel-linux [SSL] [LZO] [EPOLL] built on Nov 6 2006
Developed by James Yonan
Copyright (C) 2002-2005 OpenVPN Solutions LLC <[email protected]>
root@OpenWrt:/etc/openvpn# openvpn --config client.conf &
Fri May 18 18:54:41 2007 OpenVPN 2.0.8 mipsel-linux [SSL] [LZO] [EPOLL] built on Nov 6 2006
Fri May 18 18:54:41 2007 WARNING: file '/etc/openvpn/secret.key' is group or others accessible
Fri May 18 18:54:41 2007 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri May 18 18:54:41 2007 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri May 18 18:54:41 2007 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri May 18 18:54:41 2007 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri May 18 18:54:41 2007 WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1492)
Fri May 18 18:54:42 2007 TUN/TAP device tun0 opened
Fri May 18 18:54:42 2007 /sbin/ifconfig tun0 10.8.0.2 pointopoint 10.8.0.1 mtu 1492
Fri May 18 18:54:42 2007 Data Channel MTU parms [ L:1536 D:1450 EF:44 EB:4 ET:0 EL:0 ]
Fri May 18 18:54:42 2007 Local Options hash (VER=V4): '84a852d1'
Fri May 18 18:54:42 2007 Expected Remote Options hash (VER=V4): '76a925ec'
Fri May 18 18:54:42 2007 UDPv4 link local: [undef]
Fri May 18 18:54:42 2007 UDPv4 link remote: 87.123.215.39:1194
Fri May 18 18:54:52 2007 read UDPv4 [EHOSTUNREACH]: No route to host (code=148)
Fri May 18 18:55:02 2007 read UDPv4 [EHOSTUNREACH]: No route to host (code=148)
Fri May 18 18:55:12 2007 read UDPv4 [EHOSTUNREACH]: No route to host (code=148)
Fri May 18 18:55:22 2007 read UDPv4 [EHOSTUNREACH]: No route to host (code=148)
Fri May 18 18:55:32 2007 read UDPv4 [EHOSTUNREACH]: No route to host (code=148)
Fri May 18 18:55:42 2007 read UDPv4 [EHOSTUNREACH]: No route to host (code=148)
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.1 * 255.255.255.255 UH 0 0 0 tun0
192.168.7.0 * 255.255.255.0 U 0 0 0 br0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
Versionskonflikt 2.1rc2<-->2.0.8?
Brett vorm Kopf?
Wer weiß Rat?