Re: yet/last problem with masquerading

2002-10-13 Thread Michael Schwendt
On Sun, 13 Oct 2002 14:40:50 -0700, Jack Bowling wrote: > > > Otherwise, pppd knows only about eth0, which is the interface > > > connected > > > to the ADSL modem. pppd knows nothing about eth1, so pppd is > > > unable to make eth0 and eth1 communicate between each other. > > > > pppd doesn

Re: yet/last problem with masquerading

2002-10-13 Thread Jack Bowling
** Reply to message from Michael Schwendt <[EMAIL PROTECTED]> on Sun, 13 Oct 2002 16:21:41 +0200 > > Otherwise, pppd knows only about eth0, which is the interface > > connected > > to the ADSL modem. pppd knows nothing about eth1, so pppd is unable to > > make eth0 and eth1 communicate betwe

Re: yet/last problem with masquerading

2002-10-13 Thread Jean Francois Ortolo
Michael Schwendt wrote: On Sun, 13 Oct 2002 16:07:22 +0200 (CEST), Jean Francois Ortolo wrote: <..snip..> No, the path is created when the "default route" is created by pppd. <..snip..> Otherwise, pppd knows only about eth0, which is the interface connected to the ADSL modem. pppd

Re: yet/last problem with masquerading

2002-10-13 Thread Michael Schwendt
On Sun, 13 Oct 2002 16:07:22 +0200 (CEST), Jean Francois Ortolo wrote: > I understand well now, the path between eth0 and eth1 is being made > by the forwarding instruction in my script. No, the path is created when the "default route" is created by pppd. eth0 (your DSL NIC) is only used in

Re: yet/last problem with masquerading

2002-10-13 Thread Jean Francois Ortolo
On Sun, 13 Oct 2002, Michael Schwendt wrote: > On Sun, 13 Oct 2002 10:16:04 +0200 (CEST), Jean Francois Ortolo wrote: > > > > > I presume my script should contain these few instructions: > > > > > > > > --- Beggining of the script <..snip..> > > > > route add -net 192.168.1.0 netmask 25

Re: yet/last problem with masquerading

2002-10-13 Thread Michael Schwendt
On Sun, 13 Oct 2002 11:18:37 +0200, Michael Schwendt wrote: Erratum for Message-Id: <[EMAIL PROTECTED]> > If $IPADDR in your example is the external IP address of your > gateway (probably a dynamically assigned IP addr), I don't see how > above route makes sense. Should read: If $IPADDR in

Re: yet/last problem with masquerading

2002-10-13 Thread Michael Schwendt
On Sun, 13 Oct 2002 10:16:04 +0200 (CEST), Jean Francois Ortolo wrote: > > > I presume my script should contain these few instructions: > > > > > > --- Beggining of the script > > > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > > iptables -A FORWARD -i eth1 -j ACCEPT > > > > >

Re: yet/last problem with masquerading

2002-10-13 Thread Jean Francois Ortolo
On Sun, 13 Oct 2002, Michael Schwendt wrote: > On Sat, 12 Oct 2002 20:31:35 +0200 (CEST), Jean Francois Ortolo wrote: > > > I presume my script should contain these few instructions: > > > > --- Beggining of the script > > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > iptables

Re: yet/last problem with masquerading

2002-10-12 Thread Michael Schwendt
On Sat, 12 Oct 2002 20:31:35 +0200 (CEST), Jean Francois Ortolo wrote: > I presume my script should contain these few instructions: > > --- Beggining of the script > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > iptables -A FORWARD -i eth1 -j ACCEPT > > echo 1 > /proc/sys/net/