multiple external interfaces
what i am currently trying to do is have my router masquerade multiple external interfaces to multiple internal ethernets.
I have two ppp connections: one over ethernet (dsl), and the other over serial (pots line dialup).
the dsl line is basically for my servers, it looks like this
internet--dsl-->ppp0(eth0)-->router-->eth1-->server switch-->computers
this ethernet works fine, and all iptables rules written for it work fine. (filtering and NATing) new or established packets are taken in, then forwarded along eth1 to the corresponding class c ip on the server network.
however, i would like to run my client/workstation's internet connection from the same router, but using different external interface and internal ethernet. for example, i would like the pots dialup line interface masqueraded to eth2, so that all computers connected to eth2 use the ip address of the ppp device connected to dialup.
here is how i vision it:
internet--dial_up-->ppp1(/dev/ttyS3)-->router-->eth2-->crossover_cable-->client
could anyone help me in doing so? is it just a matter of some additional iptables entries, or does this run deeper? please help, and cc reply directly to [email protected]
Quoted 9 lines · James Stickland
however, i would like to run my client/workstation's internet connection from the same router, but using different external interface and internal ethernet. for example, i would like the pots dialup line interface masqueraded to eth2, so that all computers connected to eth2 use the ip address of the ppp device connected to dialup.
here is how i vision it:
internet--dial_up-->ppp1(/dev/ttyS3)-->router-->eth2-->crossover_cable-->client
could anyone help me in doing so? is it just a matter of some additional iptables entries, or does this run deeper? please help, and cc reply directly to [email protected] <mailto:[email protected]>
Netfilter cannot change how packages are routed. For this you need the iproute2 package. See "Linux Advanced Routing & Traffic Control"[1] for more information. You may need to use netfilter to mark packages but this is all explained on [1].
[1] http://lartc.org
Regards
Anders Fugmann
--
Author of FIAIF
FIAIF is an intelligent firewall.
http://fiaif.fugmann.dhs.org