From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Wright Subject: Re: Multiple IP addresses Date: Sun, 26 Mar 2006 19:30:09 -0800 Message-ID: <44275C41.4070603@mailinator.com> References: <9a6de10603261753s33408f9cnb5ce6f9ae7b4f75d@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9a6de10603261753s33408f9cnb5ce6f9ae7b4f75d@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Will Twomey wrote: > I apologize if this is the wrong list, but... > > I would like to have several (3?) ip addresses on one interface (eth0, > eth0:1, etc.), Aliasing your network card isn't necessary. Just assign IP's to it. ip address add 192.168.0.1/24 dev eth0 ip address add 192.168.1.1/24 dev eth0 ip address add 192.168.2.1/24 dev eth0 > and forward each of those IP addresses to another > interface (192.168.0.1, 192.168.1.1, 192.168.2.1, etc.) I think these might work. iptables -A FORWARD -d 192.168.0.0/24 -i eth0 -o eth1 -j ACCEPT iptables -A FORWARD -d 192.168.1.0/24 -i eth0 -o eth2 -j ACCEPT iptables -A FORWARD -d 192.168.2.0/24 -i eth0 -o eth3 -j ACCEPT > Does anyone have an advice for me, or a good place to learn how to do this? > > If someone has an iptables/netfilter script that does this, I'd love > to see it. :D > > Thanks! > > -- > Will Twomey > http://UnhandledExceptions.com