Hey all,

     I'm trying to set up a gateway on my RH 9.0 box for a home network
isp ppp sharing; its ip is 192.168.0.2; here's what I did:

sysctl.conf:

#added
net.ipv4.ip_forward = 1


rc.masquerading:

#created today
                                                                        
/sbin/iptables -F
/sbin/iptables -F -t nat
/sbin/iptables -F -t mangle
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


rc.local:

#added
/etc/rc.d/rc.masquerading

    In the xp box, I manually set the dns ip for my usual isp's, and the
right gateway, all that. Set up Internet Explorer to use a proxy, all
set there too, for all I know; just it doesn't work - I don't get access
from xp.
    One other thing is that the xp computer (192.168.0.1) is set as the
default gateway for the linux box, since I'd been using it as so and
hope to be able to keep it.

    Some more outputs(with my isp ppp connection up), too bad I can't
manage to increase the line size in evolution:

[EMAIL PROTECTED] rc.d]$ /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
200.216.95.235  *               255.255.255.255 UH    0      0        0
ppp0
192.168.0.0     *               255.255.255.0   U     0      0        0
eth0
169.254.0.0     *               255.255.0.0     U     0      0        0
eth0
127.0.0.0       *               255.0.0.0       U     0      0        0
lo
default         200.216.95.235  0.0.0.0         UG    0      0        0
ppp0


[EMAIL PROTECTED] rc.d]$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:02:2A:B8:40:A9
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:34685 errors:26 dropped:0 overruns:0 frame:27
          TX packets:34636 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:3049106 (2.9 Mb)  TX bytes:3037944 (2.8 Mb)
          Interrupt:10 Base address:0xc000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:92 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5992 (5.8 Kb)  TX bytes:5992 (5.8 Kb)
 
ppp0      Link encap:Point-to-Point Protocol
          inet addr:200.151.49.70  P-t-P:200.216.95.235 
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:727 errors:0 dropped:0 overruns:0 frame:0
          TX packets:834 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:534383 (521.8 Kb)  TX bytes:113597 (110.9 Kb)
 
Any help much appreciated;

-- 
Herculano de Lima Einloft Neto <[EMAIL PROTECTED]>


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to