I provided what I thought is needed.
I can't connect to any websites, can't even ping Google when I am connected to the vpn.
Tun/TAP is installed correctly also
Alright, I did a speed test on my vps.
Code: Select all
[root@matrix ~]# wget cachefly.cachefly.net/100mb.test
--2011-10-31 01:47:20-- http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net... 205.234.175.175
Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: `100mb.test'
100%[======================================>] 104,857,600 24.1M/s in 4.2s
2011-10-31 01:47:25 (23.6 MB/s) - `100mb.test' saved [104857600/104857600]
Code: Select all
Sun Oct 30 17:48:23 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Sun Oct 30 17:48:27 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sun Oct 30 17:48:27 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sun Oct 30 17:48:27 2011 LZO compression initialized
Sun Oct 30 17:48:27 2011 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sun Oct 30 17:48:27 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sun Oct 30 17:48:27 2011 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Sun Oct 30 17:48:27 2011 Local Options hash (VER=V4): 'd3a7571a'
Sun Oct 30 17:48:27 2011 Expected Remote Options hash (VER=V4): '5b1533a2'
Sun Oct 30 17:48:27 2011 UDPv4 link local: [undef]
Sun Oct 30 17:48:27 2011 UDPv4 link remote: 184.*********/censored:1194
Sun Oct 30 17:48:27 2011 TLS: Initial packet from 184.*********/censored:1194, sid=028d101e c0c500a1
Sun Oct 30 17:48:27 2011 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Oct 30 17:48:27 2011 VERIFY OK: depth=1, ********************************************************/censored
Sun Oct 30 17:48:27 2011 VERIFY OK: depth=0, ********************************************************/censored
Sun Oct 30 17:48:28 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Oct 30 17:48:28 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Oct 30 17:48:28 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Oct 30 17:48:28 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Oct 30 17:48:28 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sun Oct 30 17:48:28 2011 [private.me] Peer Connection Initiated with 184.*********/censored:1194
Sun Oct 30 17:48:30 2011 SENT CONTROL [private.me]: 'PUSH_REQUEST' (status=1)
Sun Oct 30 17:48:30 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 208.67.222.222,dhcp-option DNS 4.2.2.1,route 10.8.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.8.0.6 10.8.0.5'
Sun Oct 30 17:48:30 2011 OPTIONS IMPORT: timers and/or timeouts modified
Sun Oct 30 17:48:30 2011 OPTIONS IMPORT: --ifconfig/up options modified
Sun Oct 30 17:48:30 2011 OPTIONS IMPORT: route options modified
Sun Oct 30 17:48:30 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Oct 30 17:48:30 2011 ROUTE default_gateway=192.168.2.1
Sun Oct 30 17:48:30 2011 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{2F0E2227-360F-4F19-9174-42FA7D988CDF}.tap
Sun Oct 30 17:48:30 2011 TAP-Win32 Driver Version 9.8
Sun Oct 30 17:48:30 2011 TAP-Win32 MTU=1500
Sun Oct 30 17:48:30 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {2F0E2227-360F-4F19-9174-42FA7D988CDF} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Sun Oct 30 17:48:30 2011 Successful ARP Flush on interface [14] {2F0E2227-360F-4F19-9174-42FA7D988CDF}
Sun Oct 30 17:48:35 2011 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Sun Oct 30 17:48:35 2011 C:\WINDOWS\system32\route.exe ADD 184.*********/censored MASK 255.255.255.255 192.168.2.1
Sun Oct 30 17:48:35 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Sun Oct 30 17:48:35 2011 Route addition via IPAPI succeeded [adaptive]
Sun Oct 30 17:48:35 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Sun Oct 30 17:48:35 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Oct 30 17:48:35 2011 Route addition via IPAPI succeeded [adaptive]
Sun Oct 30 17:48:35 2011 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Sun Oct 30 17:48:35 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Oct 30 17:48:35 2011 Route addition via IPAPI succeeded [adaptive]
Sun Oct 30 17:48:35 2011 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Sun Oct 30 17:48:35 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sun Oct 30 17:48:35 2011 Route addition via IPAPI succeeded [adaptive]
Sun Oct 30 17:48:35 2011 Initialization Sequence Completed
Code: Select all
local 184.*********/censored #- change it with your server ip address
port 1194 #- change the port you want
proto udp #- protocol can be tcp or udp
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/private.crt
key /etc/openvpn/keys/private.key
dh /etc/openvpn/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
Client config
Code: Select all
client
dev tun
proto udp
remote 184.*********/censored 1194 #- your OPENVPN server ip and port
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