[NCLUG] I'm wearing my ball and ipchains. Please help.

Bill Thorson thorson at typhoon.atmos.colostate.edu
Mon Feb 19 23:45:20 MST 2001


I cannot seem to figure out the right ipchains lines to get this
masquerading working.  I only have a wee dialup feed but am trying
to share it with some other computers in my house.  My computer is
running Redhat 7 and has two ethernet cards and one is wireless.
There is a Linksys router being used as a hub [H] stuck in there
with address 192.168.1.1.

                                                +----+
                                   192.168.1.3  |    |
                                  +-------------|PC1 |
                                 [H]            |Win |
           +----+  192.168.1.2    |             |    |
           |    |-----------------+             +----+
      ppp0 |    | eth0 (100baseT)
     ------|PC0 |
           |RH7 | eth1 (wireless)
           |    |-----------------+             +----+
           +----+  192.168.2.1    |             |    |
                                  | 192.168.2.2 |PC2 |
                                  +-------------|RH7 |
                                                |    |
                                                +----+

I can get PC2 working fine through PC0 to the Internet but cannot get
PC1 working.  PC1 has no trouble communicating with PC0.  Also PC2
cannot ping PC1 and visa versa even though PC0 can ping anybody and
anybody can ping PC0.  ifconfig and route table are below.

Can anybody help me?  I've tried everything I can think of.

Bill

------------------------------------------------------------------
eth0      Link encap:Ethernet  HWaddr 00:A0:24:82:CD:86  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2431 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0x300 

eth1      Link encap:Ethernet  HWaddr 00:00:F1:11:73:F7  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25382 errors:0 dropped:0 overruns:0 frame:1024
          TX packets:27641 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:3 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:6111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:999.99.999.99  P-t-P:999.99.999.999  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:16434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15936 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 


------------------------------------------------------------------
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
999.99.999.999  0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         999.99.999.999  0.0.0.0         UG        0 0          0 ppp0





More information about the NCLUG mailing list