SuSE linux 8.0 & IPMasq

George Toft plug-discuss@lists.plug.phoenix.az.us
Wed, 28 Aug 2002 19:54:28 -0400


Clayton Stapleton wrote:
> 
> On Tuesday 27 August 2002 04:44 pm, George Toft wrote:
> > Clayton Stapleton wrote:
> > > On Sunday 25 August 2002 12:00 pm, George Toft wrote:
> > > > Send  route -n   from both computers.  Send the iptable script as well.
> > > >
> > > > Regards,
> > > >
> > > > George
> > >
> > > Hi George
> > > The following is for computer A:
> > >
> > > loran:/home/clay # route -n
> > > Kernel IP routing table
> > > Destination     Gateway         Genmask         Flags Metric Ref    Use
> > > Iface 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0
> > >   0 eth0 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0
> > >      0 eth1 0.0.0.0         192.168.1.1     0.0.0.0         UG    0
> > > 0        0 eth0
> >
> > Where/what is your 192.168.1.0 network?  Anything?
> 
> I believe this is my problem! Everything I have read states that 2 NIC's
> are required in the Masq server . One for the internal network  (eth1) and the
> other (eth0) I have no idea what it's purpose is for. I have read alot trying
> to understand how to configure a system like this but a couple of howto's
> indicates 2 NIC's are required but with no explaination no how to accomplish
> this. The firewall with IP Masquerade - HOWTO states to use ppp0 instead
> of eth0 for the external interface and so that is what I did.
> 
> To get on the internet I have to use YaST to change from "Static address
> setup" to "Automatic address setup (via DHCP)".
> 
> Clayton

Hi Clayton,

NIC = Network Interface Card.  Ethernet is a type of NIC, and so is your
modem/serial port.  Even your parallel port can be a NIC.  My first
firewall used one ethernet card (for the ISP) and a parallel port for my
other computer.

Comp B can use a static IP, but you need to have a default gateway set
up - the IP address of Comp A.  Comp A does not need one NIC, and your
ppp script will take care of adding the default gw to your routing
table.

Let us know what happens.

George