Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st July 2004, 03:29 PM
valer Offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Problem sharing a dial-up internet connection

Hi all. I am having trouble sharing an internet connection and I'm running out of ideas. I have read a number of listings on this site, all to no avail. My setup is as follows:

Router is FC2 with eth0 to the LAN and ppp0 to internet (which works fine - I can establish an internet connection); eth0 goes through a D-Link Router/Switch (dhcp disabled, I have this configured on FC2 Router), which goes to my FC1 client machine on eth1. I can ping one of my ISP assigned nameservers from my FC1 client, but when I try to open a page from my browser I get:
"Alert: www.google.com could not be found. Please check the name and try again"

Here is what I have done on the FC2 router:

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=crash
GATEWAYDEV=ppp0

/etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.ip_dynaddr = 1

/etc/sysconfig/network-scripts/ifcfg-eth0
# Davicom Semiconductor, Inc.|21x4x DEC-Tulip compatible 10/100 Ethernet
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:08:A1:070:85
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=crash
USERCTL=no
PEERDNS=yes
IPV6INIT=no
IPADDR=192.168.0.1
NETMASK=255.255.255.0
GATEWAY=192.168.0.1

Rules added to iptables:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -s ! 192.168.0.0/24 -j DROP

All services/iptables have been saved and restarted.

ppp0 is setup to automatically obtain DNS info from provider.

My client eth1 is pointing to GATEWAY=192.168.0.1

Can someone see what's wrong/missing?

Thanks!
Reply With Quote
  #2  
Old 31st July 2004, 04:16 PM
Ned Offline
Registered User
 
Join Date: May 2004
Location: UK
Posts: 399
So you can ping from the client machine through the router machine, but can't browse.

Sounds like it could be a dns problem. Can you ping an IP, but not a name. Try:

ping www.google.com

and see if you get a reply.

Ned
Reply With Quote
  #3  
Old 1st August 2004, 12:30 AM
valer Offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Hey Ned, thanks for the response.

When I ping www.google.com I get: "ping: unknown host www.google.com"

I can successfully ping one of my ISP's nameservers and both of my web hostings nameservers,
but not my own assigned IP number that's being hosted.

My client's /etc/hosts has two entries:
127.0.0.1 localhost.localdomain
192.168.0.1 crash
* crash being the name of my FC2 router. Fortunately it hasen't lived up to it's name!

/etc/resolv.conf is showing my ISP's nameservers

Any other suggestions?

Again, thanks.
Valer
Reply With Quote
  #4  
Old 13th August 2004, 10:00 PM
mekon Offline
Registered User
 
Join Date: Apr 2004
Posts: 55
Re-VALER

Hi VALER. Cant help with the ICS probs. I'm using WinXP as a gateway at the mo and that works fine apart from the high level security. I'm having a hell of a job myself setting up a Linux box as a gateway. But one thing I do notice, is that on your FC2 machine your using as a gateway is that you've got your GATEWAY entry filled in. You need to leave that empty as the FC2 machine IS the gateway. the only machines that need the GATEWAY box filling in with your 192.168.0.1 are the client machines which will be directed towards the gateway which is identified as being 192.168.0.1. Only a bit of help, sorry I cant give more. Mekon.
Reply With Quote
Reply

Tags
connection, dialup, internet, problem, sharing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with internet connection sharing (Fedora 11) moallemi Servers & Networking 3 21st June 2009 11:48 PM
internet connection sharing dial-up how to connect/disconnect bassman000 Servers & Networking 3 29th November 2006 02:58 AM
internet connection sharing dial-up how to connect/disconnect bassman000 Using Fedora 0 24th November 2006 03:29 AM
Internet connection sharing problem SandMan_Rave Using Fedora 7 8th January 2006 03:23 PM
Internet connection sharing problem SandMan_Rave Using Fedora 1 8th January 2006 02:16 PM


Current GMT-time: 00:17 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat