Windows 2003 Server IPSEC Example for SQL
From: Stan Kasper (kasper_at_wharton.upenn.edu)
Date: 11/29/04
- Previous message: Jasper Smith: "Re: sql icon disappear from sys tray and getting SQL-DMO 80040005 erro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 29 Nov 2004 13:55:45 -0500
Greetings,
I would like to secure SQL 2000 using a combination of the builtin
firewall for Windows 2003 server and IPSEC. For the firewall I would
open up ports 1433/TCP and 1434/UDP for SQL. Then I would use
IPSEC to control access to those ports. Please comment on my IPSEC
example below and on this solution for securing SQL on W2K3.
Thanks,
Stan
REM MS SQL 2000 packet filter
REM Create IPSec policy that blocks all network traffic for SQL (1433/TCP
1434/UDP)
REM with a server exception list.
REM This policy is used in conjuction with the Windows 2003 firewall which
is configured
REM to allow network traffic through said SQL ports.
:IPSec Policy Definition
netsh ipsec static add policy name="SQLFilter" description="SQL Hardening
Policy" assign=no
:IPSec Filter List Definitions
netsh ipsec static add filterlist name="BlockedSQL" description="SQL Server
Hardening"
netsh ipsec static add filterlist name="AllowedSQL" description="SQL Server
Hardening"
:IPSec Filter Definitions
netsh ipsec static add filter filterlist="AllowedSQL" srcaddr=*client*
dstaddr=me description="SQL TCP Traffic" protocol=TCP srcport=0 dstport=1433
netsh ipsec static add filter filterlist="AllowedSQL" srcaddr=*client*
dstaddr=me description="SQL UDP Traffic" protocol=UDP srcport=0 dstport=1434
netsh ipsec static add filter filterlist="BlockedSQL" srcaddr=any dstaddr=me
description="SQL TCP Traffic" protocol=TCP srcport=0 dstport=1433
netsh ipsec static add filter filterlist="BlockedSQL" srcaddr=any dstaddr=me
description="SQL UDP Traffic" protocol=UDP
srcport=0 dstport=1434
:IPSec Rule Definitions
netsh ipsec static add rule name="SQL Allowed" policy="SQLFilter"
filterlist="AllowedSQL" kerberos=yes filteraction=Permit
netsh ipsec static add rule name="SQL Blocked" policy="SQLFilter"
filterlist="BlockedSQL" kerberos=yes filteraction=Block
- Previous message: Jasper Smith: "Re: sql icon disappear from sys tray and getting SQL-DMO 80040005 erro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|