Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Eric Leblond <eric@regit.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] iptable for multiple ip address
Date: Sat, 14 Sep 2002 12:14:18 +0000	[thread overview]
Message-ID: <marc-lartc-103200579710313@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103183780131074@msgid-missing>

Le jeu 12/09/2002 à 21:49, Jose Luis Domingo Lopez a écrit :
 
> iptables -t nat -A POSTROUTING --out-interface $WAN_IF \
>     --jump SNAT --to-source $START_PUB_IP-$END_PUB_IP
> 
> The only limitation I see with this approach is that IP addresses must
> be contiguous, but I think this is a typical scenario, because our ISP
> tend to give addresses in blocks :)

But you can put multiple --to-source so there's no limitation.

--
Eric Leblond
eric@regit.org

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2002-09-14 12:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 13:35 [LARTC] iptable for multiple ip address James Ma
2002-09-12 14:54 ` Juan Antonio Morillas Cerezo
2002-09-12 19:49 ` Jose Luis Domingo Lopez
2002-09-14 12:14 ` Eric Leblond [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=marc-lartc-103200579710313@msgid-missing \
    --to=eric@regit.org \
    --cc=lartc@vger.kernel.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