HI all,
I have been trying to set up my network so that my windows machines can access the internet through my linux machine (router?). The linux box is running redhat 9 and has constant connection to the internet via usb adsl modem (d-link dsl-200).
I have the redhat 9 bible and the 6.2 guide and they do not seem to help on this particular problem.
The linux box is working fine on the internet, I can browse download etc. with no problems. The local network has three computers running windows xp and 2000 plus the one linux machine (redhat 9) connected to the internet.
To simplify the problem solving I have only one windows machine connected to the linux box currently.
The problem is that the windows machine cannot access the internet or ping the linux box. The linux box can ping the windows machine but cannot ping the internet. Again the internet, ftp and telnet seems to be working very well on the linux machine.
I am certain my DNS, IP etc are set up correctly on the linux machine accept for one thing maybe, the mask on the tap0. When i do the ifconfig -a, I get the following:
eth0 Link encap:Ethernet HWaddr 00:60:08
6:A5
0
inet addr:192.168.0.1 Bcast:192.168.0.3 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5564 errors:0 dropped:0 overruns:0 frame:0
TX packets:14288 errors:0 dropped:0 overruns:0 carrier:0
collisions:327 txqueuelen:100
RX bytes:441813 (431.4 Kb) TX bytes:947976 (925.7 Kb)
Interrupt:5 Base address:0x220
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:10425 errors:0 dropped:0 overruns:0 frame:0
TX packets:10425 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:711410 (694.7 Kb) TX bytes:711410 (694.7 Kb)
tap0 Link encap:Ethernet HWaddr 00:FF:63:0D:FD:B6
inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16805 errors:0 dropped:0 overruns:0 frame:0
TX packets:13022 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:24146167 (23.0 Mb) TX bytes:1089369 (1.0 Mb)
The tap0 connection is my usb modem, what I dont understand is how to change the mask setting to 255.255.255.252 which is my ISP specified subnet mask for my adsl connection (Static IP), instead of 255.255.255.0 which it seems to set it to by default. Question will this matter if the tap0 mask is set to 0 not 252, so long as I change the eth0 and all other mask settings to 0 instead of 252 which is what they are set at now? Could the internet be working on this machine alone despite the incorrect mask setting on the tap0 connection?
The other thing I suspect is the firewall settings on the linux machine. I have set lokkit to medium level security. here is my iptables -L:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
Could it be a routing problem?
Can anyone point me in the right direction please??
Thanks in advance!
Lucas
" linux oh linux where have you been all my life? And to think all this time I have been using windows!"