The pfSense Store

Author Topic: Accessing Windows shares  (Read 6086 times)

0 Members and 1 Guest are viewing this topic.

Offline peterclo

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Accessing Windows shares
« on: October 26, 2006, 04:51:26 am »
My pfsense/OpenVPN setup works fine, I can ping computers on my LAN by IP or DNS name (I push the DNS server to the client) and I can use Remote Desktop to connect to a Windows XP machine. However I can't directly access Windows shares or shares on a Linux based NAS. Using \\machine\Share or \\192.168.1.20\Share doesn't work, I get an error message saying the network path wasn't found. Shares work when you're directly on the LAN of course.

Does anybody know what's going on?

Sorry to ask here when it's not really a pfsense problem (I think) but I can't register on the OpenVPN forum for some reason.

Offline SFM

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #1 on: October 26, 2006, 09:14:05 am »
Do you have a WINS server running on your windows network?

Push the WINS server to your vpn clients.
Make sure the servers with shares have the wins server in there TCP\IP properties.

push "dhcp-option DNS 10.66.0.4"
push "dhcp-option DNS 10.66.0.5"
push "dhcp-option WINS 10.66.0.8"

SFM

Offline peterclo

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #2 on: October 26, 2006, 09:24:59 am »
Ah I see, my current VPN setup (Netgear router) doesn't need any WINS server, I take it OpenVPN does. I'll set a WINS server up then. Thanks a lot!

Offline peterclo

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #3 on: October 27, 2006, 08:26:54 am »
Ah well, adding a WINS server didn't work either :( I found something here: http://brneurosci.org/linuxsetup71.html (two thirds down, just above Part 2).

It does look like my problem though he can access a computer on the LAN by typing its IP, which I can't.

Offline SFM

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #4 on: October 27, 2006, 09:26:14 am »
Are you using UDP or TCP?

I know when I used UDP it would work from some locations but not others.
Once I changed to TCP I had no issues connecting to shares.

Are the servers you have shares on using the pfsense as the gateway?


Offline peterclo

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #5 on: October 27, 2006, 11:18:51 am »
I'm using UDP, I'll try switching to TCP.

And yes, the servers I'm trying to connect to are using pfsense as the gateway (I'm not going to fall for that one again :D).

Offline peterclo

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #6 on: October 27, 2006, 12:02:35 pm »
I tried switching to UDP but same problem. I can ping an IP, ping a DNS name, connect to a Windows XP SP2 client through Remote Desktop but not access shares using \\IP or \\DNS_Name :(

Offline SFM

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #7 on: October 27, 2006, 12:34:00 pm »
I have one more idea.

Are you connecting with windows xp service pack2?
If so you may have to disable the firewall on the ovpn device to get things to work properly.
You can leave the firewall on all other adapters just disable it on the openvpn adapter.

Xp with service pack2 and the firewall and openvpn have some issues. You can check out openvpn.org for more information.

Offline Mikhail

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #8 on: October 29, 2006, 11:04:52 am »
I have one more idea.

Are you connecting with windows xp service pack2?
If so you may have to disable the firewall on the ovpn device to get things to work properly.
You can leave the firewall on all other adapters just disable it on the openvpn adapter.

Xp with service pack2 and the firewall and openvpn have some issues. You can check out openvpn.org for more information.

You was right, thanks!

Offline peterclo

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #9 on: October 30, 2006, 10:18:17 am »
The client I am using has a ZoneAlarm firewall installed and I had defined the TAP adapter as a Secure Zone so it shouldn't be firewalled. EXCEPT IT WAS! I completely disabled the firewall and I could instantly access my shares...

Offline dairaen

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Accessing Windows shares
« Reply #10 on: November 01, 2006, 09:58:23 am »
cheers,

i will add all solutions & fallbacks to the tutorial
so we can prevent further problems like these.

will be online next week.

kind regards
dairaen