From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Jeppe_S=F8rensen?= Subject: iptables with alias? Date: Sat, 5 Oct 2002 22:37:33 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <002301c26caf$0a063210$1801a8c0@CBOOK> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01C26CBF.CC236420" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C26CBF.CC236420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello I have a little question that perhaps someone can help me with I have a interface to the inet with 4 dynamic ip addr eth0 =3D first dynamic ip addr eth0:0 =3D second dynmaic ip addr and so on I want to make 1 on 1 nat on the frist 2 aliass and the last 2 alias are = for the rest of the network 192.168.1.5 nat to eth0 192.168.1.6 nat to eth0:0 192.168.1.7-to-15 nat to eth0:1 192.168.1.16-to-30 nat to eth0:2 but iptables wan't take alias What do I do / what can I do ? I have looked in the The netfilter user mailinglist Archives and found = the following solution ip addr add w.x.y.z/bits dev eth0 label eth00 but how does I get it to work with dynamic address? The archive mail I found the solution in http://lists.netfilter.org/pipermail/netfilter/2002-June/034592.html Jeppe Sorensen Denmark ------=_NextPart_000_0020_01C26CBF.CC236420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello
I have a little question that perhaps = someone can=20 help me with
 
I have a interface to the = inet with 4 dynamic=20 ip addr
eth0 =3D first dynamic ip = addr
eth0:0 =3D second dynmaic ip = addr
and so on
 
I want to make 1 on 1 nat on the = frist 2=20 aliass and the last 2 alias are for the rest of the network
192.168.1.5 nat to eth0
192.168.1.6 nat to eth0:0
192.168.1.7-to-15 nat to = eth0:1
192.168.1.16-to-30 nat to = eth0:2
 
but iptables wan't take = alias
 
What do I do / what can I do = ?
 
I have looked in the The=20 netfilter user mailinglist Archives and found the = following=20 solution
 
ip addr add w.x.y.z/bits dev eth0 label = eth00
 
but how does I get it to work with = dynamic=20 address?
 
 
The archive mail I found = the solution=20 in
http://lists.netfilter.org/pipermail/netfilter/2002-June/034592.html=
 
 
Jeppe Sorensen
Denmark
------=_NextPart_000_0020_01C26CBF.CC236420--