Making A Redhat Linuxbox Accessible Over The Internet Help Plz

Dan04

OSNN Addict
Joined
Feb 2, 2004
Messages
158
#1
Hello Everyone,

I am a newbie at Linux, i started using it at TAFE and i am quite interested in it and i have it on my home network setup so that when you type in its ip address or a www.dan2004.com.au in your web browser whateva you want will load up you can ftp to it etc but i was wondering what would i have to do to make it visible for me over the internet through a windows pc using internet connection sharing on the network? if this is at all possible?

If you need any more information feel free to ask or if you could point me in the right direction i would really appreciate that!

Oh yeh im running Redhat Linux 9
 

Reg

eXperienced!
Joined
Mar 2, 2002
Messages
639
#2
I'm not sure exactly how you have your network setup, but I'm assuming that your Linux computer is not directly connected to the internet (i.e. it connects via another PC or via a router). If this is the case, you will need to forward port 80 and port 21 to the IP address of your linux machine. You will then need to give www.dan2004.com.au the IP address of your router or ICS machine, NOT the IP address of the linux machine (your linux machine should have an IP address that looks something like 192.168.X.X, your ICS or router should have both an IP address of 192.168.X.X, and another IP address that is NOT 192.168.X.X. You need to give your domain the IP address that is NOT 192.168.X.X). Once you do that, your machine should be visible on the internet without any problems.
 

Dan04

OSNN Addict
Joined
Feb 2, 2004
Messages
158
#3
Hi Reg,

The Windows PC using ICS is at 192.168.0.1

The linuxbox is 192.168.0.2

How exactly would i do the port forwarding, and would you be able to be soo nice as to then tell me what to do as this bit is going over the top of my head lol, it might seem very easy to you but to me as much as i like linux it is just as much as a headache lol
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
#4
yeah if you open Notepad and then open the file
C:\WINDOWS\System32\drivers\etc\hosts
and add a reference to your nix box in the format
lan_ip [tab] name_to_resolve_with

like
192.168.0.3 [tab] redhat.localnet

then save the file and goto Start -> Run and type
ipconfig /flushdns

then you can resolve your redhat machine as for example "redhat.localnet" or whatever you called it.
also if you call it "www.dan2004.com.au" then you can setup things here like sig files which are at that address and they will resolve properly for you on your lan with the server running locally.

btw [tab] means press the TAB button on your keyboard ;)
 

Dan04

OSNN Addict
Joined
Feb 2, 2004
Messages
158
#5
ok thanks for that soo redhat.localnet ur goin on about is that localhost.localdomain or the things i had to put in the daniel2004.com.au.fwd and .rev files such as daniel2004.root.com.au bla bla bla
 

Dan04

OSNN Addict
Joined
Feb 2, 2004
Messages
158
#6
thanks for your help but no 1 on the internet can read it accept for me any ideas ehat else id have to do or if there is any tutorials for doin this from scratch for redhat 9 or similar?
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,035
Messages
673,561
Members
89,038
Latest member
hzr414ac