Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

urgent. internet sharing 4

Status
Not open for further replies.

dekcool

Programmer
Oct 2, 2002
231
PH
hi!

first time in linux
want to know how to setup internet connection

server=linux
client=win98

i enable to run internet using linux
thanks in advance ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Hi,

On server site you need to do the following:

1)enable ip forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward

2)use iptables (firewall) for masquerading (masquerade bit)
..
..
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
..
..

On client site, set gateway to linux ip.

regards,
feroz
 
thank you very much but the problem is im very new to linux

can i use graphical interface thanks again ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
hi again!

my linux browser already working and i already add http server but my win98 client cant find the server

thanks ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Perhaps starting squid and configuring your windows 98 system to use a proxy server would be the quickest option - this would only allow web access however, not email etc..

To forward all traffic, follow dbase77's instructions. Webmin ( may be a simpler configuration tool if you like GUI interfaces - it is a simple web based admin tool..
ChrisCW

** Helen Waite is now in charge of all rush orders. If you are in a hurry, just go to Helen Waite.
 
Hi,

You said you add http server on linux. I wonder if you client on the same network. Can you ping each other? Make sure both pc on the same netmask.

regards,
feroz
 
thanks dbase77 for your time
i really need to setup this one

yes you're right i cant find linux server or vice-versa
how to set their netmask

in my client im using 10.0.0.1-10.0.0.20; mask 255.255.255.0

in linux i dont know how to setup
i just change eht0 ip add 10.0.0.21;255.255.255.0

i really appreciate your help thanks again ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
dbase77,

i successfully ping the address but what next :) ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Hi,

On client networking setting, set gateway to point to your linux machine. Open browser on client and try connect to outside world (make sure you online first). have you set your iptables and forwarding on server site?

regards,
feroz
 

how to setup iptables and forwarding? ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 

Read dbase77's first post again.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
i really thanks for ur time

after i typed in terminal
i got permission denied
____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
hi,

can't access root no permission

hope you dont get bored with me thanks again ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
after installing linux redhat 8
what is the administrator default username and password


____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
There is no default - you set it during the install.

Should you be configuring this on a system you dont have root access to? Cant you ask your sysadmin to assist??
ChrisCW

** Helen Waite is now in charge of all rush orders. If you are in a hurry, just go to Helen Waite.
 
im sorry im the one who setup linux and i want to shared internet to other client
thanks also for your time ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Hi,

Like Criscw said, you set root password during installation. Did you set one? We will help you but you need root access for admin staff.

regards,
feroz
 
hi feroz,

i successfully run the first two command so whats next

i set the client gateway to 127.0.0.1

____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 

Don't set the default gateway to the client itself. It has to be the server.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top