Hallo,
ich versuche mit Ubuntu 12.04 (also dem Network manager) eine OpenVPN Verbindung zu meiner Fritzbox 7390 herzustellen.
Das funktioniert soweit auch erstmal. Zumindest kommt irgendwann die Meldung:
Aber dann kommt immer nur der Fehler:
Das hier ist meine openvpn.conf auf der Box:
Und hier das Syslog auf dem Laptop mit dem ich mich zu verbinden versuche:
ich versuche mit Ubuntu 12.04 (also dem Network manager) eine OpenVPN Verbindung zu meiner Fritzbox 7390 herzustellen.
Das funktioniert soweit auch erstmal. Zumindest kommt irgendwann die Meldung:
Code:
Initialization Sequence Completed
Aber dann kommt immer nur der Fehler:
Code:
write to TUN/TAP : Invalid argument (code=22)
Das hier ist meine openvpn.conf auf der Box:
Code:
proto udp
dev tap0
#Helperline for rc.openvpn to add tap0 to lan bridge
dev-node /dev/tun
secret /tmp/flash/openvpn/static.key
port 1194
ifconfig 192.168.200.1 255.255.255.0
push "route-gateway 192.168.200.1"
push "route 192.168.178.0 255.255.255.0"
max-clients 1
tun-mtu 1500
mssfix
verb 3
daemon
cipher AES-256-CBC
comp-lzo
float
keepalive 10 120
chroot /tmp/openvpn
user openvpn
group openvpn
persist-tun
persist-key
Und hier das Syslog auf dem Laptop mit dem ich mich zu verbinden versuche:
Code:
May 6 20:02:16 aspire722 nm-openvpn[4776]: OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 30 2012
May 6 20:02:16 aspire722 nm-openvpn[4776]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
May 6 20:02:16 aspire722 nm-openvpn[4776]: LZO compression initialized
May 6 20:02:16 aspire722 NetworkManager[759]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
May 6 20:02:16 aspire722 NetworkManager[759]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
May 6 20:02:16 aspire722 nm-openvpn[4776]: TUN/TAP device tun0 opened
May 6 20:02:16 aspire722 nm-openvpn[4776]: /usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper tun0 1500 1561 192.168.200.2 192.168.200.1 init
May 6 20:02:16 aspire722 NetworkManager[759]: <info> VPN connection 'foo.homedns.org' (IP Config Get) reply received.
May 6 20:02:16 aspire722 nm-openvpn[4776]: UDPv4 link local: [undef]
May 6 20:02:16 aspire722 nm-openvpn[4776]: UDPv4 link remote: [AF_INET]77.179.98.245:1194
May 6 20:02:16 aspire722 NetworkManager[759]: <info> VPN Gateway: 77.179.98.245
May 6 20:02:16 aspire722 NetworkManager[759]: <info> Tunnel Device: tun0
May 6 20:02:16 aspire722 NetworkManager[759]: <info> Internal IP4 Address: 192.168.200.2
May 6 20:02:16 aspire722 NetworkManager[759]: <info> Internal IP4 Prefix: 32
May 6 20:02:16 aspire722 NetworkManager[759]: <info> Internal IP4 Point-to-Point Address: 192.168.200.1
May 6 20:02:16 aspire722 NetworkManager[759]: <info> Maximum Segment Size (MSS): 0
May 6 20:02:16 aspire722 NetworkManager[759]: <info> Forbid Default Route: no
May 6 20:02:16 aspire722 NetworkManager[759]: <info> DNS Domain: '(none)'
May 6 20:02:17 aspire722 dnsmasq[4723]: exiting on receipt of SIGTERM
May 6 20:02:17 aspire722 NetworkManager[759]: <info> DNS: starting dnsmasq...
May 6 20:02:17 aspire722 NetworkManager[759]: <info> (tun0): writing resolv.conf to /sbin/resolvconf
May 6 20:02:17 aspire722 dnsmasq[4781]: started, version 2.59 cache disabled
May 6 20:02:17 aspire722 dnsmasq[4781]: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP conntrack IDN
May 6 20:02:17 aspire722 dnsmasq[4781]: warning: no upstream servers configured
May 6 20:02:17 aspire722 NetworkManager[759]: <info> VPN connection 'foo.homedns.org' (IP Config Get) complete.
May 6 20:02:18 aspire722 NetworkManager[759]: <info> Policy set 'foo.homedns.org' (tun0) as default for IPv4 routing and DNS.
May 6 20:02:18 aspire722 NetworkManager[759]: <info> Policy set 'moria' (wlan0) as default for IPv6 routing and DNS.
May 6 20:02:18 aspire722 dbus[711]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
May 6 20:02:18 aspire722 NetworkManager[759]: <info> VPN plugin state changed: started (4)
May 6 20:02:18 aspire722 dbus[711]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 6 20:02:18 aspire722 ntpdate[4815]: Can't find host ntp.ubuntu.com: Name or service not known (-2)
May 6 20:02:18 aspire722 ntpdate[4815]: no servers can be used, exiting
May 6 20:02:18 aspire722 nm-openvpn[4776]: Peer Connection Initiated with [AF_INET]77.179.98.245:1194
May 6 20:02:18 aspire722 nm-openvpn[4776]: write to TUN/TAP : Invalid argument (code=22)
May 6 20:02:19 aspire722 nm-openvpn[4776]: Initialization Sequence Completed
May 6 20:02:19 aspire722 nm-openvpn[4776]: write to TUN/TAP : Invalid argument (code=22)