From: "Alexis" <alexis@tpys.com.ar>
To: Rodrigo Haces <rhaces_chistes@yahoo.com.mx>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: IP Alias with iptables
Date: Mon, 19 Apr 2004 12:28:50 -0300 [thread overview]
Message-ID: <010c01c42623$04885190$0c00a8c0@pepelui> (raw)
In-Reply-To: EMEKLOMJOPNJPAFKHEDJEECICDAA.rhaces_chistes@yahoo.com.mx
in my case, i prefer to use a script made by myself and call it by a
rc.local or using a sysv script.
Im not shure if adding a new IPADDR will work, because you need iproute2 to
achieve what i told you.
Just try and let us know :)
----- Original Message -----
From: "Rodrigo Haces" <rhaces_chistes@yahoo.com.mx>
To: <netfilter@lists.netfilter.org>
Sent: Monday, April 19, 2004 1:20 PM
Subject: RE: IP Alias with iptables
>
>
> > Enviado el: Lunes, 19 de Abril de 2004 08:53 a.m.
> >
> > why not to use iproute2 adding a new ip address to the interface
> > and filter
> > with the source?
> >
> > like
> >
> > ip add add 192.168.0.1/24 dev eth0
> > ip add add 192.168.1.1/24 dev eth0
> >
> > and then apply the rules using the source address and not the
interface???
> >
> > could it help???
>
> Could work, never tryed it, but how do i set it up to work on boot? i use
> RedHat 7.3 and have a /etc/sysconfig/network-scripts/ifcfg-eth0 file that
> has the next parameters:
> DEVICE="eth0"
> IPADDR="192.168.1.1"
> NETMASK="255.255.255.0"
> NETWORK=192.168.1.0
> ONBOOT="yes"
>
> Do i just simple add another IPADDR line?
>
> Thanks
>
> Rodrigo
>
> >
> >
> > ----- Original Message -----
> > From: "Rodrigo Haces" <rhaces_chistes@yahoo.com.mx>
> > To: <netfilter@lists.netfilter.org>
> > Sent: Monday, April 19, 2004 12:41 PM
> > Subject: IP Alias with iptables
> >
> >
> > > 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 dont't know, 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? if not, is there a way
to
> > > create an eth0 and eth1 witn the same adapter?
> > >
> > > Thanks
> > >
> > > Rodrigo
> > >
> > >
> > >
>
>
>
next prev parent reply other threads:[~2004-04-19 15:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <006901c4261e$01f081f0$0c00a8c0@pepelui>
2004-04-19 16:20 ` IP Alias with iptables Rodrigo Haces
2004-04-19 15:28 ` Alexis [this message]
2004-04-19 15:41 Rodrigo Haces
2004-04-19 14:53 ` Antony Stone
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
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='010c01c42623$04885190$0c00a8c0@pepelui' \
--to=alexis@tpys.com.ar \
--cc=netfilter@lists.netfilter.org \
--cc=rhaces_chistes@yahoo.com.mx \
/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