All of lore.kernel.org
 help / color / mirror / Atom feed
* Netfilter applied to specific interfaces only
@ 2013-03-08 19:14 Jim Mellander
  2013-03-08 19:52 ` Jan Engelhardt
  2013-03-10 14:34 ` Humberto Jucá
  0 siblings, 2 replies; 9+ messages in thread
From: Jim Mellander @ 2013-03-08 19:14 UTC (permalink / raw)
  To: netfilter

Greetings.

In the HPC world, and in network intrusion detection, network
performance is paramount.  We've found that just having the iptables
kernel module loaded without any ruleset substantially reduces
performance at high traffic rates.  Some preliminary performance
measurements:

The total traffic (reported by the iperfs) was:

~18 Gbps with IPTables enabled - no ruleset
~24 Gbps with IPTables disabled

Disabling IPTables (and unloading the associated kernel modules)
seemed to significantly improve performance, but running with IPTables
disabled in production is undesirable.

Typically, we have interfaces that are external facing that we would
like to run IPtables on, but the internal interfaces which are just
for internal cluster communications must run as fast as possible.  A
similar issue occurs during high-speed network intrusion detection -
we want the management interface to be subject to iptables, but we
don't want the performance hit of netfilter impeding traffic at the
interfaces monitoring the network.

So, what would be desirable to see is a sysctl setting that would tell
netfilter to *completely* stay out of the way on a per-interface
basis.  Many supercomputers run linux, and it would be nice to also
run iptables, but the performance hit is unacceptable.

Thanks in advance,

Jim Mellander
NERSC Cybersecurty

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Netfilter applied to specific interfaces only
@ 2013-03-11  2:46 Neal Murphy
  2013-03-11 11:42 ` Humberto Jucá
  2013-03-15 17:36 ` Jim Mellander
  0 siblings, 2 replies; 9+ messages in thread
From: Neal Murphy @ 2013-03-11  2:46 UTC (permalink / raw)
  To: netfilter

On Sunday, March 10, 2013 10:34:36 AM Humberto Jucá wrote:
> Hi,
> 
> This is an much discussed issue in firewall forums.
> I need to study a little more about it, but my current opinion:
> 
> 1. The servers should not do "any filtering" - except in specific
> cases. They should be placed in a DMZ segment or serverfarm. However,
> the access to these segments is controlled by a firewall (clustered or
> not). So, you can focus on optimizing firewalls.

I humbly disagree. Any server exposed to the internet should be configured to 
limit inbound and outbound access to exactly that which is needed for it to 
operate. For example, an simple web server should allow only new incoming 
conns to ports HTTP and HTTPS from internet; they should block new outgoing 
conns (since a simple web server only serves data over existing conns). 
Management ports, like ssh, should be limited to the least reasonable set of 
addresses expected. Periodic audits should show if these limits have been 
altered. The server is its own first line of defense. The nearest firewall is 
the second line of defense. The perimeter firewall is the last line of 
defense.

Of course, when talking about multi-Gbps links, one needs to install hardware 
that can handle filtering that much data. If the OP has all his inter-LAN 
traffic passing through a firewall, I might suggest his firewall is under-
powered, or might suggest his network topology should be reviewed. If no 
topology changes are possible, then the only recourse is to install a firewall 
that *can* handle filtering that much data.

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

end of thread, other threads:[~2013-03-15 19:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 19:14 Netfilter applied to specific interfaces only Jim Mellander
2013-03-08 19:52 ` Jan Engelhardt
2013-03-09 22:10   ` Pablo Neira Ayuso
2013-03-11  7:55     ` Jan Engelhardt
2013-03-10 14:34 ` Humberto Jucá
  -- strict thread matches above, loose matches on Subject: below --
2013-03-11  2:46 Neal Murphy
2013-03-11 11:42 ` Humberto Jucá
2013-03-15 17:36 ` Jim Mellander
2013-03-15 19:25   ` Jozsef Kadlecsik

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.