Scott,
> I'm stuggling to find a way to host both 1.2.3.4 and 1.2.3.5 on eth0,
> and to direct .4 traffic to eth1 and .5 traffic to eth2. I think I know
> what to configure in shorewall, but I'm not sure where to configure the
> second address for eth0 in /etc/network/interfaces (if at all). Please
> enlighten me.
You add an IP addr to an interface by adding an "up" statement to the eth0
definition in /etc/network/interfaces, such as:
auto eth0
iface eth0 inet static
address 1.2.3.4
masklen 29
broadcast 1.2.3.7
gateway 1.2.3.3
up ip addr add 1.2.3.5/29 dev eth0 label eth0:secondaddress
You can of course choose a different label. The label is not needed but
makes life easier.
BUT it looks like you don't need an interface with the 1.2.3.5 addr at all
Your ISP should use one of your addresses as a gateway to your subnet, i.e.
1.2.3.4. This means that the packed sent to 1.2.3.5 will also be sent to
that address. You just need to set up SNAT from eth1 to 1.2.3.4 and from
eth2 to 1.2.3.5, plus DNAT the ports you want to the specific subnets, and
your set, without assigning the 1.2.3.5 address anywhere.
Cheers
Alex
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html