.

OpenVPN on Windows

<<

venom77

User avatar

Hero Member
Hero Member

Posts: 1905

Joined: Mon Dec 11, 2006 3:23 pm

Post Wed Feb 14, 2007 6:57 pm

OpenVPN on Windows

Does anyone have any experience with OpenVPN on Windows? I've configured both server and client scripts, everything seems to talk ok, but there's no network connection. When I connect through the client, it says the connection is successful, it recieves an IP and DNS, but it is not receiving a default gateway (not sure if this is the problem or not). I've been looking all around but there doesn't seem to be much out there on this specific issue. Anyone have any ideas? Thanks.
<<

pcsneaker

Jr. Member
Jr. Member

Posts: 73

Joined: Mon Nov 07, 2005 12:23 pm

Post Thu Feb 15, 2007 7:54 am

Re: OpenVPN on Windows

Never had any problems.

Post your config if you need help.
MCSA:Security (W2k, W2k3)
MCSE:Security (W2k, W2k3)
CPTS, Network+
<<

venom77

User avatar

Hero Member
Hero Member

Posts: 1905

Joined: Mon Dec 11, 2006 3:23 pm

Post Thu Feb 15, 2007 8:39 am

Re: OpenVPN on Windows

Alright, the quick run-down is that I have two internal networks I'm wanting to allow access to, 10.1.99.0 and 199.1.99.0. The OpenVPN server is running at 10.1.99.8.


Server Config
########
port 1194
proto udp
dev tap
dev-node tap-bridge
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-128-CBC
comp-lzo
max-clients 25
persist-key
persist-tun
verb 3
status openvpn-status.log
server-bridge 10.1.99.8 255.255.255.0 10.1.99.240 10.1.99.245
push "route 199.1.99.0 255.255.255.0"
push "route 10.1.99.0 255.255.255.0"
push "dhcp-option DNS 199.1.99.66"
push "dhcp-option WINS 199.1.99.66"


Client Config
########
client
dev tap
dev-node vpn
proto udp
remote 12.191.2.235 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
cipher AES-128-CBC
comp-lzo
verb 3
<<

LSOChris

Post Thu Feb 15, 2007 9:56 am

Re: OpenVPN on Windows

i havent really played with open VPN but is this line correct?


remote 12.191.2.235 1194


you said the server is running at 10.1.99.8
<<

venom77

User avatar

Hero Member
Hero Member

Posts: 1905

Joined: Mon Dec 11, 2006 3:23 pm

Post Thu Feb 15, 2007 10:02 am

Re: OpenVPN on Windows

Yeah, that's for the client that would be coming in from the outside. I have it connecting to an external IP, 12.191.2.235, through UDP port 1194, and then that's forwarded to 10.1.99.8.
<<

pcsneaker

Jr. Member
Jr. Member

Posts: 73

Joined: Mon Nov 07, 2005 12:23 pm

Post Thu Feb 15, 2007 12:22 pm

Re: OpenVPN on Windows

It seems that you are mixing routing and bridging.

Did you create the bridge in windows ? You'll have to do that manually outside of openvpn.

Do you really want to bridge ? (it's not advisable if you're connecting via the internet, a lot of unnecessary traffic will go over the wire...)

If you decide to use routing (that's what I would do) remember that you'll have to activate routing (IP-forwarding) in windows either via MMC-SnapIn "Routing and RAS" or via setting the registry key manually.

BTW, if you don't specify "pull" in the client config no setting will be pushed from the server, so have a look at that too.
MCSA:Security (W2k, W2k3)
MCSE:Security (W2k, W2k3)
CPTS, Network+
<<

venom77

User avatar

Hero Member
Hero Member

Posts: 1905

Joined: Mon Dec 11, 2006 3:23 pm

Post Thu Feb 15, 2007 12:48 pm

Re: OpenVPN on Windows

Hmm...

Yes, I have created the bridge in Windows (on the server), as well as edited the registry key.

The problem seems to be connecting beyond the server at this point. From an outside machine, I am able to connect to the server and ping the server address, but nothing beyond that. On the server side, I am able to ping the outside computer, look at shares, etc.

I'll try adding a 'pull' command for those routes as you have suggested to see if that helps out.

Edit: tried adding the 'pull' statement, but still no luck :(
Last edited by venom77 on Thu Feb 15, 2007 2:15 pm, edited 1 time in total.
<<

venom77

User avatar

Hero Member
Hero Member

Posts: 1905

Joined: Mon Dec 11, 2006 3:23 pm

Post Thu Feb 15, 2007 2:36 pm

Re: OpenVPN on Windows

bah, restarting works wonders :P

Figured maybe I made a change somewhere to something at some point that could use a fresh start. Restarted the server and everything seems to be working fine now.

Thanks for the help and suggestions, greatly appreciate it :)
<<

pcsneaker

Jr. Member
Jr. Member

Posts: 73

Joined: Mon Nov 07, 2005 12:23 pm

Post Fri Feb 16, 2007 4:57 am

Re: OpenVPN on Windows

bah, restarting works wonders :P


M$ problem solving: Minor problems - reboot, major problems - reinstall ...
MCSA:Security (W2k, W2k3)
MCSE:Security (W2k, W2k3)
CPTS, Network+

Return to Other

Who is online

Users browsing this forum: No registered users and 0 guests

cron
.
Powered by phpBB® Forum Software © phpBB Group.
Designed by ST Software