Koozali.org: home of the SME Server

VPN and Local DNS

Danny Wong

VPN and Local DNS
« on: January 02, 2004, 11:16:35 PM »
When my users log into SME VPN, they can not get Name Resolution for local machine names.  Is there an easy fix to point SME to use Domain Controller DNS or replicate on SME box to allow drivemaping via machine name etc when connected remotely via SME VPN?

Thanks in advance.

[%sig%]

Rob Saw

Re: VPN and Local DNS
« Reply #1 on: January 03, 2004, 05:38:05 PM »
I changed the file /etc/e-smith/templates/etc/ppp/options.pptpd/ms-wins

By replacing the lines
        "ms-wins $_WINSServer" :
        "# Network has no WINS server set";

With

        "ms-wins 10.0.0.1";

Where 10.0.0.1 is your DNS server! (A Win2K server in my case) It seemed to work - That said, I am still having fun and games with my VPN :(

[%sig%]

ryan

Re: VPN and Local DNS
« Reply #2 on: January 03, 2004, 06:13:10 PM »
Danny,

I suggest trying this on a remote client using 2k or XP:

Setup a PPTP vpn connection to SME.

Under advanced network properties for TCP/IP, set your WINS server to your MS WINS server if one is used.  Set your DNS server to your Active Directory server if you have one.  You also must set the "DNS suffix for this connection" and enter the domain for the AD domain controller.  When you connect, your client will search wins, and dns.


If you don't define WINS and or DNS on each VPN client, it will use SME for both.  This will work if your LAN clients use SME as dhcp server or each LAN client is has it's WINS server entry set to SME server IP Address.   SME DNS will not allow you to resolve LAN clients when connected by vpn..(unless you have each client entered as a host name in server manager).

Hope that helps,

Ryan