Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: mail server problem
Date: Mon, 10 Nov 2003 10:25:40 +0000	[thread overview]
Message-ID: <200311101025.hAAAPjj16744@agate.rockstone.co.uk> (raw)
In-Reply-To: <20031110101509.GA9937@ok.is>

On Monday 10 November 2003 10:15 am, netfilter@tommi.org wrote:

> > ip addr add dev eth0 213.25.24.3
>
> If I have a network routed to my linux box say 192.168.1.0/24, do I still
> have to add every IP on the subnet if I want to be able to use NATing for
> the entire subnet?

You need to add every IP address for which you want an interface to accept 
packets on a local subnet.   Otherwise the upstream router won't know where 
to send them becaause nothing responds to ARP requests.

> Also doesn't adding 250 IP addresses to a NIC affect performance?

I'm inclined to say "no", however someone's bound to say "it affects it by 
some miniscule amount", so I'll say "it affects the performance of the box a 
lot less than does routing the traffic you want to push through it".

If you don't like the idea of adding 250 addresses to an interface, simply 
change your network layout so that those addresses are being routed through 
the netfilter machine, rather than existing on a subnet it is directly 
connected to, then you can do the DNAT and the FORWARD without needing thr 
address attached to the interface.

Antony.

-- 

Most people have more than the average number of legs.
                                                     Please reply to the list;
                                                           please don't CC me.


  reply	other threads:[~2003-11-10 10:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10  9:48 mail server problem Roberto Rossi
2003-11-10  9:58 ` Antony Stone
2003-11-10 10:15   ` netfilter
2003-11-10 10:25     ` Antony Stone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-10 14:43 MOUDARIR Mohamed
2003-11-07 15:10 Roberto Rossi

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=200311101025.hAAAPjj16744@agate.rockstone.co.uk \
    --to=antony@soft-solutions.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox