LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2002, 01:08 PM   #1
wickywama
LQ Newbie
 
Registered: Oct 2002
Posts: 16

Rep: Reputation: 0
Question I've Been Having Some Problems With The Internet On Red Hat 7.2 Please Help??????????


I have red hat 7.2 and I want to hook up to the internet however I don't know how. I already have a desktop environment but I still don't know how to hook it to the internet I have a cable modem and Im sharing it with my dad so I have it hooked up through a hub into his internet so if you know how to configure this properly please tell me in explain detail thanks


p.s. my dad has windows xp
 
Old 11-09-2002, 01:19 PM   #2
..Tookers..
LQ Newbie
 
Registered: Nov 2002
Location: Hong Kong
Distribution: Redhat 8.0, 7.4, 7.2
Posts: 8

Rep: Reputation: 0
Ok goto the desktop menu and look for network configuration
it should be in the system sub menu

if you click devices and then add an xdsl device
fill in your account details
once finished you can bring the connection up by selecting the device in the devices menu screen, click edit and then select activate device when computer starts
bring up a shell (terminal) and type
'service network restart'
this will disconnect and reconnect all network devices that would normally come up at boot time.
Your on the net, try ping yahoo.com in the shell screen
If all is well you'll get a bit list of sent packets
As for connection sharing, your best bet is Squid Proxy Server. this comes with Redhat, check the services menu, system>services and look for squid... make sure it has a tick next to it and then click save and then start.
This will give you a basic proxy server with little security. To edit the squid config, open up a text editor and point it to /etc/squid.conf
If you only have a small network then you should be able to allow access to your local subnet, deny access from any other addresses and have a list of ports you want accessible or blocked.
I can't really expand on the Squid config at the minute as I'm quite busy. Check out http://squid.visolve.com/squid24s1/sq24.tar.gz this goes into alot of detail

Once your proxy server is running, go onto your Dads machine, open up internet explorer, goto tools>internet options>connections>lan settings and add the address of your linux machine as the proxy server address and the port (by default) is 3128

hope that helped you

Last edited by ..Tookers..; 11-09-2002 at 01:21 PM.
 
Old 11-09-2002, 01:26 PM   #3
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Just offhand, this is what I thought of:

1. Check your ip address and make sure you are set up for an intranet.
2. Check the hub to make sure the cable line runs in to the Uplink port and that Uplink is turned on.
3. Check that you are using the right type of cable.
4. Check your firewall rules.

I know some of those may sound generic, but start with the simple ones first. If it's an easy fix (like a cable type or ip address), then you won't have to work as hard to resolve the problem.

Aside: are all those question marks in your subject _really_ necessary? I mean let's keep it short and to the point.
 
Old 11-09-2002, 01:29 PM   #4
..Tookers..
LQ Newbie
 
Registered: Nov 2002
Location: Hong Kong
Distribution: Redhat 8.0, 7.4, 7.2
Posts: 8

Rep: Reputation: 0
GNUbie, he wants to know how to set up the software. Hence the fact I mentioned Squid
 
Old 11-09-2002, 01:31 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
There are several ways to share an internet connection. One is to purchase an ip address for each machine and hook them all up to a hub or switch that has the cable modem on it. This is the way you said yours is connected, however you probably did not tell your isp you are hooking up more than one computer.

Another way, which is the most common, is to hook up a machine that has two network cards (assuming your cable modem uses ethernet) directly to the cable modem, and hook all other machines to the other network card using a hub or crossover cable ( if it's only one client, no hub is needed).

Linux can provide all of the clients on your network with a connection using ipchains with MASQ (which means the internet connection goes through the ip of the linux machine). The Linux machine could also be setup to be a dhcp server for the network. This way all you need to do is connect the clients. No other setup is needed on the clients.

The other option is to use a windows machine ( win 98 SE or later) that has ICS. This is basically a transparent proxy server that will provide a connection and dhcp to the clients on your network.

Linux is a much better choice, do to the fact that ICS is not very configurable. And since it locks up all the time, everyone will start complaining when their connection is down.


Last edited by DavidPhillips; 11-09-2002 at 01:46 PM.
 
Old 11-09-2002, 01:34 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"As for connection sharing, your best bet is Squid Proxy Server." no, not at all. for basic connection sharing you do not want a proxy server, that's a very different thing. IF he is to share the connection under linux, which i very much doubt, then the easiest and best way is to arbitrarily enable it in the kernel using iptables and a couple of other lines, none of this squid nonsense.

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
assuming you are to share a connection on eth0 to a standard class c subnet.
 
Old 11-09-2002, 01:35 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"Aside: are all those question marks in your subject _really_ necessary? I mean let's keep it short and to the point."

well i mentioned that in another thread this guy posted... we'll have to see....
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Internet on Red Hat arion Linux - Newbie 5 04-09-2007 12:14 PM
internet problems red hat 9 ropunk Linux - Networking 3 07-05-2004 10:35 AM
Need help getting Win XP to see internet through Red Hat 9 n00billy Linux - Networking 6 03-16-2004 10:48 PM
Dial-Up internet with Red hat 9 zaphanol Linux - Networking 24 10-27-2003 03:27 PM
I've Been Having Some Problems With The Internet On Red Hat 7.2 Please Help?????????? wickywama Linux - Networking 3 11-09-2002 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration