hi friends, My friend and myself are trying to configure a LAN and internet Connection: We have 2 machines, one Mandrake 9.1 and other Red Hat 9. The Mandrake Machine is connected to internet via a DSL Modem. The Red Hat 9 Laptop is connected to it via a Ethernet Hub. If I write ifconfig on the Mandrake Shell I get ------------------------------------------------------- eth0 Link encap:Ethernet HWaddr 00:50:FC:09:38:34 inet addr:10.0.0.10 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3744 errors:0 dropped:0 overruns:0 frame:0 TX packets:3946 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:1621014 (1.5 Mb) TX bytes:522670 (510.4 Kb) Interrupt:10 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:409 errors:0 dropped:0 overruns:0 frame:0 TX packets:409 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:27068 (26.4 Kb) TX bytes:27068 (26.4 Kb) ppp0 Link encap:Point-to-Point Protocol inet addr:80.116.12.216 P-t-P:192.168.100.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:3309 errors:0 dropped:0 overruns:0 frame:0 TX packets:3485 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:1517214 (1.4 Mb) TX bytes:415013 (405.2 Kb) ------------------------------------------------------ In /etc/sysconfig/network-scripts I have the file ifcfg-eth0 which is DEVICE=eth0 BOOTPROTO=static IPADDR=10.0.0.10 NETMASK=255.255.255.0 NETWORK=10.0.0.0 BROADCAST=10.0.0.255 ONBOOT=yes ------------------------------------------------------- I hope eth0 interface is for the LAN and the ppp is for connection to internet via the DSL Modem. The ifcfg-eth0:1 file in the /etc/sysconfig/network-scripts of the Red Hat 9 is DEVICE=eth0:1 BOOTPROTO=none ONBOOT=yes USERTL=no PEERDNS=yes IPADDR=10.0.0.11 NETMASK=255.255.255.0 GATEWAY=10.0.0.10 NETWORK=10.0.0.0 BROADCAST=10.0.0.255 I am running the following firewall script in the Mandrake 9.1, which runs without any errors ------------------------------------------------------ IPTABLES=/sbin/iptables INSMODE=/sbin/modprobe EXTIF="ppp+" ANY=0.0.0.0/0 INTIF="eth0" echo "external interface: $EXTIF" echo "internal interface: $INTIF" echo -en "ip_tables, " modprobe ip_tables echo -en "ip_conntrack, " modprobe ip_conntrack echo -en "ip_conntrack_ftp, " modprobe ip_conntrack_ftp echo -en "ip_conntrack_irc, " modprobe ip_conntrack_irc echo -en "ip_conntrack_irc, " modprobe ip_conntrack_irc echo -en "iptable_nat, " modprobe iptable_nat echo -en "ip_nat_ftp, " modprobe ip_nat_ftp echo -en "ip_nat_irc, " modprobe ip_nat_irc echo -en "Enabling forwarding" echo "1" > /proc/sys/net/ipv4/ip_dynaddr echo "clearing any existing rules and settings default policy.." $IPTABLES -P INPUT ACCEPT $IPTABLES -F INPUT $IPTABLES -P OUTPUT ACCEPT $IPTABLES -F OUTPUT $IPTABLES -P FORWARD DROP $IPTABLES -F FORWARD $IPTABLES -t nat -F $IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT $IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT $IPTABLES -A FORWARD -j LOG $IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE ------------------------------------------------------ In /etc/resolv.conf file of the Mandrake I have search Telecom nameserver 217.141.105.205 nameserver 212.216.112.112 ------------------------------------------------------- When I ping from 10.0.0.10(Mandrake Machine) to 10.0.0.11 (Red Hat 9 Laptop) and vice versa it works well on both the machines. For ex: ping from 10.0.0.10 to 10.0.0.11, result is similar vice versa. [root@xxxxxxxxx ppp]# ping 10.0.0.11 PING 10.0.0.11 (10.0.0.11) 56(84) bytes of data. 64 bytes from 10.0.0.11: icmp_seq=1 ttl=64 time=0.695 ms 64 bytes from 10.0.0.11: icmp_seq=2 ttl=64 time=0.493 ms 64 bytes from 10.0.0.11: icmp_seq=3 ttl=64 time=0.488 ms --- 10.0.0.11 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.488/0.558/0.695/0.100 ms -------------------------------------------------------- After running the firewall script [root@xxxxxxxxx ppp]# service network restart Disactivating the interface eth0: [ OK ] Disactivating interface of loopback: [ OK ] Configuring the net parameters: [ OK ] Activating interface of loopback: [ OK ] Activating the interface eth0: [ OK ] ---------------------------------------------------- Internet is working very fine on the Mandrake Machine 10.0.0.10 but I am not able to access Internet from the Red hat 9 Laptop 10.0.0.11. Also, I dont see IP forwarding included in the above OK Messages although I have included that in the firewall script I fail to understand where is the problem. Please help, Thanks a Lot, Sincerely Rebel __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com