LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2003, 07:38 PM   #1
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Rep: Reputation: 0
Question Red Hat: Is this theory correct?


Hi guys,
I am building my own webserver using Red Hat Linux 9. I find that Red Hat starts the necessary startup service port before getting into the OS.

I'm using the terminal mode and is it correct to say that all my service ports (HTTP, POP, FTP, SSH... etc) are ready to use even without logging in as a user/root?

Thanks.
 
Old 11-07-2003, 07:46 PM   #2
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
Yes

You can test it be configuering httpd and then rebooting, using a differnt comp. dial up in to the internet (can't be on the network) and entering your ip address and click go
 
Old 11-07-2003, 08:55 PM   #3
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
this I have to ask - why can't he be on the network and view his web server ?
would have thought the web server didn't care what address the requests came from.
 
Old 11-07-2003, 09:57 PM   #4
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
Hi Joey,
This is what I did:
Main computer - WinXP Pro - Connected to the internet
Network computer - Linux - Connected to the WinXP Pro computer, sharing internet

My question is:
How can I get into my Linux computer to view the webserver? Using the IP address? I doubt it...

Thanks.
 
Old 11-07-2003, 10:30 PM   #5
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
you're using a lan, so why not connect using the local IP ?

192.168.xxx.xxx

your XP box will have two interfaces, one of which is on the local LAN.
the web server can take requests from both the dialup and the LAN (that access will be decided by the firewall).

external access to a local web server (or any server for that matter) is what port forwarding is all about.
 
Old 11-08-2003, 12:01 AM   #6
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
Dear Caysho,
Thanks for your input:
192.168.xxx.xxx

Any idea how can I determine the last few numbers?

Thanks.
 
Old 11-08-2003, 12:45 AM   #7
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
192.168.xxx.xxx are the standard ip address (around those numbers anyways) for you local area network (lan) and 192.168.1.1 is the standard router ip address.

I would suggest downloading nmap and doing this command in console:
nmap -sT 192.168.1.0/24 -sV

It will do a quick check on your network to find out what machines are what.
good luck
 
Old 11-08-2003, 12:47 AM   #8
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
somewhere on the XP box will be its settings for your LAN.
try running winipcfg, that will tell you what public and private IP's your XP box uses (it does for Win98).

I may have given you a slight red herring - you might be better of using a server name instead of the IP.
I typically refer to IP's because at home I use static IP's, and my workplace does the same
but if I wanted to, I could set up a web server on my games box (called Mage), and point my browser at mage:80 to get whatever webpage is being served (assuming httpd was on port 80).

I could do the same as above and point it at 192.168.xxx.xxx:80 for the same effect.

given your XP box is also the dialup, you could also point your browser on the linux box to the IP your XP box is given by your ISP - the request will get sent through the XP dialup to the ISP, and back again to the XP box, which will respond in the same manner (NAT takes care of the internal > external addressing)

given that the ISP will be dynamically allocating your IP (assuming a typical case), your public IP will be changing each dialup, as will the public DNS; to deal with this, use a free DNS server that provides a "static" DNS.

this is a fairly simple description, and I'm not across any problems you might get as I've not actually done it - I just understand the principles.
 
Old 11-08-2003, 04:58 AM   #9
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
Hi guys,
Thank you very much for you replies.

Anyways, I guess I'm not very clear at:
1. I found that my Linux system is using the IP, 192.168.0.38 while 192.168.1.1 was used by my WindowXP system.

2. I tried to SSH into my Linux system from my WindowsXP system, using PuTTy but failed. It shows "Network error: Connection timed out." I tried stopping iptables on my Linux system but it does not help too.

Sorry if I am sounding too stupid because I'm very new to Red Hat.

Thanks for your help again
 
Old 11-08-2003, 08:16 AM   #10
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
is sshd running on the linux box ?
I reckon the linux box isn't listening for an ssh connection, so it times out.
run
ps -ax | grep ssh
as root to find out what ssh stuff is running.
 
Old 11-08-2003, 09:27 AM   #11
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
Hi Caysho,
Thanks for your reply. This is what I see after enterring the command:
3312 ? S 0:00 /usr/sbin/sshd
3495 tty1 S 0:00 grep ssh

Any idea? Thanks for your help!
 
Old 11-08-2003, 11:54 AM   #12
trallith
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Rep: Reputation: 15
Hello:
about the ssh problem, make sure whatever firewall your running isn't blocking port 22.

Also, if anyone can tell me why he shouldn't connect over the lan, I would really appreciate it.

Oh ya, and if your running a webserver behind a router, you'll probably want to eventually setup port forwarding on the router, unless you have a seperate internet connection on the server also.
 
Old 11-08-2003, 05:50 PM   #13
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
Hi trallith,
Nope, I don't have any router.

As for the firewall issue, since I disabled iptables, it should not be blocking port 22. And I have just did a fresh install of Red Hat 9 on this machine. Any idea?
 
Old 11-08-2003, 08:58 PM   #14
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
Quote:
Originally posted by trallith
Hello:
about the ssh problem, make sure whatever firewall your running isn't blocking port 22.
mikefoo said he dropped iptables to allow all connections:

Quote:
Originally posted by mikefoo
...I tried stopping iptables on my Linux system but it does not help...
it might be worth while having the commands he used to do that posted as well.
it might not have worked.

Quote:
Originally posted by trallith

Also, if anyone can tell me why he shouldn't connect over the lan, I would really appreciate it.
that was my original question
he hasn't provided any info to suggest he shouldn't, imo.

Quote:
Originally posted by trallith

Oh ya, and if your running a webserver behind a router, you'll probably want to eventually setup port forwarding on the router, unless you have a seperate internet connection on the server also.
it was my assumption that eventually the webserver would be made available to the public; I don't know if that is going to be the case though.
 
Old 11-08-2003, 09:53 PM   #15
mikefoo
LQ Newbie
 
Registered: Nov 2003
Location: Malaysia
Distribution: Red Hat Linux 9.0
Posts: 16

Original Poster
Rep: Reputation: 0
Hi guys,
So back to the point. Any solution?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
Red Hat 9 to Red Hat EL Mozilla Migration Question rharvey@cox Linux - Software 2 01-13-2004 06:43 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
red hat 9.0.93. -beta red hat 10-xmms problem ronss Red Hat 1 09-08-2003 04:00 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM


All times are GMT -5. The time now is 11:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration