From mboxrd@z Thu Jan 1 00:00:00 1970 From: "James Stickland" Subject: multiple external interfaces Date: Mon, 11 Jan 1999 12:13:45 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001501be3d85$bf2b8e40$0200000a@workstation> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01BE3D5B.D61262C0" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0012_01BE3D5B.D61262C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 jamesstickland@sympatico.ca ------=_NextPart_000_0012_01BE3D5B.D61262C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
what i am currently trying to do is = have my router=20 masquerade multiple external interfaces to multiple internal=20 ethernets.
 
I have two ppp connections: one over = ethernet=20 (dsl), and the other over serial (pots line dialup).
 
the dsl line is basically for my = servers, it looks=20 like this
 
internet--dsl-->ppp0(eth0)-->router-->eth1-->server = switch-->computers
 
this ethernet works fine, and all = iptables rules=20 written for it work fine. (filtering and NATing)  new or = established=20 packets are taken in, then forwarded along eth1 to the corresponding = class c ip=20 on the server network.
 
however, i would like to run my=20 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=20 interface masqueraded to eth2, so that all computers connected to eth2 = use the=20 ip address of the ppp device connected to dialup.
 
here is how i vision it:
 
internet--dial_up-->ppp1(/dev/ttyS3)-->router-->eth2--&= gt;crossover_cable-->client
 
could anyone help me in doing so?  = is it just=20 a matter of some additional iptables entries, or does this run = deeper?=20 please help, and cc reply directly to jamesstickland@sympatico.ca
 
------=_NextPart_000_0012_01BE3D5B.D61262C0--