chrisedwards
New Around Here
I have Merlin firmware on my Asus N66U setup. Running latest build 270.24.
OpenVPN client is setup and connects to the OpenVPN server with no issues. Web traffic at least appears to be routing through the OpenVPN server. However, on the OpenVPN server I am receiving the following errors in syslog:
24.212.211.xxx is my public IP address that my Asus N66U router is getting.
10.200.0.0 is the subnet openvpn server assigns connecting clients
192.168.32.0 is my home network subnet (the network hosted by the Asus N66u router)
Feb 17 23:44:30 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: bad source address from client [24.212.211.xxx], packet dropped
I would have thought that the source on the packets going through the VPN would be Masqueraded using the VPN IP address instead?
Setup:
Local router: /tmp/etc/openvpn/client1/client1.ovpn
Server config:
Connection syslog:
What's weird is the it seems like it doesn't know where to route 24.212.211.xxx even though that's the connecting machine. I'm guessing that the source of these packets should be being rewritten to 10.200.0.2 somewhere? But not sure what I could be missing.
route
iptables
I have a ccd file setup on the server. 192.168.32.0 is local subnet on the Asus router. I can ping clients from the server no issue. Ie. ping 192.168.32.10, a device on my home network succeeds from the server.
ccd file:
Any ideas how I can get ride of these errors? There seems to be some lag in certain applications (xbox live login takes much longer). I can browse through the VPN just fine and it is being routed through the vpn as http://www.whatismyip.com/ shows the server IP address instead of the asus router public IP.
Cheers,
Chris
OpenVPN client is setup and connects to the OpenVPN server with no issues. Web traffic at least appears to be routing through the OpenVPN server. However, on the OpenVPN server I am receiving the following errors in syslog:
24.212.211.xxx is my public IP address that my Asus N66U router is getting.
10.200.0.0 is the subnet openvpn server assigns connecting clients
192.168.32.0 is my home network subnet (the network hosted by the Asus N66u router)
Feb 17 23:44:30 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: bad source address from client [24.212.211.xxx], packet dropped
I would have thought that the source on the packets going through the VPN would be Masqueraded using the VPN IP address instead?
Setup:
Local router: /tmp/etc/openvpn/client1/client1.ovpn
Code:
# Automatically generated configuration
daemon
client
dev tun11
proto udp
remote hiro.dotsbox.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo yes
redirect-gateway def1
verb 3
script-security 2
up updown.sh
down updown.sh
ca ca.crt
cert client.crt
key client.key
status-version 2
status status
# Custom Configuration
Server config:
Code:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.200.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 4.2.2.1"
duplicate-cn
keepalive 10 30
client-config-dir ccd
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 4
push "explicit-exit-notify 3"
Connection syslog:
Code:
Feb 17 23:34:18 hiro openvpn[15864]: UDPv4 link local (bound): [undef]:1194
Feb 17 23:34:18 hiro openvpn[15864]: UDPv4 link remote: [undef]
Feb 17 23:34:18 hiro openvpn[15864]: MULTI: multi_init called, r=256 v=256
Feb 17 23:34:18 hiro openvpn[15864]: IFCONFIG POOL: base=10.200.0.4 size=62
Feb 17 23:34:18 hiro openvpn[15864]: IFCONFIG POOL LIST
Feb 17 23:34:18 hiro openvpn[15864]: Initialization Sequence Completed
Feb 17 23:34:30 hiro openvpn[15864]: MULTI: multi_create_instance called
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Re-using SSL/TLS context
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 LZO compression initialized
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Local Options hash (VER=V4): '530fdded'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Expected Remote Options hash (VER=V4): '41690919'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 TLS: Initial packet from 24.212.211.xxx:48443, sid=6b99f477 19fe2ae6
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 VERIFY OK: depth=1, /C=CA/ST=ON/L=Toronto/O=./OU=VPN/CN=hiro.dotsbox.com/name=VPN/emailAddress=admin@dotsbox.com
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 VERIFY OK: depth=0, /C=CA/ST=ON/L=Toronto/O=./OU=VPN/CN=client1/name=VPN/emailAddress=admin@dotsbox.com
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 NOTE: Options consistency check may be skewed by version differences
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'version' is used inconsistently, local='version V4', remote='version V0 UNDEF'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'dev-type' is present in local config but missing in remote config, local='dev-type tun'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'link-mtu' is present in local config but missing in remote config, local='link-mtu 1542'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'tun-mtu' is present in local config but missing in remote config, local='tun-mtu 1500'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'proto' is present in local config but missing in remote config, local='proto UDPv4'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'cipher' is present in local config but missing in remote config, local='cipher BF-CBC'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'auth' is present in local config but missing in remote config, local='auth SHA1'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'keysize' is present in local config but missing in remote config, local='keysize 128'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'key-method' is present in local config but missing in remote config, local='key-method 2'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 WARNING: 'tls-client' is present in local config but missing in remote config, local='tls-client'
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Feb 17 23:34:30 hiro openvpn[15864]: 24.212.211.xxx:48443 [client1] Peer Connection Initiated with 24.212.211.xxx:48443
Feb 17 23:34:30 hiro openvpn[15864]: client1/24.212.211.xxx:48443 OPTIONS IMPORT: reading client specific options from: ccd/client1
Feb 17 23:34:30 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: Learn: 10.200.0.6 -> client1/24.212.211.xxx:48443
Feb 17 23:34:32 hiro openvpn[15864]: client1/24.212.211.xxx:48443 PUSH: Received control message: 'PUSH_REQUEST'
Feb 17 23:34:32 hiro openvpn[15864]: client1/24.212.211.xxx:48443 SENT CONTROL [client1]: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 8.8.8.8,dhcp-option DNS 4.2.2.1,explicit-exit-notify 3,route 10.200.0.0 255.255.255.0,topology net30,ping 10,ping-restart 30,ifconfig 10.200.0.6 10.200.0.5' (status=1)
[B]Feb 17 23:34:33 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: bad source address from client [24.212.211.xxx], packet dropped
Feb 17 23:34:33 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: bad source address from client [24.212.211.xxx], packet dropped
Feb 17 23:34:35 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: bad source address from client [24.212.211.xxx], packet dropped
Feb 17 23:34:37 hiro openvpn[15864]: client1/24.212.211.xxx:48443 MULTI: bad source address from client [24.212.211.xxx], packet dropped[/B]
...
What's weird is the it seems like it doesn't know where to route 24.212.211.xxx even though that's the connecting machine. I'm guessing that the source of these packets should be being rewritten to 10.200.0.2 somewhere? But not sure what I could be missing.
route
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.200.0.2 * 255.255.255.255 UH 0 0 0 tun0
localserversubnet * 255.255.255.240 U 0 0 0 eth0
10.200.0.0 10.200.0.2 255.255.255.0 UG 0 0 0 tun0
link-local * 255.255.0.0 U 1002 0 0 eth0
default hostgatewayname 0.0.0.0 UG 0 0 0 eth0
iptables
Code:
iptables -t nat -A POSTROUTING -s 10.200.0.0/24 -o eth0 -j MASQUERADE
iptables -A FORWARD -i tun0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT
I have a ccd file setup on the server. 192.168.32.0 is local subnet on the Asus router. I can ping clients from the server no issue. Ie. ping 192.168.32.10, a device on my home network succeeds from the server.
ccd file:
Code:
iroute 192.168.32.0 255.255.255.0
Any ideas how I can get ride of these errors? There seems to be some lag in certain applications (xbox live login takes much longer). I can browse through the VPN just fine and it is being routed through the vpn as http://www.whatismyip.com/ shows the server IP address instead of the asus router public IP.
Cheers,
Chris
Last edited: