Connect to SQL Server 2005 over VPN

  • Hi All

    SQL newbie for sure.

    I have set up replication on SQL 2005 server, have successfully published and subscribed from inside the lan. When I try to connect through a VPN I cannot see the SQL Server. I have tried connect through ODBC but get the following;

    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

    I am working on a VISTA Ultimate Laptop. Firewall turned off.

    SQL Server is not on DC but on a separate machine in the domain.

    Windows authentication.

    Firewall controls the VPN user access. Can get VPN access no problem. Can ping SQL server.

    Some questions;

    Do I need to have specific ports open on the firewall to allow SQL pass through the VPN tunnel. If so what ports?

    Do I need to run RAS on the Domain Controller and enable ports using pptp?

    Thanking you in anticipation.

    Conor

  • I have had to do hosts file hacks at times where the VPN wasn't provide DNS resolution properly to be able to connect to a remote server once the VPN was active. When you ping the server, are you pinging the IP or the name?

    Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
    My Blog | Twitter | MVP Profile
    Training | Consulting | Become a SQLskills Insider
    Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]

  • When I've connected through VPN, I've had to remote-desktop to the server to get Management Studio to connect to the database.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Start by checking firewall settings on both ends. Windows firewall blocks SQL by default I believe, so you have to allow it to come through.

    Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
    My Blog | Twitter | MVP Profile
    Training | Consulting | Become a SQLskills Insider
    Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply