OpenVPN setup and working.... Mostly

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

OpenVPN setup and working.... Mostly

Post by cebrooks » Mon Apr 11, 2011 12:06 am

Server is 2008r2 and client is w7. Both 64bit. Also tested on xp 32bit.

Server config:

proto udp
dev tun
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt

I can ping the server 10.8.0.1 from ether test client but am not able to access a file share. I'm not pushing any routes as this server is the only resource needing accessed. Always used OpenVPN in bridged mode but am not able to do so this time. Any help would be outstanding, thanks in advance!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: OpenVPN setup and working.... Mostly

Post by maikcat » Mon Apr 11, 2011 7:52 am

hi there,

the fact that you can ping the win2008 shows
that the tunnel is up and works..

so the problem is related to SMB/CIFS service..
did you setup win2008 firewall properly?

from win7 how do you trying to access the share?

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN setup and working.... Mostly

Post by janjust » Mon Apr 11, 2011 12:06 pm

how do you wish to access a share? does

Code: Select all

start \\10.8.0.1
in a CMD window work? is the tap-win32 adapter on the VPN server firewalled or not?

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Mon Apr 11, 2011 3:15 pm

I thought I had the firewall properly configured. Pretty much have anything related to file sharing enabled for both inbound and outbound.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN setup and working.... Mostly

Post by janjust » Mon Apr 11, 2011 3:58 pm

so, did

Code: Select all

start \\10.8.0.1
work or not? if not, what kind of error are you getting?

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Mon Apr 11, 2011 4:55 pm

Sorry about that. No, it did not work, failing with "the network path was not found" error

peterlinuxgeek
OpenVpn Newbie
Posts: 6
Joined: Mon Apr 11, 2011 7:23 pm

Re: OpenVPN setup and working.... Mostly

Post by peterlinuxgeek » Mon Apr 11, 2011 8:53 pm

push a route ...

would
push "route ip.add.of.serv 255.255.255.254"

help?

Peter

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN setup and working.... Mostly

Post by janjust » Mon Apr 11, 2011 9:02 pm

Is filesharing (windows file sharing protocol) bound to the tap-win32 adapter? can you try pinging the VPN IP with a larger packet size, e.g.

Code: Select all

ping -f -l 1472 10.8.0.1

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Mon Apr 11, 2011 11:06 pm

janjust- Yes, FPS is bound to the TAP and I can ping with a 1472 byte packet.

Peter- Don't think I need to push the route because I can already ping the dest. Don't need to get to anything other then the 10.8.0.1 server. However, this being a windows environment I'm going to try it for fun!

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Mon Apr 11, 2011 11:28 pm

janjust- to rule out the firewall i turned it off and tested with the same results.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN setup and working.... Mostly

Post by janjust » Tue Apr 12, 2011 7:01 am

hmmm this sounds more and more like a windows issue, not an OpenVPN issue. Or rather, an interaction issue between windows and the tap-win32 adapter.

Try adding a route to the VPN client, e.g.

Code: Select all

route add <vpn-server-lan-ip> mask 255.255.255.0 10.8.0.5
so that you can reach the LAN address of the server itself. Then try
start \\<lan-ip>
to see if you can reach the LAN address.

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Tue Apr 12, 2011 5:25 pm

Ok, nothing is working. The one difference with this server is that it is a dedicated server in the 1 and 1 data center. I've never set one up one this environment......

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN setup and working.... Mostly

Post by janjust » Tue Apr 12, 2011 5:38 pm

hmmm try running some other application/protocol over the VPN, for example 'iperf' (http://www.filewatcher.com/m/iperf-1.7. ... 8.0.0.html) If that works as it should then the VPN is functioning as it should, it's just the integration with windows file sharing which is the pain in the butt then....

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Tue Apr 12, 2011 6:17 pm

Well this is a good one. I figured it out...... with help.

So I have never worked with a hosted server 2008 of any type. Always a customer owned server so I have never run into the ip filter in server 2008. I discovered this after discussing with 1and1 server support. I un assigned the filter as a test and bam, file share access worked. So I then set the filter to ignore the 10.8.0.1 and we now have access!

I learned a lot with this one and want to thank all, especially janjust for all his time!

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN setup and working.... Mostly

Post by janjust » Tue Apr 12, 2011 6:20 pm

no problem ; would you care to explain a bit more what this filter is? where can it be found in windows? how can it be disabled?

cebrooks
OpenVpn Newbie
Posts: 8
Joined: Sun Apr 10, 2011 11:49 pm

Re: OpenVPN setup and working.... Mostly

Post by cebrooks » Tue Apr 12, 2011 6:28 pm

Sure,

The filter is accessed through Administrative Tools>Local Security Policy

Select: IP Security Policy on Local Computer

The policy will show in right pane. Rt click to unassign.

What I did was to open the policy and edited the BLOCK ALL rule. Select the Tunnel Settings Tab and click the radio button for Tunnel End Points are Specified by These Addresses and entered the IPv4 address for the TAP adapter, 10.8.0.1.

It does take a few secs for the resolution to complete when first accessing the shares but after that it works great.

Post Reply