Connect trough remote computer connection

Posted by Didac on Super User See other posts from Super User or by Didac
Published on 2012-06-07T18:47:58Z Indexed on 2012/06/10 16:42 UTC
Read the original article Hit count: 250

Filed under:
|

First, sorry for my english and my poor knowlodge of this subject.

I have a dedicated server placed in Germany (windows 2008 R2) and I live in spain. I would like to access internet from my home computer (Windows 7 Pro x64), trough my server in Germany, so I can use a German IP, what I need some times.

I have complete acces in to both computers, but I just don't know where to start. (My knwoledge is limited to software development :/ )

I'd like to know where to start, if I need to create a VPN and so..

Thanks in advance!

Update 1

I tried a lot of options of OpenVPN, but I sadly I know nothing abuot networking, so I have to accept I do not know what I'm doing :(

Here are my config files (note most of the options are from the sample config files).

server.conf

#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" 

push "redirect-gateway def1"

push "dhcp-option DNS 8.8.8.8"

#the following commands are optional
keepalive 10 120         
comp-lzo                   
persist-key               
persist-tun               
verb 5                   


#config file ends

client.conf

#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 the server's network settings:

IP address: 176.9.99.180 Subnet mask: 255.255.255.224 Default gateway: 176.9.99.161

Preferred DNS server: 127.0.0.1

© Super User or respective owner

Related posts about vpn

Related posts about windows-server-2008