Router
Router Address: 192.168.66.1
Starting IP Address: 192.168.66.99
IP Range: .99 - .148
Client: Windows 7
I have the latest OpenVPN GUI installed and opened it as "Run as Admin"
Server: Raspberry Pi - headless Arch Linux
Static IP: 192.168.66.98
server.conf
iptables --list;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca /etc/openvpn/ca.crt
cert /etc/openvpn/rpivpn.crt
key /etc/openvpn/rpivpn.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
;server 192.168.66.98 255.255.255.0
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge
push "route 10.8.0.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-options DNS 192.168.66.1"
;push "dhcp-option DNS 208.67.220.220"
;client-to-client
;duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 6
;mute 20
Already set it to load on reboot
already updated ip_forward to 1Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 10.8.0.0/24 10.66.4.4
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
client.opvn
This is my log when I connect to OpenVPNclient
;dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote 192.168.66.98 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
mute-replay-warnings
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\winlap.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\winlap.key"
ns-cert-type server
tls-auth "C:\\Program Files (x86)\\OpenVPN\\config\\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3
;mute 20
I can connect to OpenVPN but my public IP still shows when search Google for it - so I am just going to guess that there is something wrong.Fri Nov 30 22:24:28 2012 NOTE: --user option is not implemented on Windows
Fri Nov 30 22:24:28 2012 NOTE: --group option is not implemented on Windows
Fri Nov 30 22:24:28 2012 OpenVPN 2.1_rc22 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Nov 20 2009
Fri Nov 30 22:24:28 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Nov 30 22:24:29 2012 Control Channel Authentication: using 'C:\Program Files (x86)\OpenVPN\config\ta.key' as a OpenVPN static key file
Fri Nov 30 22:24:29 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Nov 30 22:24:29 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Nov 30 22:24:29 2012 LZO compression initialized
Fri Nov 30 22:24:29 2012 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Fri Nov 30 22:24:29 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Nov 30 22:24:29 2012 Local Options hash (VER=V4): '504e774e'
Fri Nov 30 22:24:29 2012 Expected Remote Options hash (VER=V4): '14168603'
Fri Nov 30 22:24:29 2012 Socket Buffers: R=[8192->8192] S=[8192->8192]
Fri Nov 30 22:24:29 2012 UDPv4 link local: [undef]
Fri Nov 30 22:24:29 2012 UDPv4 link remote: 192.168.66.98:1194
Fri Nov 30 22:24:29 2012 TLS: Initial packet from 192.168.66.98:1194, sid=e1ff2f76 7585c7f9
Fri Nov 30 22:24:29 2012 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/OU=changeme/CN=changeme/name=changeme/emailAddress=mail@host.domain
Fri Nov 30 22:24:29 2012 VERIFY OK: nsCertType=SERVER
Fri Nov 30 22:24:29 2012 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/OU=changeme/CN=rpivpn/name=changeme/emailAddress=mail@host.domain
Fri Nov 30 22:24:31 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Nov 30 22:24:31 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Nov 30 22:24:31 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Nov 30 22:24:31 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Nov 30 22:24:31 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Fri Nov 30 22:24:31 2012 [rpivpn] Peer Connection Initiated with 192.168.66.98:1194
Fri Nov 30 22:24:33 2012 SENT CONTROL [rpivpn]: 'PUSH_REQUEST' (status=1)
Fri Nov 30 22:24:33 2012 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.0 255.255.255.0,redirect-gateway def1 bypass-dhcp,dhcp-options DNS 192.168.66.1,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Fri Nov 30 22:24:33 2012 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:3: dhcp-options (2.1_rc22)
Fri Nov 30 22:24:33 2012 OPTIONS IMPORT: timers and/or timeouts modified
Fri Nov 30 22:24:33 2012 OPTIONS IMPORT: --ifconfig/up options modified
Fri Nov 30 22:24:33 2012 OPTIONS IMPORT: route options modified
Fri Nov 30 22:24:34 2012 ROUTE default_gateway=192.168.66.1
Fri Nov 30 22:24:34 2012 TAP-WIN32 device [Local Area Connection 3] opened: \\.\Global\{CCB3F481-CC87-4242-B9C4-CFB6CF85BC89}.tap
Fri Nov 30 22:24:34 2012 TAP-Win32 Driver Version 9.6
Fri Nov 30 22:24:34 2012 TAP-Win32 MTU=1500
Fri Nov 30 22:24:34 2012 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {CCB3F481-CC87-4242-B9C4-CFB6CF85BC89} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Fri Nov 30 22:24:34 2012 Successful ARP Flush on interface [33] {CCB3F481-CC87-4242-B9C4-CFB6CF85BC89}
Fri Nov 30 22:24:39 2012 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Fri Nov 30 22:24:39 2012 C:\WINDOWS\system32\route.exe ADD 192.168.66.98 MASK 255.255.255.255 192.168.66.1
Fri Nov 30 22:24:39 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=100 and dwForwardType=4
Fri Nov 30 22:24:39 2012 Route addition via IPAPI succeeded [adaptive]
Fri Nov 30 22:24:39 2012 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Fri Nov 30 22:24:39 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Nov 30 22:24:39 2012 Route addition via IPAPI succeeded [adaptive]
Fri Nov 30 22:24:39 2012 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Fri Nov 30 22:24:39 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Nov 30 22:24:39 2012 Route addition via IPAPI succeeded [adaptive]
Fri Nov 30 22:24:39 2012 C:\WINDOWS\system32\route.exe ADD 10.8.0.0 MASK 255.255.255.0 10.8.0.5
Fri Nov 30 22:24:39 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Nov 30 22:24:39 2012 Route addition via IPAPI succeeded [adaptive]
Fri Nov 30 22:24:39 2012 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Fri Nov 30 22:24:39 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Nov 30 22:24:39 2012 Route addition via IPAPI succeeded [adaptive]
Fri Nov 30 22:24:39 2012 Initialization Sequence Completed
There was a point where I was able to connect to OpenVPN but not successfully visit any pages.
I'm sure it's something trivial that I am overlooking, specifically with the IP addresses. Any help would be greatly appreciated.