Hi everyone, and excuse me for my bad english and really poor knowledge of networking.
My problem is that I have managed -after lots of suffering, and reading- to establish connection between OpenVPN client and server. Works perfect, I can see shared folders, and so. But I cannot access internet from the client because the TAP interface has not internet acccess. I've read I should do either bridging or routing, but I have no idea how to, or if it can be done with OpenVPN.
Note I have 2 additional requirements. First, i do not own the server, is a dedicated server i have rented, and even if I have full access, losing connectivity will take a day or to to reestablish. I also should not change the computers IP.
Here are the config files:
server.ovpn (Windows 2008 R2)
#server config file start
port 1194
proto udp
dev tun
server 10.0.0.0 255.255.255.224 #you may choose any subnet. 10.0.0.x is used for this example.
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.key"
dh "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"
script-security 2
push "redirect-gateway def1"
route 10.0.0.1 255.255.255.224 176.9.99.161
#route 0.0.0.0 0.0.0.0 176.9.99.161
#the following commands are optional
keepalive 1 120
comp-lzo
persist-key
persist-tun
verb 5
#config file ends
client.ovpn (Windows 7 pro)
#client config file start
client
dev tun
proto udp
remote 176.9.99.180 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client1.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client1.key"
ns-cert-type server
comp-lzo
verb 5
explicit-exit-notify 2
ping 10
ping-restart 60
route-method exe
route-delay 2
# end of client config file
And here's a screenshot of my network settings:
http://imageshack.us/photo/my-images/194/networks.png