all groups > sql server connect > december 2003 >
You're in the

sql server connect

group:

Authentication and Firewalls


Authentication and Firewalls Christian Pedersen
12/11/2003 7:51:30 PM
sql server connect:
Hi!

I'm trying to access my SQL Server through a firewall. The SQL Server is on
the inside. I've opened up port 1433 in the firewall, so I should be able to
connect. It's SQL Server 7.0.

The problem is, that I get a timeout message, when trying to connect. I used
Network Monitor on the server, to look through network activity. SQL Server
receives the connection OK, and exchanges several packets with my client,
but starts doing strange SMB-activity, which fails. My client itself is also
behind a firewall/router.

The SQL Server setup is pretty much standard, and I'm authenticating using
internal SQL Server authentication.

The firewall is a Cisco PIX 515E.

Any hints and comments would be really helpful. Thanks.

Christian

Re: Authentication and Firewalls Christian Pedersen
12/11/2003 7:53:56 PM
Also, I'm trying to connect to the SQL Server using Enterprise Manager.

Christian

[quoted text, click to view]

Re: Authentication and Firewalls kevmc NO[at]SPAM online.microsoft.com
12/11/2003 8:12:36 PM
What I would recommend is creating a TCP alias for the Server using the
Client Network Utility. Make sure the alias name is the same name as the
remote server you're connecting to. This will force the client to connect
using TCP.

Hope this helps.

Thanks,

Kevin McDonnell
Microsoft Corporation

This posting is provided AS IS with no warranties, and confers no rights.


Re: Authentication and Firewalls Christian Pedersen
12/12/2003 11:05:07 AM
It did! At least the part of it being "the same name". At first, I tried
using the IP address, but it didn't work. There is currently no domain-name
for the SQL-server, so it couldn't be resolved. I added the name in the
Alias-list (which is the name of the SQL Server) to my hosts-file - and it
works like a charm.

Thanks,

Christian Pedersen

[quoted text, click to view]

Re: Authentication and Firewalls kevmc NO[at]SPAM online.microsoft.com
12/12/2003 7:01:52 PM
Great! Sounds like hostname resolution was the problem. Our sockets
connections rely on calls to Gethostbyname and Gethostbyaddr.

Thanks,

Kevin McDonnell
Microsoft Corporation

This posting is provided AS IS with no warranties, and confers no rights.


AddThis Social Bookmark Button