Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Astaro Gateway Products > Network Security: Firewall, NAT, QoS, IPS and more

Welcome to the Astaro User Bulletin Board.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2004, 02:25 PM
EdS EdS is offline
Junior Member
 
Join Date: Mar 2004
Posts: 13
Default DMZ WebServer to SQL

We recently moved our websites over to a DMZ running on our Astaro v4 box. We can successfully access all the websites from both the internet and intranet. However, our webservers in the DMZ need to utilize a SQL server that's on our internal network. When the webserver attempts to connect to the sql server, we get timeout errors.

I've set two different rules in the packetfilter:

DMZ > SQL Service > SQL Server Allow
DMZ > InternalNetwork_ > All Allow

Neither one will allow the web server to login to the SQL server. Nothing shows up in the PacketFilter as being blocked when I make the SQL request. If I turn the above rules off, then the attempts are shown in the PacketFilter as being blocked.

From the SQL server itself, I can ping, tracert, and even connect to admin file shares on the web server in the DMZ, so it obviously knows how to get to the web server.
Reply With Quote
  #2 (permalink)  
Old 03-24-2004, 03:35 PM
Wizard
 
Join Date: Jul 2003
Location: U.S.
Posts: 1,265
Default Re: DMZ WebServer to SQL

What brand of SQL server?
Reply With Quote
  #3 (permalink)  
Old 03-24-2004, 03:35 PM
VelvetFog's Avatar
Wizard
 
Join Date: Dec 2003
Location: Calgary, Alberta, Canada
Posts: 1,188
Default Re: DMZ WebServer to SQL

Create a SNAT rule that makes the internal network's SQL server's relevant service port(s) visible to the web server on the DMZ net, so that it can access it. Something like this might work:

SQL_Access DMZ_Network__ -> DMZ_Interface__ / SQL None sqlserver.domain.com
Reply With Quote
  #4 (permalink)  
Old 03-24-2004, 03:48 PM
EdS EdS is offline
Junior Member
 
Join Date: Mar 2004
Posts: 13
Default Re: DMZ WebServer to SQL

It's Microsoft SQL 2000 with SP3.

I created the SNAT rule but that didn't help.
Reply With Quote
  #5 (permalink)  
Old 03-24-2004, 04:01 PM
Wizard
 
Join Date: Jul 2003
Location: U.S.
Posts: 1,265
Default Re: DMZ WebServer to SQL

What type of security are you using? Windows integrated??
Sure you're not using "named pipes", etc.?
Should be TCP-IP, 1434...

Have you tried a telnet test from the web server to see if you're hitting the SQL server (telnet server 1434); see if you get an hourglass (connection not getting through) or a blank screen (got through; waiting for binary SQL dialog).

If you change your SQL configuration, first make sure the web server can access it without the firewall barrier in place.

Windows Integrated Security needs additional ports; but you said you didn't see those getting blocked?
Reply With Quote
  #6 (permalink)  
Old 03-24-2004, 04:08 PM
EdS EdS is offline
Junior Member
 
Join Date: Mar 2004
Posts: 13
Default Re: DMZ WebServer to SQL

We're using SQL authentication, and it's TCPIP, no named pipes. Telnet to the server results in the blank screen.
Reply With Quote
  #7 (permalink)  
Old 03-24-2004, 04:11 PM
Wizard
 
Join Date: Jul 2003
Location: U.S.
Posts: 1,265
Default Re: DMZ WebServer to SQL

Anything in the Event Logs of either machines?
Make sure Security Failures get logged (security logging is not enabled by default, you know...)

Can you "ping, tracert, and even connect to admin file shares" (by name!) from the web server to the SQL box??

Gateway of the web server set to Astaro?

If the ping by name doesn't work, you will need to make a hosts/lmhosts entry...
Reply With Quote
  #8 (permalink)  
Old 03-24-2004, 04:25 PM
EdS EdS is offline
Junior Member
 
Join Date: Mar 2004
Posts: 13
Default Re: DMZ WebServer to SQL

We can ping, but not by name. Never had to do that before with our other Linux firewalls. I'm connecting to the sql server using it's ip address. I can ping and connect to admin shares via the IP address.
Reply With Quote
  #9 (permalink)  
Old 03-24-2004, 05:02 PM
EdS EdS is offline
Junior Member
 
Join Date: Mar 2004
Posts: 13
Default Re: DMZ WebServer to SQL

Problem solved. I had to set the DNS servers on the web server nics to the local dns servers of our internal network. Then I had to setup a rule allowing DNS traffic from the web nics to the dns servers.
Reply With Quote
  #10 (permalink)  
Old 03-24-2004, 05:15 PM
Wizard
 
Join Date: Jul 2003
Location: U.S.
Posts: 1,265
Default Re: DMZ WebServer to SQL

You see why I always ask these mundane questions now...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:13 AM.

 

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


These pages are specifically maintained for the discussion of firewall issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases. issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases.