LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-20-2007, 04:17 PM   #16
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49

First off, close 81-89. You don not open ports that are never used, that is just an invitation to hackers. All connections for web servers come in only on 80.

You won't see much in syslog. Most of that has nothing to do with the webservice. All the ppp is point to point communications, like a phone modem. That shouldn't be used at all with a high speed connection, so I don't know why they are looking for a connection. The lines about eth0 are just what they say. You have no ipv6 router, as ipv6 is not used anywhere in the US at present. The other tells you that connection is up and fine.

You really are not at a level where you are ready to admin a linux box. I'm not saying that to scare or downplay what you've done so far, but your inability to get this going shows that you don't have the networking knowledge for a project like this, a clear lack of linux knowledge is present, and by not using searches here and with google that you just aren't set to take care of a linux box.

Furthermore, how in the world are we supposed to check if you're configured correctly when you have yet to tell us what the domain name is for the site?

Peace,
JimBass
 
Old 01-20-2007, 04:32 PM   #17
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
i accept what you say...i have done a fair amount of research but i can only fit so many hours in between my working hours. this is sort of a sideline thing that im trying out. but im not looking to go full top notch here. to explain the lack of knowledge with linux is because ive only been working with it for 2 weeks...after hours.

oh and the domain is (taken away) and i have closed port 82 - 89.
thanks for the help so far though

Last edited by Stryker; 01-22-2007 at 05:18 PM.
 
Old 01-20-2007, 04:41 PM   #18
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
apache port

Just out of curiosity, which port are you using in your /etc/apache/httpd.conf file? And what do you have under server name?

Last edited by manwichmakesameal; 01-20-2007 at 04:45 PM.
 
Old 01-20-2007, 04:44 PM   #19
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I'm not suggesting that you become a linux master overnight by any stretch, just that you need to get some more skills together before you put boxes live on the internet. If you get rooted, that will be a very bad experience for you.

Closing 82-89 isn't enough, close 81 as well. The way ports work is they are only contact ports. Everyone asking to connect to your linux box is asking for port 80, and then your server says to them something along the lines of, "ok cool, go to port 23423 for further info." Those ports will be open, it is just 80 that needs to be mapped and kept clean. And regardless of if 1 person or 1,000,000 people try to look at your page, every single one of them will come in at port 80.

Your page doesn't load at present. Also, from what I can tell from this side of the connection, it looks like your ISP may be blocking access to you on port 80. A quick scan of peppie32.dyndns.org says it is not live. Since that is your external IP address obviously it is live, and that suggests some type of mask put in place by your ISP. Do you know if they allow you to run webservers on your connection?

[later]You do not have the port forwarding set up correctly. An extended scan of your IP showed only one port open on the WAN side -
Not shown: 1696 filtered ports
PORT STATE SERVICE
5190/tcp open aol

So you need to get the router to open and forward 80, and still confirm that your ISP will allow you to do that.[/later]


Peace,
JimBass

Last edited by JimBass; 01-20-2007 at 04:53 PM.
 
Old 01-20-2007, 04:51 PM   #20
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
no i dont know that...but i can find out but only on monday ofcourse. sorry i meant to say that i closed all ports and only port 80 is open.

i did read that that could be a possibility. what would happen if i change the server to listen to port 8080 instead of port 80 and then ofcourse open port 8080 on the router?

i really do think i need more experience too...but how i see it is how else do you gain experience other than getting your hands dirty. and besides we only want to use server for demo purposes to save our hosting service's bandwidth and space.
 
Old 01-20-2007, 04:56 PM   #21
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I just edited my post above, you don't have port 80 open, you only have something opened for AOL -

Not shown: 1696 filtered ports
PORT STATE SERVICE
5190/tcp open aol

it is fine to get dirty, just be very aware that somebody can compromise your system fairly easily when you don't know what you're doing. So if somebody roots you and turns you into the proverbial spam fountain, you'll still be legally responsible for that.

And you can change to 8080, although if 80 is blocked, it is often that 8080 is blocked as well. You'll need to get a hold of somebody in tech support and find out exactly what the policy is. You also could just change it on the router, forward 8080 to 80 internally, if your router supports it.

Peace,
JimBass

Last edited by JimBass; 01-20-2007 at 04:57 PM.
 
Old 01-20-2007, 05:04 PM   #22
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
ok will get more information about whether or not we are allowed to run our own webserver here.
i just ran a test as well and i see what you mean that port 80 is not forwarded although it is supposed to be forwarded. and yet port 8080 is forwarded.

how do i forward port 8080 to 80 internally?

[EDIT]

seeing to it that i have forwarded port 8080 and have apache listening to port 8080 too...could you check the domain with port 8080?

Last edited by Stryker; 01-20-2007 at 05:07 PM.
 
Old 01-20-2007, 05:12 PM   #23
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
http://www.peppie32.dyndns.org:8080 also fails. By the way, 99% of website work just as well without the www. It is some crazy holdover from the early 90's that many still use. Save your typing tendons, and just go with http://peppie32.dyndns.org:8080.

In any case, I can't connect to that either. Did you restart apache after you made the change, and can you connect locally at it's lan IP address with :8080 tacked on at the end?

Peace,
JimBass
 
Old 01-20-2007, 05:19 PM   #24
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
yes i did restart apache after i made the changes...i restart apache after i make any changes. and yes i can access the server on LAN with the IP address :8080.

i also saw on another site that a person did a demonstration of the file /etc/hosts
and he put the following in (taking me as an example)

192.168.1.1 router.peppie32.dyndns.org #the router
192.168.1.33 www.peppie32.dyndns.org #the server

is this needed in anyway?
and i restarted apache jsut to be safe
 
Old 01-20-2007, 05:27 PM   #25
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
otherwise what solution is there to get this thing online so that we can start using it for demos (it wont be advertised).
you mentioned that i need to find out from our ISP if we are allowed to run a webserver.
if not what do we need from our ISP and if yes what do we still need from our ISP.
and other than that what else do you suggest? also what firewall, anti-spam and anti-virus packages would you suggest? ive read about firestarter, iptables, spamassassin. but what would you suggest?
 
Old 01-20-2007, 05:27 PM   #26
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
By editing /etc/hosts, you only effect the DNS lookups from that machine. If your ISP allows connections but doesn't allow you to loopback onto your own address, then it makes sense to put in the LAN ip address, but that doesn't help your windows boxes in any way. I would say it is completely a waste, and just connect to it by its LAN address within your place, but you certainly can do that if you want to.

Peace,
JimBass
 
Old 01-20-2007, 05:31 PM   #27
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You don't need anti-spam or anti-virus on a webserver, unless you allow people to upload files, in which case you should use clamav, available at http://clamav.net. You should get a hardware firewall in front of this and any other box that is exposed to the world. Doesn't matter if it is a computer running something like smoothwall or a dedicated hardware unit like something from sonicwall, but something should be protecting your machines.

Anti spam makes no sense, unless the box is a mail server.

You need to find out if you can run a webserver from your ISP, and if they block all connections, or only connections on 80, the whole deal. You need to find out where the holes are so you can go through them, if they exist at all.

Peace,
JimBass

Last edited by JimBass; 01-20-2007 at 05:32 PM.
 
Old 01-20-2007, 05:35 PM   #28
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
no im not interested in a mail server.
ok thanks...ill look into those...i will be needing antivirus besause the demos will include people uploading. although it will be cleaned up on a daily / weekly bases.

i just changed something on the router now (ddns username) and now if i try and access www.peppie32.dyndns.org from within the LAN it asks me for the router's username and password. why does it do it now and previously it just timed out?
 
Old 01-20-2007, 05:41 PM   #29
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Because you finally got it working! I can get to your site now, although the title on the tab says only 60. so you certainly have some work ahead of you. Not that it is resolving correctly, we find that your IP is allowing you to loopback if you are connecting to your router when you try http://peppie32.dyndns.org, and the site is available at http://peppie32.dyndns.org:8080.

Your public IP changed too in the past hour, maybe when I was looking before it was trying to connect to the wrong IP.

Peace,
JimBass
 
Old 01-20-2007, 05:49 PM   #30
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
yes i know my public IP changes...i never knew it changes every hour or so...i thought it changes every time i reconnect to the itnernet.

the title is because thats just a template my dad had setup...the actual script in there does not work. oh and it was not a username i changed it was the host name i changed on the DDNS option on the router.

what if i have another dns i.e www.peppie32.dyndns.info how would i get that one working if i only have an option to enter one host name in the router?
 
  


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
Making a website public IanThePetRock Linux - General 33 08-01-2005 02:41 PM
Making Webalizer Stats Public PensJunkie Linux - Software 2 06-07-2005 10:40 AM
Making a public samba share joncolby Linux - Software 0 06-24-2004 01:02 PM
Making zip drive public phatboyz Linux - Hardware 3 03-02-2004 03:58 AM
making RedHat 9 server public with WRT54G williamp0044 Red Hat 1 02-22-2004 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration