From: Stewart Thompson <stewart.thompson@shaw.ca>
To: Antony Stone <antony@soft-solutions.co.uk>,
netfilter@lists.netfilter.org
Subject: RE: iptables with alias?
Date: Sat, 05 Oct 2002 14:52:12 -0700 [thread overview]
Message-ID: <FLEKIPPLAEDMJMOOBBDPKEHADBAA.stewart.thompson@shaw.ca> (raw)
In-Reply-To: <20021005205315.FLSK7631.mta03-svc.ntlworld.com@there>
Hi Antony:
This just a test. My posts don't seem to be showing up on the list.
Regards,
Stu........
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Antony Stone
Sent: October 5, 2002 1:53 PM
To: netfilter@lists.netfilter.org
Subject: Re: iptables with alias?
On Saturday 05 October 2002 9:37 pm, Jeppe Sørensen wrote:
> 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 = first dynamic ip addr
> eth0:0 = 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
You're right - netfilter doesn't accept : characters in interface names.
I suggest you create a script to (re)write appropriate SNAT rules, which is
called by dhcpcd, or whatever else you use to acquire your dynamic
addresses...
Antony.
--
The difference between theory and practice is that
in theory there is no difference, whereas in practice there is.
next prev parent reply other threads:[~2002-10-05 21:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-05 20:37 iptables with alias? Jeppe Sørensen
2002-10-05 20:53 ` Antony Stone
2002-10-05 21:52 ` Stewart Thompson [this message]
2002-10-05 22:03 ` Trigger firewall Script on IP Change: Stewart Thompson
2002-10-05 22:38 ` Antony Stone
2002-10-05 22:53 ` Stewart Thompson
-- strict thread matches above, loose matches on Subject: below --
2002-10-05 20:45 iptables with alias? Jeppe Sørensen
2002-10-05 20:59 ` leolistas
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=FLEKIPPLAEDMJMOOBBDPKEHADBAA.stewart.thompson@shaw.ca \
--to=stewart.thompson@shaw.ca \
--cc=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