All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Brenton <cbrenton@chrisbrenton.org>
To: netfilter <netfilter@lists.netfilter.org>
Subject: Re: Is this firewall good enough?
Date: Wed, 09 Jun 2004 09:47:26 -0400	[thread overview]
Message-ID: <1086788846.2117.24.camel@grendel> (raw)
In-Reply-To: <20040609073259.90131.qmail@web14713.mail.yahoo.com>

On Wed, 2004-06-09 at 03:32, Sagara Wijetunga wrote:
>
> Here I have almost no choice, just have budget for one
> server :(

That's what I figured. Thus the info I included at the end of my post. 

> 
> > 17. /sbin/iptables -P OUTPUT ACCEPT
> >  
> Could you elaborate this a bit? What are the possible
> outbound transports and what are the possible
> solutions? 

This rule permits any outbound session establishment. This means if an
attacker can exploit one of your exposed services they can use anything
they want (HTTP, FTP, TFTP, etc. etc.) as an outbound session to
transfer a toolkit/rootkit. 

A better solution may be to only permit the types of outbound access
that you actually need to support (outbound DNS, SMTP, etc.).

> Our intension to host the server in a data center. Our
> server is not required to act as a client other than
> receiving mail from other STMP servers. We do not even
> offer recursive DNS. Is the SMTP, the client service
> that you refer?

By "client services" I was referring to the rule above that permits all
outbound traffic. Sorry I was not clear. Typically with a server you
only permit the types of outbound access that you know you will need to
support. I was assuming that the box was going to act as someone's
desktop because of the "permit anything outbound" rule.

> Could you kindly elaborate payload based attacks? Is
> it the packet rate per second? And what are the
> possible solutions for payload based attacks?

iptables controls traffic at the header level (IP address, port numbers,
transport, etc.). So while you can use iptables to ensure that only
TCP/80 traffic reaches your Web server, this does not protect you
against someone launching an HTTP based attack through port TCP/80. Sure
you can use "--string" to match on payload, but unless you define every
possible attack pattern and ensure that people never fragment their data
stream its not going to be effective.

To protect against payload based attacks you need to use a proxy. Squid
is an excellent example of software you can run to help protect a Web
server from payload based attacks (especially if run Jean on top of
Squid).

Of course the problem is you only have one box to work with so trying to
proxy every service is not going to happen. This is one of the risks you
are going to have to live with because of the design. :(

> > Some other things you could do to mitigate this
> > risk:
> > Setup an automatic patching system
> > Setup Tripwire or Aide to check system integrity
> > Setup another system to collect the logs off of this
> > system 
> > 	Setup Swatch or a similar tool to check these logs
> > Setup an IDS
> > 
> Could you point me to learn more into above setup
> subjects?

Some additional reading you might find helpful:
http://www.novell.com/products/desktop/update.html
http://sourceforge.net/projects/aide
http://www.loganalysis.org/
http://www.snort.org/

HTH,
Chris




      reply	other threads:[~2004-06-09 13:47 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-08  9:14 Is this firewall good enough? Sagara Wijetunga
2004-06-08  9:42 ` Feizhou
2004-06-08  9:57   ` Antony Stone
2004-06-08 15:03     ` Feizhou
2004-06-08 15:23       ` Antony Stone
2004-06-08 20:11         ` Feizhou
2004-06-09  9:48           ` Antony Stone
2004-06-09 10:03             ` Feizhou
2004-06-08 16:17       ` David Cannings
2004-06-08 20:14         ` Feizhou
2004-06-09  9:28           ` Jozsef Kadlecsik
2004-06-09  9:57             ` Feizhou
2004-06-09 11:05               ` Jozsef Kadlecsik
2004-06-09 13:18                 ` Feizhou
2004-06-09 13:23                 ` Feizhou
2004-06-09  8:36       ` Sagara Wijetunga
2004-06-08  9:44 ` Rob Sterenborg
2004-06-09  8:14   ` Sagara Wijetunga
2004-06-09  9:56     ` Rob Sterenborg
2004-06-09 15:12     ` Aleksandar Milivojevic
2004-06-09 15:15       ` Aleksandar Milivojevic
2004-06-11 14:24         ` Sagara Wijetunga
2004-06-08  9:55 ` Antony Stone
2004-06-08 12:38 ` Chris Brenton
2004-06-09  7:32   ` Sagara Wijetunga
2004-06-09 13:47     ` Chris Brenton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1086788846.2117.24.camel@grendel \
    --to=cbrenton@chrisbrenton.org \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.