I used 2 ISP , one is DSL ISP and another is WiMAX provider.
I was successfully running up my home VPN and it's working if I connect it using
my DSL connection. I used the default configuration from sample-files.
When I use the second ISP that is WiMAX, I end up connected to my VPN
but cannot surf, ping or resolve my DNS.
I will attach the log of my client when I connect using my second ISP.
Server Configuration
Code: Select all
local VPNaddress
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh512.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
plugin /usr/lib/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
client
dev tun
proto udp
remote VPNaddress 1194
resolv-retry infinite
nobind
#tun-mtu 1500
#tun-mtu-extra 32
#mssfix 1450
persist-key
persist-tun
ca ca.crt
auth-user-pass
comp-lzo
verb 3
and another weird thing is, why my TAP network had a default gateway of 10.8.0.5
as I know it should be 10.8.0.1 , I tried to ping 10.8.0.1 and I receive reply.
Is there any misconfiguration here ?
WiMAX ISP Problems..
and here the log file of the client when I connect it using my second ISP
Code: Select all
Wed Nov 09 06:27:41 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Wed Nov 09 06:27:58 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Nov 09 06:27:58 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Wed Nov 09 06:27:58 2011 LZO compression initialized
Wed Nov 09 06:27:58 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Nov 09 06:27:58 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Wed Nov 09 06:27:58 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Nov 09 06:27:58 2011 Local Options hash (VER=V4): '41690919'
Wed Nov 09 06:27:58 2011 Expected Remote Options hash (VER=V4): '530fdded'
Wed Nov 09 06:27:58 2011 UDPv4 link local: [undef]
Wed Nov 09 06:27:58 2011 UDPv4 link remote: VPNaddress:1194
Wed Nov 09 06:27:58 2011 TLS: Initial packet from VPNaddress:1194, sid=e4c78d90 4b688188
Wed Nov 09 06:27:58 2011 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Nov 09 06:27:59 2011 VERIFY OK: depth=1, /C=MY/ST=PNG/L=Georgotown/O=Rainz/CN=Rainz_CA/emailAddress=ilantuta@gmail.com
Wed Nov 09 06:27:59 2011 VERIFY OK: depth=0, /C=MY/ST=PNG/L=Georgotown/O=Rainz/CN=server/emailAddress=ilantuta@gmail.com
Wed Nov 09 06:28:00 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Nov 09 06:28:00 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Nov 09 06:28:00 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Nov 09 06:28:00 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Nov 09 06:28:00 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 512 bit RSA
Wed Nov 09 06:28:00 2011 [server] Peer Connection Initiated with VPNaddress:1194
Wed Nov 09 06:28:03 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Wed Nov 09 06:28:03 2011 PUSH: Received control message: 'PUSH_REPLY,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'
Wed Nov 09 06:28:03 2011 OPTIONS IMPORT: timers and/or timeouts modified
Wed Nov 09 06:28:03 2011 OPTIONS IMPORT: --ifconfig/up options modified
Wed Nov 09 06:28:03 2011 OPTIONS IMPORT: route options modified
Wed Nov 09 06:28:03 2011 ROUTE default_gateway=172.22.196.1
Wed Nov 09 06:28:03 2011 ROUTE: bypass_host_route[0]=172.22.196.1
Wed Nov 09 06:28:03 2011 TAP-WIN32 device [Local Area Connection 6] opened: \\.\Global\{C07FB35C-0BFE-4508-960A-F07BEF74469B}.tap
Wed Nov 09 06:28:03 2011 TAP-Win32 Driver Version 9.8
Wed Nov 09 06:28:03 2011 TAP-Win32 MTU=1500
Wed Nov 09 06:28:03 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {C07FB35C-0BFE-4508-960A-F07BEF74469B} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Wed Nov 09 06:28:03 2011 Successful ARP Flush on interface [3] {C07FB35C-0BFE-4508-960A-F07BEF74469B}
Wed Nov 09 06:28:08 2011 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Wed Nov 09 06:28:08 2011 C:\WINDOWS\system32\route.exe ADD VPNaddress MASK 255.255.255.255 172.22.196.1
Wed Nov 09 06:28:08 2011 Warning: route gateway is not reachable on any active network adapters: 172.22.196.1
Wed Nov 09 06:28:08 2011 Route addition via IPAPI failed [adaptive]
Wed Nov 09 06:28:08 2011 Route addition fallback to route.exe
The route addition failed: Either the interface index is wrong or the gateway does not lie on the same network as the interface. Check the IP Address Table for the machine.
Wed Nov 09 06:28:09 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Nov 09 06:28:09 2011 Route addition via IPAPI succeeded [adaptive]
Wed Nov 09 06:28:09 2011 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Nov 09 06:28:09 2011 Route addition via IPAPI succeeded [adaptive]
Wed Nov 09 06:28:09 2011 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Wed Nov 09 06:28:09 2011 Route addition via IPAPI succeeded [adaptive]
Wed Nov 09 06:28:09 2011 Initialization Sequence Completed
Wed Nov 09 06:29:11 2011 TCP/UDP: Closing socket
Wed Nov 09 06:29:11 2011 C:\WINDOWS\system32\route.exe DELETE 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Wed Nov 09 06:29:11 2011 Route deletion via IPAPI succeeded [adaptive]
Wed Nov 09 06:29:11 2011 C:\WINDOWS\system32\route.exe DELETE VPNaddress MASK 255.255.255.255 172.22.196.1
Wed Nov 09 06:29:11 2011 Warning: route gateway is not reachable on any active network adapters: 172.22.196.1
Wed Nov 09 06:29:11 2011 Route deletion via IPAPI failed [adaptive]
Wed Nov 09 06:29:11 2011 Route deletion fallback to route.exe
The route specified was not found.
Wed Nov 09 06:29:11 2011 C:\WINDOWS\system32\route.exe DELETE 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Nov 09 06:29:11 2011 Route deletion via IPAPI succeeded [adaptive]
Wed Nov 09 06:29:11 2011 C:\WINDOWS\system32\route.exe DELETE 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Nov 09 06:29:11 2011 Route deletion via IPAPI succeeded [adaptive]
Wed Nov 09 06:29:11 2011 Closing TUN/TAP interface
Wed Nov 09 06:29:11 2011 SIGTERM[hard,] received, process exiting
Code: Select all
C:\Documents and Settings\User>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x3 ...00 ff c0 7f b3 5c ...... TAP-Win32 Adapter V9 - Packet Scheduler Miniport
0x30002 ...00 1e 31 21 3c bd ...... Yes Go - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 1
0.0.0.0 0.0.0.0 172.22.196.1 183.78.86.217 20
10.8.0.1 255.255.255.255 10.8.0.5 10.8.0.6 1
10.8.0.4 255.255.255.252 10.8.0.6 10.8.0.6 30
10.8.0.6 255.255.255.255 127.0.0.1 127.0.0.1 30
10.255.255.255 255.255.255.255 10.8.0.6 10.8.0.6 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
128.0.0.0 128.0.0.0 10.8.0.5 10.8.0.6 1
183.78.86.217 255.255.255.255 127.0.0.1 127.0.0.1 20
183.78.255.255 255.255.255.255 183.78.86.217 183.78.86.217 20
224.0.0.0 240.0.0.0 10.8.0.6 10.8.0.6 30
224.0.0.0 240.0.0.0 183.78.86.217 183.78.86.217 20
255.255.255.255 255.255.255.255 10.8.0.6 10.8.0.6 1
255.255.255.255 255.255.255.255 183.78.86.217 183.78.86.217 1
Default Gateway: 10.8.0.5
===========================================================================
Persistent Routes:
None
Code: Select all
[root@server openvpn]# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination