ics gateway

mrweirdo

Senior member
Dec 1, 2002
706
0
0
I have been trying to setup my linux box(fedora) as a gateway for internet conection sharing using this article as my guide. I havent been able to get it to work though. here is my little setup as it stands right now.
I am using my dialup modem to connect to the net on my linux box with ppp0.
My eth0 config file looks like:
# Linksys|Network Everywhere Fast Ethernet 10/100 model NC100
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.0.255
HWADDR=00:03:6D:1C:30:AC
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=yes
PEERDNS=no
GATEWAY=ppp0

For my client computer wich is runing w2k i have its network card setup as follows:
IP: 192.168.0.99
Subnet: 255.255.255.0
Gateway: 192.168.0.1
DNS 1: 66.81.0.251
DNS 2: 66.81.0.252

I cannot access the net or ping out to the net from my w2k comp but i can ping my linux box from there. On my linux box i can access the net just fine but I canot ping out to the net. Also if i try to do a tracerout on my linux box i get
something like the following.
traceroute to www.google.akadns.net (216.239.53.99), 30 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
.....
I can ping my w2k comp from the linux box just fine.
I hope someone has some ideas out there :)
Thnx
 

mrweirdo

Senior member
Dec 1, 2002
706
0
0
just figured out i canot ping out when i used the modem in one of my windows computers. I assume my isp has blocked pinging.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Can you get out using the linux box at all?

Also what is your iptable/NAT rules?
 

mrweirdo

Senior member
Dec 1, 2002
706
0
0
I can get out just fine as long as i dont try to do a ping or tracerout onto the net. Everything else works though web, irc, etc.
heres what i get when i do an iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 

mrweirdo

Senior member
Dec 1, 2002
706
0
0
got it working I'm not sure what caused the problem but i noticed that the linux box seemed to still think its ip was set on 192.168.0.4. I went into the networking configuration app in gnome and saved it. Then i restarted the networking service and it started working. Thanks for the response even though i didnt realy need it after i figured it out myself :D