From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: IP Alias with iptables
Date: Mon, 19 Apr 2004 15:53:50 +0100 [thread overview]
Message-ID: <200404191553.50340.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <EMEKLOMJOPNJPAFKHEDJGECGCDAA.rhaces_chistes@yahoo.com.mx>
On Monday 19 April 2004 4:41 pm, Rodrigo Haces wrote:
> Hi:
>
> I have only one network adapter in my Server, but i need to have 2
> different networks, 192.168.1.0 to the MAC addresses i know and 192.168.0.0
> to the MAC addresses i don't know
This sounds strange - what is your network layout, giving rise to machines
with "MAC addresses you don't know", which need you to be on a different
subnet?
> i have managed this by makin mi eth0 to
> 192.168.1.1 and an alias eth0:0 to 192.168.0.1, everythings ok, but i'm
> also sharing internet, but when i start the rule to the eth0:0 it sends me
> an error. Is there a way to use IP Aliasing with iptables?
Yes - just remember that there's only one physical interface, and it's called
eth0. Don't try to use :0 or :1 in your netfilter rules. You can always
use -s or -d to specify source & destination IP addresses if you want the
rule/s to apply only to certain packets.
> if not, is there a way to create an eth0 and eth1 witn the same adapter?
No. It's a simple (and cheap) job to add another ethernet card, though.
Regards,
Antony.
--
All matter in the Universe can be placed into one of two categories:
1. Things which need to be fixed.
2. Things which need to be fixed once you've had a few minutes to play with
them.
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-04-19 14:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-19 15:41 IP Alias with iptables Rodrigo Haces
2004-04-19 14:53 ` Antony Stone [this message]
2004-04-19 16:07 ` Rodrigo Haces
2004-04-19 15:25 ` Antony Stone
2004-04-19 16:12 ` Alistair Tonner
2004-04-19 21:31 ` Antony Stone
2004-04-20 3:08 ` Rodrigo Haces
2004-04-20 7:33 ` Antony Stone
2004-04-20 23:39 ` Rodrigo Haces
2004-04-21 7:50 ` Antony Stone
2004-04-20 18:06 ` Dick St.Peters
2004-04-20 18:27 ` Antony Stone
2004-04-19 16:55 ` Rodrigo Haces
2004-04-19 15:43 ` Cedric Blancher
2004-04-19 15:22 ` Michael Gale
[not found] <006901c4261e$01f081f0$0c00a8c0@pepelui>
2004-04-19 16:20 ` Rodrigo Haces
2004-04-19 15:28 ` Alexis
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=200404191553.50340.Antony@Soft-Solutions.co.uk \
--to=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