Linux Netfilter discussions
 help / color / mirror / Atom feed
* PREROUTING AND SECURITY
@ 2002-06-28  8:17 Guillaume Devoyon
  2002-06-28 11:55 ` Matthew Hellman
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume Devoyon @ 2002-06-28  8:17 UTC (permalink / raw)
  To: netfilter

hello,

on the firewall at my office, i do preroutings tasks in order to forward ports.
In order to do that, i use the following rule :

/sbin/iptables -t nat -A PREROUTING -s $CLIENT_PUBLIC_IP -p tcp -i $EXTERNAL_INTERFACE\
 --dport 80 -j DNAT --to $INTERNAL_MACHINE:80

As you can see, I use the "-s" option  to allow only  one person to use my forwarding port.

Yesterday, I had an attack on the firewall .
I had this in my /var/log/messages :


Jun 27 14:44:39 cofw01 kernel: FIREWALL_80IN=eth0 OUT= MAC=00:30:48:51:08:f0:00:20:6f:11:34:7b:08:00 SRC=xxx.xxx.xxx.xxx DST=192.168.1.2 LEN=48 TOS=0x00 PREC=0x00 TTL=115 ID=47214 DF PROTO=TCP SPT=3033 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 
Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
Jun 27 14:51:49 cofw01 last message repeated 15 times
Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt, status=0x4050.
Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
Jun 27 14:51:49 cofw01 last message repeated 19 times
Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt, status=0x4050.
Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt, status=0x4050.
Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt, status=0x4050.
Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
Jun 27 14:51:49 cofw01 last message repeated 8 times
Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt, status=0x4050

so i saw that xxx.xxx.xxx.xxx had attacked my firewall.

After this i had to reboot my firewall

1) how is it possible that my firewall switched of my eth0 card ? 
   Is it because I do a log of this translation rule ? (made my system heavy if there are many connections ?)
   Is it because for others rules i do an reject instead of an drop ?

Next, I had a look at my apache server behind the firewall, and I found the following messages in my /var/log/messages

Jun 27 14:51:24 coupf01 kernel: eth0: card reports no resources.
Jun 27 14:51:24 coupf01 kernel: eth0: Too much work at interrupt, status=0x4050.


whow !!
the attack had also touched my server behind the firewall..
How is it possible ? I put an "-s" option in my prerouting..
Is it enough or should I put an drop rule for others connections? (other than my client : -s $CLIENT_PUBLIC_IP)


Guillaume Devoyon


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

* Re: PREROUTING AND SECURITY
  2002-06-28  8:17 PREROUTING AND SECURITY Guillaume Devoyon
@ 2002-06-28 11:55 ` Matthew Hellman
  2002-06-28 14:45   ` Ed Street
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Hellman @ 2002-06-28 11:55 UTC (permalink / raw)
  To: Guillaume Devoyon, netfilter

I wouldn't jump to any conclusions about an attack just yet.  If these two
machines are similarily configured (same network card, etc) , it's very
likely that this is just a hardware or driver problem. Do a search for that
error on groups.google.com and you'll see what I mean.  Goodluck,

Matt

----- Original Message -----
From: "Guillaume Devoyon" <guillaume.devoyon@integro-networks.com>
To: <netfilter@lists.samba.org>
Sent: Friday, June 28, 2002 3:17 AM
Subject: PREROUTING AND SECURITY


> hello,
>
> on the firewall at my office, i do preroutings tasks in order to forward
ports.
> In order to do that, i use the following rule :
>
> /sbin/iptables -t nat -A PREROUTING -s $CLIENT_PUBLIC_IP -p tcp -i
$EXTERNAL_INTERFACE\
>  --dport 80 -j DNAT --to $INTERNAL_MACHINE:80
>
> As you can see, I use the "-s" option  to allow only  one person to use my
forwarding port.
>
> Yesterday, I had an attack on the firewall .
> I had this in my /var/log/messages :
>
>
> Jun 27 14:44:39 cofw01 kernel: FIREWALL_80IN=eth0 OUT=
MAC=00:30:48:51:08:f0:00:20:6f:11:34:7b:08:00 SRC=xxx.xxx.xxx.xxx
DST=192.168.1.2 LEN=48 TOS=0x00 PREC=0x00 TTL=115 ID=47214 DF PROTO=TCP
SPT=3033 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 last message repeated 15 times
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 last message repeated 19 times
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 last message repeated 8 times
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050
>
> so i saw that xxx.xxx.xxx.xxx had attacked my firewall.
>
> After this i had to reboot my firewall
>
> 1) how is it possible that my firewall switched of my eth0 card ?
>    Is it because I do a log of this translation rule ? (made my system
heavy if there are many connections ?)
>    Is it because for others rules i do an reject instead of an drop ?
>
> Next, I had a look at my apache server behind the firewall, and I found
the following messages in my /var/log/messages
>
> Jun 27 14:51:24 coupf01 kernel: eth0: card reports no resources.
> Jun 27 14:51:24 coupf01 kernel: eth0: Too much work at interrupt,
status=0x4050.
>
>
> whow !!
> the attack had also touched my server behind the firewall..
> How is it possible ? I put an "-s" option in my prerouting..
> Is it enough or should I put an drop rule for others connections? (other
than my client : -s $CLIENT_PUBLIC_IP)
>
>
> Guillaume Devoyon
>




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

* RE: PREROUTING AND SECURITY
  2002-06-28 11:55 ` Matthew Hellman
@ 2002-06-28 14:45   ` Ed Street
  0 siblings, 0 replies; 3+ messages in thread
From: Ed Street @ 2002-06-28 14:45 UTC (permalink / raw)
  To: 'Matthew Hellman', 'Guillaume Devoyon', netfilter

Hello,

What type of network card are you using, what distribution of linux,
what kernel version and what is the hardware your using. If you want you
can email directly.

A few possibilities I can think is 
a) resource sharing issues
b) eepro 100 nic (but not limited to this card)
c) local network layout/setup
d) low system resources.  

" Since the interrupt handler keeps calling the Rx and Tx-done routines
while there are packets to be processed, a slower machine will have a
higher average "work event" count per interrupt handler pass.  (ie.
faster machines can do the required work before more new work arrives
and thus fall out the bottom of the IRQ handler sooner.)"

From this it would be interesting to see the cpu time during these
events.  If I recall correctly didn't earlier releases of 2.4 kernel
have issues with resource sharing and ide devices?

Hope this helps,

Ed


-----Original Message-----
From: netfilter-admin@lists.samba.org
[mailto:netfilter-admin@lists.samba.org] On Behalf Of Matthew Hellman
Sent: Friday, June 28, 2002 7:56 AM
To: Guillaume Devoyon; netfilter@lists.samba.org
Subject: Re: PREROUTING AND SECURITY

I wouldn't jump to any conclusions about an attack just yet.  If these
two
machines are similarily configured (same network card, etc) , it's very
likely that this is just a hardware or driver problem. Do a search for
that
error on groups.google.com and you'll see what I mean.  Goodluck,

Matt

----- Original Message -----
From: "Guillaume Devoyon" <guillaume.devoyon@integro-networks.com>
To: <netfilter@lists.samba.org>
Sent: Friday, June 28, 2002 3:17 AM
Subject: PREROUTING AND SECURITY


> hello,
>
> on the firewall at my office, i do preroutings tasks in order to
forward
ports.
> In order to do that, i use the following rule :
>
> /sbin/iptables -t nat -A PREROUTING -s $CLIENT_PUBLIC_IP -p tcp -i
$EXTERNAL_INTERFACE\
>  --dport 80 -j DNAT --to $INTERNAL_MACHINE:80
>
> As you can see, I use the "-s" option  to allow only  one person to
use my
forwarding port.
>
> Yesterday, I had an attack on the firewall .
> I had this in my /var/log/messages :
>
>
> Jun 27 14:44:39 cofw01 kernel: FIREWALL_80IN=eth0 OUT=
MAC=00:30:48:51:08:f0:00:20:6f:11:34:7b:08:00 SRC=xxx.xxx.xxx.xxx
DST=192.168.1.2 LEN=48 TOS=0x00 PREC=0x00 TTL=115 ID=47214 DF PROTO=TCP
SPT=3033 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 last message repeated 15 times
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 last message repeated 19 times
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050.
> Jun 27 14:51:49 cofw01 kernel: eth0: card reports no resources.
> Jun 27 14:51:49 cofw01 last message repeated 8 times
> Jun 27 14:51:49 cofw01 kernel: eth0: Too much work at interrupt,
status=0x4050
>
> so i saw that xxx.xxx.xxx.xxx had attacked my firewall.
>
> After this i had to reboot my firewall
>
> 1) how is it possible that my firewall switched of my eth0 card ?
>    Is it because I do a log of this translation rule ? (made my system
heavy if there are many connections ?)
>    Is it because for others rules i do an reject instead of an drop ?
>
> Next, I had a look at my apache server behind the firewall, and I
found
the following messages in my /var/log/messages
>
> Jun 27 14:51:24 coupf01 kernel: eth0: card reports no resources.
> Jun 27 14:51:24 coupf01 kernel: eth0: Too much work at interrupt,
status=0x4050.
>
>
> whow !!
> the attack had also touched my server behind the firewall..
> How is it possible ? I put an "-s" option in my prerouting..
> Is it enough or should I put an drop rule for others connections?
(other
than my client : -s $CLIENT_PUBLIC_IP)
>
>
> Guillaume Devoyon
>





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

end of thread, other threads:[~2002-06-28 14:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-28  8:17 PREROUTING AND SECURITY Guillaume Devoyon
2002-06-28 11:55 ` Matthew Hellman
2002-06-28 14:45   ` Ed Street

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