Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Andrew Beverley <andy@andybev.com>
To: Andrew Stone <andrew@stonie.net>
Cc: netfilter@vger.kernel.org
Subject: Re: NAT WAN IP to internal range?
Date: Wed, 21 Dec 2011 09:07:29 +0000	[thread overview]
Message-ID: <1324458449.4269.49.camel@steve-pc> (raw)
In-Reply-To: <CANSq30tB6vk90gORs+bcLFvF3a8iwZcw8CbUpJFZJOH2YN-SXQ@mail.gmail.com>

On Mon, 2011-12-19 at 14:20 +1100, Andrew Stone wrote:
> Hello,
> 
> I am having a bit of trouble following the documentation on assigning
> a range of NATed IPs.

Sorry, meant to reply to this earlier but forgot. The previous netfilter
message just reminded me.

> My router has a several External IP’s assigned to the WAN interface:
> 
> WANIF=`get_wanface`
> ifconfig $WANIF:1 a.b.c.241 netmask 255.255.255.248 broadcast a.b.c.247
> ifconfig $WANIF:2 a.b.c.242 netmask 255.255.255.248 broadcast a.b.c.247
> ifconfig $WANIF:3 a.b.c.243 netmask 255.255.255.248 broadcast a.b.c.247

Have you tried configuring the interface using iproute2 instead?

Something like:

ip address add a.b.c.241/29 dev $WANIF broadcast a.b.c.247

Andy



  reply	other threads:[~2011-12-21  9:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-19  3:20 NAT WAN IP to internal range? Andrew Stone
2011-12-21  9:07 ` Andrew Beverley [this message]
2011-12-29  9:42   ` Andrew Stone
2011-12-29 10:54     ` Vigneswaran R
2011-12-29 11:07       ` Vigneswaran R
2011-12-29 11:10         ` Andrew Stone
2011-12-29 11:35           ` Vigneswaran R
2011-12-29 13:38             ` Andrew Stone

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=1324458449.4269.49.camel@steve-pc \
    --to=andy@andybev.com \
    --cc=andrew@stonie.net \
    --cc=netfilter@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