so i did the setup and all , i am able to connect to the vpn and get a private ip assigned ,
but i am unable to get "internet access" windows shows "local area connection 3" no internet access ..
there is nothing wrong in windows side as i can use other vpn's and their internet
server:debian 6
client: windows 7 tried , tried on android phone ..
here is my server config
here is my client config
my connection log
i enabled packet forwarding
my iptables
also i asked my vps provider , they do not restrict any openvpn access or disable internet sharing ..
i have full control over my vps ..
WHAT IS WRONG ?? !!
but i am unable to get "internet access" windows shows "local area connection 3" no internet access ..
there is nothing wrong in windows side as i can use other vpn's and their internet
server:debian 6
client: windows 7 tried , tried on android phone ..
here is my server config
#local 204.xx.xx.xx
port 9201
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 172.17.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user nobody
group users
persist-key
persist-tun
status openvpn-status.log
verb 3
client-to-client
push "redirect-gateway def1"
here is my client config
client
dev tun
proto udp
remote 204.xx.xx.xx 9201
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
my connection log
Fri Oct 19 20:48:18 2012 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Fri Oct 19 20:48:18 2012 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Oct 19 20:48:18 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Oct 19 20:48:18 2012 LZO compression initialized
Fri Oct 19 20:48:18 2012 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct 19 20:48:18 2012 Socket Buffers: R=[8192->8192] S=[8192->8192]
Fri Oct 19 20:48:18 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Oct 19 20:48:18 2012 Local Options hash (VER=V4): '41690919'
Fri Oct 19 20:48:18 2012 Expected Remote Options hash (VER=V4): '530fdded'
Fri Oct 19 20:48:18 2012 UDPv4 link local: [undef]
Fri Oct 19 20:48:18 2012 UDPv4 link remote: 204.xx.xx.xx:9201
Fri Oct 19 20:48:18 2012 TLS: Initial packet from 204.xx.xx.xx:9201, sid=436087e1 e8ffa4fe
Fri Oct 19 20:48:24 2012 VERIFY OK: depth=1, /C=US/ST=CA/L=Chicago/O=ra**/CN=download9/name=rajesh/emailAddress=temp@ra**.com
Fri Oct 19 20:48:24 2012 VERIFY OK: depth=0, /C=US/ST=CA/L=Chicago/O=ra**/CN=download9/emailAddress=temp@ra**.com
Fri Oct 19 20:48:45 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Oct 19 20:48:45 2012 Data Channel Encry
pt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Oct 19 20:48:45 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Oct 19 20:48:45 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Oct 19 20:48:45 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Fri Oct 19 20:48:45 2012 [download9] Peer Connection Initiated with 204.xx.xx.xx:9201
Fri Oct 19 20:48:47 2012 SENT CONTROL [download9]: 'PUSH_REQUEST' (status=1)
Fri Oct 19 20:48:48 2012 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,route 172.17.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 172.17.0.10 172.17.0.9'
Fri Oct 19 20:48:48 2012 OPTIONS IMPORT: timers and/or timeouts modified
Fri Oct 19 20:48:48 2012 OPTIONS IMPORT: --ifconfig/up options modified
Fri Oct 19 20:48:48 2012 OPTIONS IMPORT: route options modified
Fri Oct 19 20:48:48 2012 ROUTE default_gateway=192.168.79.1
Fri Oct 19 20:48:48 2012 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{FD8865AC-049A-4225-9DA0-D0952C465557}.tap
Fri Oct 19 20:48:48 2012 TAP-Win32 Driver Version 9.9
Fri Oct 19 20:48:48 2012 TAP-Win32 MTU=1500
Fri Oct 19 20:48:48 2012 Notified TAP-Win32 driver to set a DHCP IP/netmask of 172.17.0.10/255.255.255.252 on interface {FD8865AC-049A-4225-9DA0-D0952C465557} [DHCP-serv: 172.17.0.9, lease-time: 31536000]
Fri Oct 19 20:48:48 2012 Successful ARP Flush on interface [47] {FD8865AC-049A-4225-9DA0-D0952C465557}
Fri Oct 19 20:48:53 2012 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Fri Oct 19 20:48:53 2012 C:\WINDOWS\system32\route.exe ADD 204.xx.xx.xx MASK 255.255.255.255 192.168.79.1
Fri Oct 19 20:48:53 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=25 and dwForwardType=4
Fri Oct 19 20:48:53 2012 Route addition via IPAPI succeeded [adaptive]
Fri Oct 19 20:48:53 2012 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 172.17.0.9
Fri Oct 19 20:48:53 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Oct 19 20:48:53 2012 Route addition via IPAPI succeeded [adaptive]
Fri Oct 19 20:48:53 2012 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 172.17.0.9
Fri Oct 19 20:48:53 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Oct 19 20:48:53 2012 Route addition via IPAPI succeeded [adaptive]
Fri Oct 19 20:48:53 2012 C:\WINDOWS\system32\route.exe ADD 172.17.0.0 MASK 255.255.255.0 172.17.0.9
Fri Oct 19 20:48:53 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Oct 19 20:48:53 2012 Route addition via IPAPI succeeded [adaptive]
Fri Oct 19 20:48:53 2012 Initialization Sequence Completed
NOW i disconnect cause no internet access !!
Fri Oct 19 20:50:29 2012 TCP/UDP: Closing socket
Fri Oct 19 20:50:29 2012 C:\WINDOWS\system32\route.exe DELETE 172.17.0.0 MASK 255.255.255.0 172.17.0.9
Fri Oct 19 20:50:29 2012 Route deletion via IPAPI succeeded [adaptive]
Fri Oct 19 20:50:29 2012 C:\WINDOWS\system32\route.exe DELETE 204.xx.xx.xx MASK 255.255.255.255 192.168.79.1
Fri Oct 19 20:50:29 2012 Route deletion via IPAPI succeeded [adaptive]
Fri Oct 19 20:50:29 2012 C:\WINDOWS\system32\route.exe DELETE 0.0.0.0 MASK 128.0.0.0 172.17.0.9
Fri Oct 19 20:50:29 2012 Route deletion via IPAPI succeeded [adaptive]
Fri Oct 19 20:50:29 2012 C:\WINDOWS\system32\route.exe DELETE 128.0.0.0 MASK 128.0.0.0 172.17.0.9
Fri Oct 19 20:50:29 2012 Route deletion via IPAPI succeeded [adaptive]
Fri Oct 19 20:50:29 2012 Closing TUN/TAP interface
Fri Oct 19 20:50:29 2012 SIGTERM[hard,] received, process exiting
i enabled packet forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
my iptables
iptables -A FORWARD -i tun+ -j ACCEPT
previously i tried this also
iptables -t nat -A POSTROUTING -s 172.17.0.0/24 -j SNAT --to 204.xx.xx.xx (my vps ip)
also i asked my vps provider , they do not restrict any openvpn access or disable internet sharing ..
i have full control over my vps ..
WHAT IS WRONG ?? !!