Linux Netfilter discussions
 help / color / mirror / Atom feed
* hosts.deny
@ 2002-07-07 22:54 Dennis Cardinale
  2002-07-07 23:04 ` hosts.deny Antony Stone
  2002-07-08 12:07 ` hosts.deny Matthew Hellman
  0 siblings, 2 replies; 27+ messages in thread
From: Dennis Cardinale @ 2002-07-07 22:54 UTC (permalink / raw)
  To: Netfilter Mailing List

When running a netfilter firewall, is there any reason to continue using the
hosts.deny and hosts.allow files, or is this just superfluous?

Thanks,

Dennis



^ permalink raw reply	[flat|nested] 27+ messages in thread
* RE: hosts.deny
@ 2002-07-07 23:03 George Vieira
  2002-07-07 23:20 ` hosts.deny Martin Tomasek
  0 siblings, 1 reply; 27+ messages in thread
From: George Vieira @ 2002-07-07 23:03 UTC (permalink / raw)
  To: 'Dennis Cardinale', Netfilter Mailing List

Use it as a precaution.. if that HOST.DENY runs... then you have an
intrusion which you need to fix..

I do this..

vi /etc/hosts.deny
#---------------------
ALL:            ALL : spawn (/bin/hosts.deny.script %d %a %h) &
#---------------------

Every deny spawns my script, my script determines if it's a true attack and
can take counter measures like email me and then shutdown the firewall
etc.etc..

BUT YOU HAVE TO MAKE SURE IT'S AN INTRUSION!

Other ways is to run snort or portsentry and others.. I'm happy with my
script.. it's activated once only because I forgot to allow my VPN user to
get through... ;) Oops.. Blocked him for a while..

thanks,
George Vieira
Systems Manager
Citadel Computer Systems P/L
http://www.citadelcomputer.com.au



-----Original Message-----
From: Dennis Cardinale [mailto:dennis@core-enterprises.com]
Sent: Monday, 08 July 2002 8:54 AM
To: Netfilter Mailing List
Subject: hosts.deny


When running a netfilter firewall, is there any reason to continue using the
hosts.deny and hosts.allow files, or is this just superfluous?

Thanks,

Dennis



^ permalink raw reply	[flat|nested] 27+ messages in thread
* RE: hosts.deny
@ 2002-07-07 23:24 George Vieira
  2002-07-07 23:29 ` hosts.deny Antony Stone
  2002-07-07 23:33 ` hosts.deny Ed Street
  0 siblings, 2 replies; 27+ messages in thread
From: George Vieira @ 2002-07-07 23:24 UTC (permalink / raw)
  To: 'mtd@mk.cvut.cz', netfilter

I thought iptables and linux could block spoofed ips anyway.. this is a last
resort..

thanks,
George Vieira
Systems Manager
Citadel Computer Systems P/L
http://www.citadelcomputer.com.au



-----Original Message-----
From: Martin Tomasek [mailto:mtd@mk.cvut.cz]
Sent: Monday, 08 July 2002 9:20 AM
To: netfilter@lists.samba.org
Subject: Re: hosts.deny


> Every deny spawns my script, my script determines if it's a true attack
and
> can take counter measures like email me and then shutdown the firewall
> etc.etc..

=> DOS

while true;do send_data_which_will_run_your_script;done;

should run _many_ scripts, if not, it could be parallelized.

> Other ways is to run snort or portsentry and others.. I'm happy with my
> script.. it's activated once only because I forgot to allow my VPN user to
> get through... ;) Oops.. Blocked him for a while..

portsentry, which blocks ips => DOS

for a in `seq 1 1000`;do
send_data_which_will_trigger_postsentry_from_spoofed_ips;done;

where spoofed ips are google.com etc, it may include ips from your
network.

-- 
Martin Tomasek, mtd@email.cz
BOFH excuse #49:
Bogon emissions


^ permalink raw reply	[flat|nested] 27+ messages in thread
* RE: hosts.deny
@ 2002-07-07 23:36 George Vieira
  2002-07-07 23:43 ` hosts.deny Antony Stone
  0 siblings, 1 reply; 27+ messages in thread
From: George Vieira @ 2002-07-07 23:36 UTC (permalink / raw)
  To: 'Antony Stone', netfilter

spoofed as in local IP coming in from the internet..
this is what I mean..

#-- hosts.allow
ALL: 192.168.0.

#-- iptables
iptables -A INPUT -s 192.168.0.0/24 -i eth1 -j DROP  # eth1=internet

that's some attacks but doesn't stop DOS attacks which hackers end up in the
local machines IP(local access).. that's when you need other software to
protect it (ie. tripwire, etc..)

thanks,
George Vieira
Systems Manager
Citadel Computer Systems P/L
http://www.citadelcomputer.com.au



-----Original Message-----
From: Antony Stone [mailto:Antony@Soft-Solutions.co.uk]
Sent: Monday, 08 July 2002 9:29 AM
To: netfilter@lists.samba.org
Subject: Re: hosts.deny


On Monday 08 July 2002 12:24 am, George Vieira wrote:

> I thought iptables and linux could block spoofed ips anyway.. this is a
> last resort..

How do you block a spoofed IP ?   How do you know it's spoofed ?

 

Antony


^ permalink raw reply	[flat|nested] 27+ messages in thread
* RE: hosts.deny
@ 2002-07-07 23:58 George Vieira
  0 siblings, 0 replies; 27+ messages in thread
From: George Vieira @ 2002-07-07 23:58 UTC (permalink / raw)
  To: netfilter

Most of the http and sql scans are viruses I found.

in regards to sendmail, use a spam filter using sendmail 8.12 and spamcop or
something..

thanks,
George Vieira
Systems Manager
Citadel Computer Systems P/L
http://www.citadelcomputer.com.au



-----Original Message-----
From: Antony Stone [mailto:Antony@Soft-Solutions.co.uk]
Sent: Monday, 08 July 2002 9:56 AM
To: netfilter@lists.samba.org
Subject: Re: hosts.deny


On Monday 08 July 2002 12:49 am, Ed Street wrote:

> Hello,
>
> This is most commonly seen in spam mail.

I most commonly see it in port scans, and probes for http / sql holes.

Spam mail may contain misleading headers (until you get to learn where to 
stop reading the machine names, and realise that the headers have been
rigged 
from that point on), but they can't disguise the real IP address of the
relay 
machine which fed the mail into the smtp chain...

Antony.


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2002-07-08 13:09 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-07 22:54 hosts.deny Dennis Cardinale
2002-07-07 23:04 ` hosts.deny Antony Stone
2002-07-07 23:51   ` hosts.deny Jack Bowling
2002-07-07 23:59     ` hosts.deny Antony Stone
2002-07-08  1:50       ` hosts.deny Jack Bowling
2002-07-08 13:09     ` hosts.deny Ian C. Sison
2002-07-08 12:07 ` hosts.deny Matthew Hellman
  -- strict thread matches above, loose matches on Subject: below --
2002-07-07 23:03 hosts.deny George Vieira
2002-07-07 23:20 ` hosts.deny Martin Tomasek
2002-07-07 23:24 hosts.deny George Vieira
2002-07-07 23:29 ` hosts.deny Antony Stone
2002-07-07 23:33 ` hosts.deny Ed Street
2002-07-07 23:38   ` hosts.deny Antony Stone
2002-07-07 23:48     ` hosts.deny Ed Street
2002-07-07 23:57       ` hosts.deny Antony Stone
2002-07-08  0:01         ` hosts.deny Ed Street
2002-07-08  0:11           ` hosts.deny Antony Stone
2002-07-08  2:27             ` hosts.deny Ed Street
2002-07-08  2:33               ` hosts.deny Antony Stone
2002-07-08  2:35                 ` hosts.deny Ed Street
2002-07-07 23:36 hosts.deny George Vieira
2002-07-07 23:43 ` hosts.deny Antony Stone
2002-07-07 23:49   ` hosts.deny Ed Street
2002-07-07 23:55     ` hosts.deny Antony Stone
2002-07-08  0:14       ` hosts.deny Martin Tomasek
2002-07-08  0:22         ` hosts.deny Antony Stone
2002-07-07 23:58 hosts.deny George Vieira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox