Re: IPSec Policy Doesn't Really Block

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Steven L Umbach (n9rou_at_N0sPaM-comcast.net)
Date: 08/31/04


Date: Tue, 31 Aug 2004 17:38:48 GMT

Ipsec rules can be tricky since they are not like normal firewall rules that
take priority based on their order in the list. Ipsec filters use a method
where specific filters override general filters where there is a conflict.
Instead of a permit all oubound add the exceptions to your permit filter
list which also would be more secure. For instance add entries for ports 80
and 443 TCP and 53 UDP for dns. Of course you may also want to add entries
for ftp/mail/news if needed but try the entries for internet browsing first
to see if that works. Also be sure to read the link below on using ipsec
filtering as an internet firewall and how to disable the default exemptions
with a registry entry which varies depending on the operating system. --
Steve

http://support.microsoft.com/default.aspx?scid=kb;en-us;811832

"Joseph Melika" <jmelika@hotmail.com> wrote in message
news:uAGc853jEHA.1560@TK2MSFTNGP10.phx.gbl...
> Steven,
>
> Thanks for getting back to me on this. I did as you said and basically
> blocked all IP's mirrored from Any IP to My IP. I then created a couple
of
> basic filters to allow port 80 and port 25 inbound from Any to My IP, also
> mirrored. That worked like a charm. But then I realized I could not go
> outbound, like surfing the web. So I enabled from My IP to Any IP
mirrored
> policy, any protocol, and permit. That ends up disabling the inbound
block
> filter. Once the enable outbound filter is set, I can Terminal Service
into
> the server and hit all ports on it from any public IP.
>
> Any ideas why that happens?
>
> Thanks,
> Joseph Melika
>
> "Steven L Umbach" <n9rou@n0-spam-for-me-comcast.net> wrote in message
> news:yPPYc.88360$Fg5.72942@attbi_s53...
> >I have created ipsec policies that work. I usually start with a mirrored
> >block all IP rule. The I add mirrored permit rules for the exceptions
such
> >as the lan subnet, individual IP addresses, and then the specific
> >ports/protocols/addresses. Make sure you have the source and destinations

> >correct as that can be confusing. For instance to permit port 80 tcp into
> >my computer I would create a mirrored rule for source address:any IP
> >address, destination address:my IP address, protocol TCP, source
port:any,
> >destination port:80. --- Steve
> >
> > http://www.securityfocus.com/infocus/1559 -- this may help.
> >
> >
> > "Joseph Melika" <jmelika@hotmail.com> wrote in message
> > news:uBtUfyujEHA.1404@TK2MSFTNGP09.phx.gbl...
> >>I am having an issue with IPSec. I simply have a server sitting at a
> >>co-lo. It is serving on prts 80, 443, 5274, and 6667. I need to open
> >>those ports to the public but blocking everything else. I also need to
> >>permit the server to be able to talk to its neighboring computers, as
well
> >>as some computers at a different subnet with no restrictions.
> >>
> >> Here is a list of IPSECPOL.exe commands I am using to create the
policy.
> >> Please be aware of the possible word wrap.
> >>
> >> =========
> >> ipsecpol -w REG -p "Policy" -r "Local Site" -f
> >> x.x.x.0/255.255.255.0+x.x.x.x:* -f x.x.x.x+x.x.x.0/255.255.255.0:* -n
> >> PASS
> >> ipsecpol -w REG -p "Policy" -r "Remote Sites" -f
> >> 192.215.60.0/255.255.255.0+x.x.x.x:* -f
> >> 206.16.86.0/255.255.255.240+x.x.x.x:* -f
> >> 206.16.76.32/255.255.255.240+x.x.x.x:* -f 192.215.11.11+x.x.x.x:* -f
> >> 192.215.5.16+x.x.x.x:* -n PASS
> >> ipsecpol -w REG -p "Policy" -r "Applications Ports" -f
*+x.x.x.x:5274 -f
> >> *+x.x.x.x:6667:TCP -f *+x.x.x.x:80:TCP -f *+x.x.x.x:443:TCP -n PASS
> >> ipsecpol -w REG -p "Policy" -r "Block Everything Else" -f
> >> *=x.x.x.x:*:* -n BLOCK
> >> ==========
> >>
> >> x.x.x.x stands for the server's IP address, while x.x.x.0 stands for
the
> >> 24 bit subnet it's on.
> >>
> >> Now the issue is that when I create this policy and assign it, I am
still
> >> able to connect to the server from home using Terminal Services. My
home
> >> PC is not on any of the subnets listed above. How come the IPSec
Policy
> >> doesn't work? I can do a netdiag /test:ipsec and I do see the policy
> >> applied. It just doesn't seem to be doing its job.
> >>
> >> One thing is that I did notice that the PASS and BLOCK did not actually
> >> use the existing filter action "Permit" and "Block". Each of those
> >> commands created its own filter action with the same name as the filter
> >> itself, i.e. Local Site. I even tried going to the UI and change the
> >> action to Block or Permit and restarted IPSec Policy agent, but still
> >> didn't work.
> >>
> >> Has anyone been able to get IPSec to work properly? Can someone give
me
> >> any advice on this?
> >>
> >> I appreciate it guys!
> >>
> >> Joseph Melika
> >>
> >
> >
>
>



Relevant Pages

  • Re: IPSec without encryption between intranet and standalone
    ... Are _all_ of your filters set to either permit or block actions, ... I've also unassinged the IPSec polcy and instantly the 'lag' disappears ... Microsoft MVP (Windows Server: Security) ... security associations (Kerberos and talk of shared key). ...
    (microsoft.public.win2000.security)
  • Re: IPSec Policy Doesnt Really Block
    ... Ipsec rules can be tricky since they are not like normal firewall rules that ... Ipsec filters use a method ... where specific filters override general filters where there is a conflict. ... Instead of a permit all oubound add the exceptions to your permit filter ...
    (microsoft.public.win2000.security)
  • Corrupt IPSEC service
    ... admin workstation rebooted and since then cannot use IPSEC. ... Generic MM Filters ... These Windows services are started: ... Machine Debug Manager ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Problem with IPSEC
    ... yes ipsec filters are weighted such that a specific rule overrides ... ipsec in XP like you can for Windows 2003 to see events for dropped traffic. ... Ethereal while connecting connect to a website. ... I use IPSEC to control internet access on a domain. ...
    (microsoft.public.windows.server.security)
  • RE: IPsec vs any personal software firewall
    ... This prevents the source port 88 issue. ... It is possible to bypass the filters and contact a service listening on UDP. ... Should you use it if you have a firewall running externally of the machine? ... IPSec filters are not a replacement for a firewall. ...
    (Focus-Microsoft)