janjust wrote
- your openvpn setup seems to be using 'proto udp' which is blocked by most proxies/hotels; try 'proto tcp'
- if the Astara box works then check its server-side config; if you cannot get at that, add 'verb 5' the client log file, connect the VPN client and watch for the line
Tue May 14 22:52:24 2013 PUSH: Received control message: 'PUSH_REPLY,route 0.0.0.0 0.0.0.0 gw 10.8.0.1,dhcp-option DNS 8.8.8.8,redirect-gateway def1 bypass-dhcp,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
the first option that is pushed (route 0.0.0.0 0.0.0.0 gw 10.8.0.1) is ignored as it's wrongly specified in the server config.
A final note: if performance is really bad (over tcp , mostly) then try lowering the mtu size on both sides
tun-mtu 1400
On Windows this may als require a change in the tap-win32 adapter properties.
No problem 😉
- Proto TCP: I've connected via UDP the last time it worked. But I can try that, just have to see how to disable the https from the Apache...
- Yesterday I got the config from my Astaro. Today I tried to copy as much as I could from the given config, but still the same problem.
- Smaller MTU can't change much if I only got 100kBit/s Upload...
Connecting to my (virtual) Astaro
locally at home (192.168.2.1 Router with DHCP, DNS, ...):
Wed Jun 12 23:00:28 2013 us=96000 [Astaro01] Peer Connection Initiated with 93.203.204.28:443
Wed Jun 12 23:00:30 2013 us=187000 SENT CONTROL [Astaro01]: 'PUSH_REQUEST' (status=1)
Wed Jun 12 23:00:30 2013 us=390000 PUSH: Received control message: 'PUSH_REPLY,route remote_host 255.255.255.255 net_gateway,redirect-gateway def1,route 10.242.2.1,topology net30,ping 10,ping-restart 120,ifconfig 10.242.2.6 10.242.2.5'
Wed Jun 12 23:00:30 2013 us=390000 OPTIONS IMPORT: timers and/or timeouts modified
Wed Jun 12 23:00:30 2013 us=390000 OPTIONS IMPORT: --ifconfig/up options modified
Wed Jun 12 23:00:30 2013 us=390000 OPTIONS IMPORT: route options modified
Wed Jun 12 23:00:30 2013 us=405000 ROUTE default_gateway=192.168.2.1
Wed Jun 12 23:00:30 2013 us=405000 TAP-WIN32 device [LAN-Verbindung 3] opened: \\.\Global\{BC677851-9C2C-4701-AFE4-EFBF97DA6CCB}.tap
Wed Jun 12 23:00:30 2013 us=405000 TAP-Win32 Driver Version 9.6
Wed Jun 12 23:00:30 2013 us=405000 TAP-Win32 MTU=1500
Wed Jun 12 23:00:30 2013 us=421000 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.242.2.6/255.255.255.252 on interface {BC677851-9C2C-4701-AFE4-EFBF97DA6CCB} [DHCP-serv: 10.242.2.5, lease-time: 31536000]
Wed Jun 12 23:00:30 2013 us=421000 Successful ARP Flush on interface [26] {BC677851-9C2C-4701-AFE4-EFBF97DA6CCB}
Wed Jun 12 23:00:34 2013 us=461000 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Wed Jun 12 23:00:34 2013 us=461000 C:\WINDOWS\system32\route.exe ADD 93.203.204.28 MASK 255.255.255.255 192.168.2.1
Wed Jun 12 23:00:34 2013 us=461000 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed Jun 12 23:00:34 2013 us=461000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:00:34 2013 us=461000 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.242.2.5
Wed Jun 12 23:00:34 2013 us=461000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:00:34 2013 us=461000 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.242.2.5
Wed Jun 12 23:00:34 2013 us=461000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:00:34 2013 us=477000 C:\WINDOWS\system32\route.exe ADD 93.203.204.28 MASK 255.255.255.255 192.168.2.1
Wed Jun 12 23:00:34 2013 us=477000 ROUTE: route addition failed using CreateIpForwardEntry: Das Objekt ist bereits vorhanden. [status=5010 if_index=13]
Wed Jun 12 23:00:34 2013 us=477000 Route addition via IPAPI failed [adaptive]
Wed Jun 12 23:00:34 2013 us=477000 Route addition fallback to route.exe
Wed Jun 12 23:00:34 2013 us=492000 C:\WINDOWS\system32\route.exe ADD 10.242.2.1 MASK 255.255.255.255 10.242.2.5
Wed Jun 12 23:00:34 2013 us=492000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:00:34 2013 us=492000 Initialization Sequence Completed
When I try to connect to the
OpenVPN Server (188.138.122.4 in the internet):
Wed Jun 12 23:14:07 2013 us=429000 [server] Peer Connection Initiated with 188.138.122.4:443
Wed Jun 12 23:14:09 2013 us=878000 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Wed Jun 12 23:14:09 2013 us=894000 PUSH: Received control message: 'PUSH_REPLY,route remote_host 255.255.255.255 net_gateway,redirect-gateway def1,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Wed Jun 12 23:14:09 2013 us=894000 OPTIONS IMPORT: timers and/or timeouts modified
Wed Jun 12 23:14:09 2013 us=894000 OPTIONS IMPORT: --ifconfig/up options modified
Wed Jun 12 23:14:09 2013 us=894000 OPTIONS IMPORT: route options modified
Wed Jun 12 23:14:09 2013 us=894000 ROUTE default_gateway=192.168.2.1
Wed Jun 12 23:14:09 2013 us=910000 TAP-WIN32 device [LAN-Verbindung 3] opened: \\.\Global\{BC677851-9C2C-4701-AFE4-EFBF97DA6CCB}.tap
Wed Jun 12 23:14:09 2013 us=910000 TAP-Win32 Driver Version 9.6
Wed Jun 12 23:14:09 2013 us=910000 TAP-Win32 MTU=1500
Wed Jun 12 23:14:09 2013 us=910000 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {BC677851-9C2C-4701-AFE4-EFBF97DA6CCB} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Wed Jun 12 23:14:09 2013 us=910000 Successful ARP Flush on interface [26] {BC677851-9C2C-4701-AFE4-EFBF97DA6CCB}
Wed Jun 12 23:14:14 2013 us=168000 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Wed Jun 12 23:14:14 2013 us=168000 C:\WINDOWS\system32\route.exe ADD 188.138.122.4 MASK 255.255.255.255 192.168.2.1
Wed Jun 12 23:14:14 2013 us=168000 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed Jun 12 23:14:14 2013 us=168000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:14:14 2013 us=168000 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Jun 12 23:14:14 2013 us=184000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:14:14 2013 us=184000 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Jun 12 23:14:14 2013 us=184000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:14:14 2013 us=184000 C:\WINDOWS\system32\route.exe ADD 188.138.122.4 MASK 255.255.255.255 192.168.2.1
Wed Jun 12 23:14:14 2013 us=184000 ROUTE: route addition failed using CreateIpForwardEntry: Das Objekt ist bereits vorhanden. [status=5010 if_index=13]
Wed Jun 12 23:14:14 2013 us=184000 Route addition via IPAPI failed [adaptive]
Wed Jun 12 23:14:14 2013 us=184000 Route addition fallback to route.exe
Wed Jun 12 23:14:14 2013 us=200000 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Wed Jun 12 23:14:14 2013 us=200000 Route addition via IPAPI succeeded [adaptive]
Wed Jun 12 23:14:14 2013 us=200000 Initialization Sequence Completed
New OpenVPN Server Config(Astaro CFG as example, outcommented all which killed the server before it even did run):
dev tun
proto udp
local 0.0.0.0
port 443
multihome
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /etc/openvpn/ipp.txt
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
cipher AES-256-CBC
auth SHA1
comp-lzo
;ccd-exclusive
client-config-dir /etc/openvpn/server
push "route remote_host 255.255.255.255 net_gateway"
push "redirect-gateway def1"
duplicate-cn
;port-share 127.0.0.1 10443
management /var/run/ovpn_mgmt unix
management-client-user root
management-client-group root
persist-key
persist-tun
status /etc/openvpn/openvpn-status.log
reneg-sec 28800
keepalive 10 120
verb 3
script-security 2
;up "/etc/openvpn/openvpn_updown.plx up"
;down "/etc/openvpn/openvpn_updown.plx down"
;down-pre
OpenVPN Server Log:
Wed Jun 12 23:33:43 2013 OpenVPN 2.1.0 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 20 2010
Wed Jun 12 23:33:43 2013 MANAGEMENT: client_uid=0
Wed Jun 12 23:33:43 2013 MANAGEMENT: client_gid=0
Wed Jun 12 23:33:43 2013 MANAGEMENT: unix domain socket listening on /var/run/ovpn_mgmt
Wed Jun 12 23:33:43 2013 WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
Wed Jun 12 23:33:43 2013 WARNING: --ifconfig-pool-persist will not work with --duplicate-cn
Wed Jun 12 23:33:43 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Wed Jun 12 23:33:43 2013 Diffie-Hellman initialized with 2048 bit key
Wed Jun 12 23:33:43 2013 /usr/bin/openssl-vulnkey -q -b 2048 -m <modulus omitted>
Wed Jun 12 23:33:43 2013 TLS-Auth MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Jun 12 23:33:43 2013 ROUTE default_gateway=188.138.122.1
Wed Jun 12 23:33:43 2013 TUN/TAP device tun0 opened
Wed Jun 12 23:33:43 2013 TUN/TAP TX queue length set to 100
Wed Jun 12 23:33:43 2013 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Wed Jun 12 23:33:43 2013 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Wed Jun 12 23:33:43 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Jun 12 23:33:43 2013 Socket Buffers: R=[124928->131072] S=[124928->131072]
Wed Jun 12 23:33:43 2013 UDPv4 link local (bound): [undef]
Wed Jun 12 23:33:43 2013 UDPv4 link remote: [undef]
Wed Jun 12 23:33:43 2013 MULTI: multi_init called, r=256 v=256
Wed Jun 12 23:33:43 2013 IFCONFIG POOL: base=10.8.0.4 size=62
Wed Jun 12 23:33:43 2013 IFCONFIG POOL LIST
Wed Jun 12 23:33:43 2013 Initialization Sequence Completed
Wed Jun 12 23:33:44 2013 MULTI: multi_create_instance called
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Re-using SSL/TLS context
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 LZO compression initialized
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Local Options hash (VER=V4): 'a8f55717'
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Expected Remote Options hash (VER=V4): '22188c5b'
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 TLS: Initial packet from [AF_INET]93.203.204.28:56806, sid=cbc0bd91 c05c30cf
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 VERIFY OK: depth=1, /C=DE/*****
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 VERIFY OK: depth=0, /C=DE/*****
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Wed Jun 12 23:33:44 2013 93.203.204.28:56806 [client2] Peer Connection Initiated with [AF_INET]93.203.204.28:56806
Wed Jun 12 23:33:44 2013 client2/93.203.204.28:56806 MULTI: Learn: 10.8.0.6 -> client2/93.203.204.28:56806
Wed Jun 12 23:33:44 2013 client2/93.203.204.28:56806 MULTI: primary virtual IP for client2/93.203.204.28:56806: 10.8.0.6
Wed Jun 12 23:33:47 2013 client2/93.203.204.28:56806 PUSH: Received control message: 'PUSH_REQUEST'
Wed Jun 12 23:33:47 2013 client2/93.203.204.28:56806 SENT CONTROL [client2]: 'PUSH_REPLY,route remote_host 255.255.255.255 net_gateway,redirect-gateway def1,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5' (status=1)
Maybe tomorrow I will post again an client log from outside of my network (mobile phone).