Skip to contentSkip to conversation

Upper limit of users for iptables firewall

DISCUSSION ads nat 4 participants 9 messages Oct 14, 2004 – Oct 16, 2004

lore
Share & tools
lore

ads nat

author
#0 lore raw

Hi,
My Redhat linux 9.0 gateway server is with iptables firewall. I am defining security rules based on mac address of 400 users.
My server configure is
1) Intel Pentium IV 2.4 Ghz processor.
2) 512 MB DD RAM
3) 40 GB hard disc.

Will it be able to server request of 400 users? I am doubtfull about performance of iptables firewall for this load but want to avoid commercial firewall.

Has anybody used Iptables firewall for this user
traffic or more than this.
Please guide me for same.

Thanks for support.

slow fireawll Can someone give ideaWhat

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

#1 lore raw
Quoted 13 lines · ads nat

Hi,
My Redhat linux 9.0 gateway server is with iptables firewall. I am defining security rules based on mac address of 400 users.
My server configure is
1) Intel Pentium IV 2.4 Ghz processor.
2) 512 MB DD RAM
3) 40 GB hard disc.

Will it be able to server request of 400 users? I am doubtfull about performance of iptables firewall for this load but want to avoid commercial firewall.

Quoted 8 lines

Has anybody used Iptables firewall for this user
traffic or more than this.
Please guide me for same.

Thanks for support.

slow fireawll Can someone give ideaWhat

what size pipe are you trying to firewall? while the number of users behind a firewall is relevant--the amount of bandwidth that needs to be filtered has more of an influence on the performance requirements.

1000 users behind a firewall with a T1 connection can only ever push 1.54 Mbps through the firewall--which is nothing.

100 users behind a firewall with a OC-3 connection would have a drastically greater hardware requirement.

in any case--a P4 2.4 with 512 MB of RAM is pretty healthy box. and in the grand scheme, 400 users isn't really a huge amount. i have a P3 800 MHz with 384 MB of RAM server-class machine on a 4 Mbps connections for about that many users that isn't breaking a sweat.

-j

Signature · 1 line
Jason Opperisano <[email protected]>
author
#2 lore raw
Quoted 50 lines · --- Jason Opperisano
Quoted 2 lines · ads nat

Hi,
My Redhat linux 9.0 gateway server is with

iptables

Quoted 1 line

firewall. I am defining security rules based on

mac

Quoted 8 lines

address of 400 users.
My server configure is
1) Intel Pentium IV 2.4 Ghz processor.
2) 512 MB DD RAM
3) 40 GB hard disc.

Will it be able to server request of 400 users?
I am doubtfull about performance of iptables

firewall

Quoted 1 line

for this load but want to avoid commercial

firewall.

Quoted 9 lines

Has anybody used Iptables firewall for this user
traffic or more than this.
Please guide me for same.

Thanks for support.

slow fireawll Can someone give ideaWhat

what size pipe are you trying to firewall? while the number of users
behind a firewall is relevant--the amount of bandwidth that needs to be
filtered has more of an influence on the performance requirements.

1000 users behind a firewall with a T1 connection
can only ever push
1.54 Mbps through the firewall--which is nothing.

100 users behind a firewall with a OC-3 connection would have a
drastically greater hardware requirement.

in any case--a P4 2.4 with 512 MB of RAM is pretty healthy box. and in
the grand scheme, 400 users isn't really a huge amount. i have a P3 800
MHz with 384 MB of RAM server-class machine on a 4 Mbps connections for
about that many users that isn't breaking a sweat.

Quoted 7 lines

-j

Signature · 1 line
Jason Opperisano <[email protected]>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#3 lore raw

Limiting access to some number from random users.

In reply to Jason Opperisano

Folks,
I need to know how to limit access to some number from bulk random users. Let say, i have 256 PCs connecting to Internet daily.
I want to limit my users accessing to Internet only for 100 users during peak time. But these 100users must be selected in random.

Need a fresh idea how to do that with iptables. Should i apply special patches?
Thanks ..

Regards,
Rio Martin.

#4 lore raw

Re: Limiting access to some number from random users.

Quoted 8 lines · Rio Martin.

Folks,
I need to know how to limit access to some number from bulk random users. Let say, i have 256 PCs connecting to Internet daily.
I want to limit my users accessing to Internet only for 100 users during peak time. But these 100users must be selected in random.

Need a fresh idea how to do that with iptables. Should i apply special patches?

iptables -N random
iptables -A FORWARD -j random

--- BEGIN PERL CODE TO GENERATE LIST OF 100 RANDOM IPs ---
#!/usr/bin/perl

use strict;

  my %ips = ();
  my $ip;
  my $randomIP;

  while ( scalar(keys(%ips)) < 100) {
    $randomIP = int( rand(254)) + 1;
    if ( exists($ips{$randomIP}) ) {
      next;
    } else {
      $ips{$randomIP} = $randomIP;
    }
  }
  foreach $ip (sort {$a <=> $b} keys %ips) {
    print "$ip\n";

}
--- END PERL CODE ---

iptables -F random

for i in ./random_ips.pl; do
iptables -A random -s 192.168.1.${i} -j ACCEPT
done

-j

Signature · 1 line
Jason Opperisano <[email protected]>
#5 lore raw

Re: Limiting access to some number from random users.

In reply to Rio Martin.
Quoted 6 lines · Rio Martin.

Folks,
I need to know how to limit access to some number from bulk random users. Let say, i have 256 PCs connecting to Internet daily.
I want to limit my users accessing to Internet only for 100 users during peak time. But these 100users must be selected in random.

Quoted 6 lines

Need a fresh idea how to do that with iptables. Should i apply special patches?
Thanks ..

Regards,
Rio Martin.

Maybe you can use conntrack and limit the SYN packets (NEW packets) with the limit match, this will give you some control over the number of connections that are made (not the total number but the number of connections in a given time).

But have in mind that this will not work for sessions, just for connections, that means that maybe someone it's using the www and some connections will work and some not, because a huge number of connections are made for the same page (ads, images from other sites, etc). Maybe you can use persistent connections in the browsers so the connections are not broken.

Signature · 12 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"
#6 lore raw
In reply to ads nat
Quoted 13 lines · ads nat

Hi,
My Redhat linux 9.0 gateway server is with iptables firewall. I am defining security rules based on mac address of 400 users.
My server configure is
1) Intel Pentium IV 2.4 Ghz processor.
2) 512 MB DD RAM
3) 40 GB hard disc.

Will it be able to server request of 400 users? I am doubtfull about performance of iptables firewall for this load but want to avoid commercial firewall.

Quoted 8 lines

Has anybody used Iptables firewall for this user
traffic or more than this.
Please guide me for same.

Thanks for support.

slow fireawll Can someone give ideaWhat

With that kind of machine in my opinion you shouldn't have any problems to serve 400 users, but it depends on the bandwidth they are using.

Signature · 12 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"
author
#7 lore raw

hi,
I am having 512 Mbps bandwidth. Users are mainly browsing Web and using email facility. I am using squid for cache. I have about 10 % cache so i think total upper bandwidth availability will be aroung 600 Kbps. Bandwidthwise there is no problem. My worry is if iptables processing for 400 users with various acl s should not slow down firwall processing due to hardware configuration.
Thanks for support.

Quoted 26 lines · --- Jose Maria Lopez
Quoted 2 lines · ads nat

Hi,
My Redhat linux 9.0 gateway server is with

iptables

Quoted 1 line

firewall. I am defining security rules based on

mac

Quoted 8 lines

address of 400 users.
My server configure is
1) Intel Pentium IV 2.4 Ghz processor.
2) 512 MB DD RAM
3) 40 GB hard disc.

Will it be able to server request of 400 users?
I am doubtfull about performance of iptables

firewall

Quoted 1 line

for this load but want to avoid commercial

firewall.

Quoted 8 lines

Has anybody used Iptables firewall for this user
traffic or more than this.
Please guide me for same.

Thanks for support.

Quoted 28 lines
Quoted 1 line

slow fireawll Can someone give ideaWhat

With that kind of machine in my opinion you shouldn't have
any problems to serve 400 users, but it depends on the
bandwidth they are using.

Signature · 16 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas
Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones
who are mad to live,
mad to talk, mad to be saved, desirous of everything
at the same time,
the ones who never yawn or say a commonplace thing,
but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

#8 lore raw
Quoted 10 lines · ads nat

hi,
I am having 512 Mbps bandwidth. Users are mainly browsing Web and using email facility. I am using squid for cache. I have about 10 % cache so i think total upper bandwidth availability will be aroung 600 Kbps. Bandwidthwise there is no problem. My worry is if iptables processing for 400 users with various acl s should not slow down firwall processing due to hardware configuration.
Thanks for support.

In my experience you should not have any problem to manage that number of users even if you have a huge number of rules with your machine. But you can always make some tests to see if the machine slows down, but I think it should be ok.

Signature · 12 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"