Re: IP Alias with iptables

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

 



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@xxxxxxxxxxxx>
To: <netfilter@xxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx>
> > To: <netfilter@xxxxxxxxxxxxxxxxxxx>
> > 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
> > >
> > >
> > >
>
>
>



[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