Re: prevent respond to port scanner

From:
Date: 08/27/02


Date: Tue, 27 Aug 2002 08:53:07 GMT

I cannot believe I just posted several times with the same typo

type 5 should be type 3

After a long battle with technology, "Tim Haynes" an earthling wrote:

> TheMartian <themartian@phreaker.net> writes:
>
>>> That's certainly different - I've not seen that sort of thing here.
>>
>> Thats only one of the odd ones, the more common ones are, the ping of
>> death, DNS flood, SYN flood, and ARP attacks (interesting in a routed
>> environment!).
>
> Hmmmm. Strange. I don't get anything that bad on the colo swerver here,
> just the normal multiplicity of DNS and NNTP and other proxy scans,
> really. :)
>
>>>> Drop all ICMP except 5
>>>
>>> Wibble? I'd say that was a silly thing to do myself, unless you then
>>> have some `allow continuations & related packets' rule.
>>
>> I get asked this one all the time, this old article covers that one,
>> fairly well.
>>
>> http://www.networkmagazine.com/article/NMG20000829S0003
>
> The first page is fair enough and says nothing to support your approach
> and everything to support mine - filter your ICMP *properly*. If you
> know your network then you can say where all the various forms of ICMP
> should or shouldn't be seen (why should any packets come past a router
> to scan the internal network?), and can rate-limit things like
> parameter-problem etc.
>
>> Not being convinced, I did extensive testing a few years back when I
>> started blocking all but type 5, and found no problems if I was not
>> runing any sort of server.
>
> Now there's a big `if'... Don't you find lack of 3/4 buggers-up large
> downloads, as well?

I know, brain now fixed, thing type 3 allowed nothing else allowed.

>
>>>> Drop all private subnets
>>>> Drop all source routed
>>>
>>> Those two are an optional extra, depending on how often you get hit
>>> with them - otherwise I'd let them fall through to a catch-all rule or
>>> sysctls for source-routed packets.
>>
>> Here I found these to be one most important rules. I get thousends of
>> log enteries daily from 192.168.x.x and 10.x.x.x, my idiot ISP uses
>> 10.x.x.x for there internal mess, but I see no reason why they or
>> anyone else should try and connect to me on these address.
>
> These things are supposed to be restricted to "within the enterprise".
> As far as I'm concerned I'm not *in* my ISP's "enterprise" anyway, so I
> shouldn't be seeing this crap. Fortunately I don't :)

According my ISP, they own me, and I have agreed to it.

To me, they try and connect to me, is attempted hacking or at the very
least an attack. And they will get hammered big time.

I can live with the usual open mail relay checks etc, but nothing more.

The scan the whole network twice a day.

>
> [snip]
>>> Again, I'd only push these to the top of the firewall rule-set if they
>>> needed handling more quickly than legitimate traffic; otherwise, let
>>> them fall foul of the great `catch-all' at the bottom.
>>
>> They do. The ordering of the rules is based on the most comon attack
>> types. Which these days is excessive.
>
> Well that `profiled' approach is about the best idea IMO.
>
>> I run no servers at all, so droping SYN is not an issue, same with the
>> ICMP.
>
> I'd just let stateful handling deal with it unless you want to log
> things as "christmas-tree" specifically, myself.

The router I use at home does not give many options. So I gave up and
wrote my own filters.

>
>> There was me thinking the RST/SYN stuff was a new one :-)
>
> Doesn't surprise me. I've had SYN+FIN scans for ages, and also some
> strange RSTs that were either reverse-scans or back-scatter.

Its the ever worsening arms race, firewall security vs low life.

>>> The worst thing on my cable connection is the ISP itself scanning for
>>> open relays, proxies and news servers... I decided that merited
>>> special handling of the `icmp admin-prohib' variety ;)
>>
>> Sounds like your ISP is like mine, totally clueless. Here they let you
>> run servers but screw you with data charges. There is no unmetered
>> broadband here, they honor you with 3GB/Month, then hit you with
>> AUD$0.18/MB after that.
>
> Erk. It's unmetered here AFAIK but no servers. Well, they don't complain
> as long as it's nothing serious, anyway :)

You have good internet, and we have untimed local phone calls.

Give me good internet any time..

>> I take it you are in the US?
>
> Good heavens no!

That makes two of us, releived. I ran away from the UK a number of years
back :-)

> ~Tim
 

-- 
www.ozetechnology.com
AIM:OrigMartian
PGP key: www.ozetechnology.com/downloads/watsondk.pgp
Fingerprint: 57C83166BDC89F743D6760A32FA90C63FF2CA8C2
100% Microsoft Free. Unleash the power of the Penguin



Relevant Pages

  • Re: VPN equals slow network folder access
    ... primary and secondary WINS servers are the same as the DNS servers. ... At home the VPN has a fixed 10.0.xx.xx address. ... Pressing F5 in My Network Places ... Likewise Internet Explorer ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Fine for 3 years - then Internal Network unavailable
    ... Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net ... I have two windows 2k servers running IIS and two windows 2k servers running ... All servers have dual network cards. ... ensure that the database servers cannot be seen from the internet and also ...
    (microsoft.public.win2000.networking)
  • Re: Can not see my own websites after setting up routing
    ... Now I have to setup two servers as my external DNS servers (ns1.thenoc.us ... Networking, Internet, Routing, VPN Troubleshooting on ... This issues seems to only happen on my internal network. ...
    (microsoft.public.win2000.ras_routing)
  • Re: Windows client - internet connection sharing
    ... >> ADSL line to provide internet access via LAN to a ... > This is all about how you interface your FreeBSD ... > servers and so forth. ... This enables you to set up a 'DMZ' network, ...
    (freebsd-questions)
  • Re: Windows client - internet connection sharing
    ... or USB port on your FreeBSD box. ... This enables you to set up a 'DMZ' network, ... instance have several servers visible on the Internet. ...
    (freebsd-questions)