LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-17-2008, 10:21 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
I have a question about ports


I have a website being broadcasted and hosted off a computer at my apt. I paid for the domain name but I'm doing all the hosting from that computer. That computer is running fedora 8. I got httpd up and port 80 is open on the firewall. Also, this computer is behind a router at my apt. On the router I put from port 80 to port 80 forward to the internal ip address of the computer running the website.

Do I really need to open port 80 on the internal firewall in fedora 8 of the computer running the website? If I do, since I'm broadcasting the website, will port 80 be open or closed?

Also, I wanna setup a mail server on this computer. Can I setup the mail server on the same computer that is running the website? Is it ok if the ip addresses are the same for the website and the mail server? If they have to be different, I guess I could just install xen and make a vm. Would I have to make a full virtual one for a differnt ip or is paravirtual sufficient for a different ip.

Also, I tried ssh into this computer with the website. I have port 22 open on the firewall and I have the router forwarding port 22 to the internal ip of that computer. Now I'm on a computer in another city in a hotel. I ssh into it (of course I need to enable AllowTCPForwarding on the sshd_config, do I need to do this to a ftpd also? I usually use sftp or lftp. Do they have an AllowTCPForwarding on their config files?)

Anyhow, when I ssh from the hotel into the computer that is running the website at my apt, I try using startx to go into the gui. But it said that it can't because no screens were available in X11. That's because I have this computer running with no mouse, keyboard, and monitor. If I boot up this computer with none of those, then the kernal automatically edits the X11.conf to clear all the screens that were their before? How can I disable the computer from erasing the screens? Or is it impossible to use startx on a computer with no monitor?

One last question, is there a command in terminal that displays information about the files, like the size of them?
 
Old 05-17-2008, 10:28 PM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
1. AFAIK, you would need to open the port in fedora's firewall as well
2.Yes, you can have the same computer running both, yes it is ok for them to have the same ip addresses
3.Not sure on that one
4.You need to edit the sshd config file in order for you to run x in ssh.
I wouldn't normally advise for a web server to be running fedora because it is a bleeding edge distro and is not always stable, I would run something like CentOS, but thats your choice
 
Old 05-17-2008, 10:38 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
Yea I've come to find that the gui side is very unstable. Tons of "not responding." Anyhow, in the terminal it's pretty stable. Never had a problem. Since this computer will be my mail server and website, I'm just gonna leave it on init 3. That way it'll be stable, plus i got no mouse, keyboard or monitor on it so it's cool.

As for the website, it's just some personal one, nothing big or complicated and nothing of value so it's chill. Thanks for the answers.
 
  


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
ports question on updating tw001_tw *BSD 2 04-09-2005 01:06 AM
question about udp ports mcd Linux - Networking 3 03-15-2005 04:13 AM
Question about switch ports... WeNdeL Linux - Networking 3 04-14-2004 08:44 AM
sendmail and ports question Robert0380 Linux - Networking 1 06-06-2003 06:29 PM
a question of ports? Ricardo77uk Linux - Networking 2 08-01-2001 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 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