Re: NAT WAN IP to internal range?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux