I've been trying to set up my NAS box to connect to a VPN server I have set-up with another company.
I had a load of issues getting the tun module set-up with the NAS box kernel, but that seems to be fixed now and OpenVPN is connecting successfully.
The problem is, that when OpenVPN is connected, I can no longer access the web, if I curl google.co.uk I get the following output:
Code: Select all
curl www.google.co.uk
curl: (7) couldn't connect to host
Code: Select all
Sat Feb 23 11:23:33 2013 OpenVPN 2.2.2 armv5tel-unknown-linux-gnueabi [SSL] [LZO2] [EPOLL] [eurephia] built on Nov 4 2012
Sat Feb 23 11:23:33 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Feb 23 11:23:33 2013 Control Channel Authentication: tls-auth using INLINE static key file
Sat Feb 23 11:23:33 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Feb 23 11:23:33 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Feb 23 11:23:33 2013 LZO compression initialized
Sat Feb 23 11:23:33 2013 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Feb 23 11:23:33 2013 Socket Buffers: R=[112640->131072] S=[112640->131072]
Sat Feb 23 11:23:33 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Feb 23 11:23:33 2013 Local Options hash (VER=V4): '504e774e'
Sat Feb 23 11:23:33 2013 Expected Remote Options hash (VER=V4): '14168603'
Sat Feb 23 11:23:33 2013 UDPv4 link local: [undef]
Sat Feb 23 11:23:33 2013 UDPv4 link remote: 46.246.117.4:8292
Sat Feb 23 11:23:33 2013 TLS: Initial packet from 46.246.117.4:8292, sid=db052e52 27c17ad0
Sat Feb 23 11:23:33 2013 Replay-window backtrack occurred [1]
Sat Feb 23 11:23:34 2013 VERIFY OK: depth=1, /C=../ST=../L=../O=../OU=../CN=ASCA/emailAddress=..
Sat Feb 23 11:23:34 2013 VERIFY OK: nsCertType=SERVER
Sat Feb 23 11:23:34 2013 VERIFY OK: depth=0, /C=../ST=../L=../O=../OU=../CN=server-46.246.117.4/emailAddress=..
Sat Feb 23 11:23:34 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Feb 23 11:23:34 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Feb 23 11:23:34 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Feb 23 11:23:34 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Feb 23 11:23:34 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Feb 23 11:23:34 2013 [server-46.246.117.4] Peer Connection Initiated with 46.246.117.4:8292
Sat Feb 23 11:23:36 2013 SENT CONTROL [server-46.246.117.4]: 'PUSH_REQUEST' (status=1)
Sat Feb 23 11:23:36 2013 PUSH: Received control message: 'PUSH_REPLY,sndbuf 262144,rcvbuf 262144,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 5.5.0.1,ping 10,ping-restart 90,comp-lzo no,route-gateway 5.5.0.1,topology subnet,ifconfig 5.5.5.173 255.255.240.0'
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: timers and/or timeouts modified
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: LZO parms modified
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
Sat Feb 23 11:23:36 2013 Socket Buffers: R=[131072->262142] S=[131072->262142]
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: --ifconfig/up options modified
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: route options modified
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: route-related options modified
Sat Feb 23 11:23:36 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Feb 23 11:23:36 2013 ROUTE default_gateway=192.168.1.254
Sat Feb 23 11:23:36 2013 TUN/TAP device tun0 opened
Sat Feb 23 11:23:36 2013 TUN/TAP TX queue length set to 100
Sat Feb 23 11:23:36 2013 /ffp/sbin/ifconfig tun0 5.5.5.173 netmask 255.255.240.0 mtu 1500 broadcast 5.5.15.255
Sat Feb 23 11:23:36 2013 /ffp/sbin/route add -net 46.246.117.4 netmask 255.255.255.255 gw 192.168.1.254
Sat Feb 23 11:23:36 2013 /ffp/sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 5.5.0.1
Sat Feb 23 11:23:36 2013 /ffp/sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 5.5.0.1
Sat Feb 23 11:23:36 2013 Initialization Sequence Completed
Code: Select all
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
46.246.117.4 192.168.1.254 255.255.255.255 UGH 0 0 0 egiga0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 egiga0
5.5.0.0 0.0.0.0 255.255.240.0 U 0 0 0 tun0
0.0.0.0 5.5.0.1 128.0.0.0 UG 0 0 0 tun0
128.0.0.0 5.5.0.1 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 egiga0
Code: Select all
ifconfig
egiga0 Link encap:Ethernet HWaddr FC:F5:28:30:89:EA
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1593 errors:0 dropped:0 overruns:0 frame:0
TX packets:1804 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:271779 (265.4 KiB) TX bytes:414396 (404.6 KiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1071 errors:0 dropped:0 overruns:0 frame:0
TX packets:1071 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:317100 (309.6 KiB) TX bytes:317100 (309.6 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:5.5.5.173 P-t-P:5.5.5.173 Mask:255.255.240.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)