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-19-2007, 05:27 PM   #1
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Rep: Reputation: 15
Question Making server public


Hi...im sure this might have been asked before and im pretty sure its a dumb question to ask. but here goes because i do not know and i cant find any answers anywhere.

How do i get my web server public so that people outside our LAN can view what i have on the server?

Im running Debian GNU/Linux with apache 2.0.53, php5 and mysql5 (dotdeb.pimpmylinux.org installation).
i just dont know how to get the damn thing pucblic.

please help is really required.
 
Old 01-19-2007, 06:22 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Looking at your quote earlier:
Quote:
been off of Windows for 2 weeks now
Am I right in thinking you don't have much experience with GNU/inux? If so I would suggest you first secure and harden your box before it turns into another spam fountain.
 
Old 01-19-2007, 06:30 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
EDIT: Posted late... so... once, you've hardened your setup

If you have a domain name, you can use a dynamic DNS provider (www.dyndns.com, etc.) to get the domain pointing at your public IP address from the internet. Once that's done, if your public IP address is on a firewall/router, you need to forward port 80 (maybe 443, 8080, etc. as well) to your web server.

I assume you're already using your domain name on your LAN so maybe your web server won't need configuring to be accessible...

Last edited by gilead; 01-19-2007 at 06:32 PM.
 
Old 01-19-2007, 06:48 PM   #4
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
no im not using my domain name on the LAN. so what configuration would i need on the server side. port 80 is alreadt being forwarded and i already have registered a dns at dyndns.com but it keeps pointing to our gateway address if you type it in the address bar.

and yes i dont know much about GNU/Linux. ive just started because windows is giving me too much trouble.

what would you suggested for firewall, what anit-spam and anti-virus?
 
Old 01-19-2007, 07:25 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Note that any testing you do will need to be from a machine outside of your LAN.
 
Old 01-19-2007, 07:39 PM   #6
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
ok that wont be a problem...but might i ask why?
 
Old 01-19-2007, 07:45 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Testing my memory here stryker, but as I recall, most routers don't let you out and then back in (if that makes sense). Either it simply won't work or you'll be seeing the internal view. Given that your firewall rules probably differ for internal traffic vs external, server access may vary by access, etc., you won't know if it works externally properly or not.

I hope that makes some sense, and there may be those who'll tell you it's a load of bollocks, but I had issues at first with exactly this problem.


Rgds
 
Old 01-20-2007, 03:42 AM   #8
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
i understand what you saying....but how do i get it can be accessed from outside the LAN.
 
Old 01-20-2007, 06:24 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Can I ask what brand and type router you have? Could help diagnostics.
 
Old 01-20-2007, 08:09 AM   #10
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
its a ZeXel prestige router
 
Old 01-20-2007, 08:11 AM   #11
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
ZyXEL Prestige660R-61C to be more specific
 
Old 01-20-2007, 12:38 PM   #12
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The problem has nothing to do with your linux box, and everything to do with your router and its configuration.

You said you can see the site from on your LAN (probably by its LAN IP address), then it is working fine. All you need to do is set the router correctly.

Quote:
port 80 is alreadt being forwarded and i already have registered a dns at dyndns.com but it keeps pointing to our gateway address if you type it in the address bar.
Of course it is pointing at your gateway address! How many IP addresses do you have? You only have 1 public IP address, so the request through dyndns has to hit your public IP at port 80. Then the router has to forward that request in to port 80 at the LAN IP that the debian box has. Hopefully you either set the box to have a static address inside, or configured the DHCP so the linux box always gets the same address.

If that path is all in place, then it is also possible that your ISP does not allow people to connect to their clients at port 80. That is often a case, particularly in situations where the ISP also has a hosting facility, and they would much prefer you paying them to host your server for money rather than allow you to run it out of your home.

I don't know anything about a Prestige660R-61C in particular, but the only way to test if it is working for certain will be to look from outside. Once the dyndns resolves your name to your WAN IP, how will the router treat that? Will it send the signal out to the next gateway only to get turned around and come back to where it started, will it do something else? Since we don't know, you can't test and know from within. Many routers are set not to allow loopback connections, as they are a security risk. So you can test from any connection in the world, save your own.

You could simply use a tool like VNC or remote desktop to connect anywhere else, then point them at your domain, and if they see it, you're cool.

Peace,
JimBass
 
Old 01-20-2007, 03:08 PM   #13
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
ok but do i need to put the dns's that i registered at www.dyndns.com in my /etc/hosts file? or should i put them in my /etc/resolv.conf file? or niether?

how does the router know that it has to go towards the debian box and not towards the other 3 windows boxes? we currently have 4 LAN IP addresses excluding the routers.

the linux box has a static LAN address...it has been assigned to it according to the MAC address.
 
Old 01-20-2007, 03:20 PM   #14
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 to do anything with your DNS. Simply by having access to a functional DNS box, your DNS will ask the dyndns servers for your IP. Game over and done.

Since the static address has been assigned through DNCP by MAC address, that is all set. Now all you need is to establish the port forwarding.

On the router's interface, there will be a section to do port forwarding. All you need to do is take any request from the WAN on port 80, and forward it to the internal address of the linux box, also at port 80.

Peace,
JimBass
 
Old 01-20-2007, 03:58 PM   #15
Stryker
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora 20
Posts: 27

Original Poster
Rep: Reputation: 15
ok what i have gone and done is i have forwarded port 80 to 89 to the linux box's IP address.

so basically now all i need to do is get someone to test it out for me.

i just looked at the /var/log/syslog file and im getting a few errors.
i first got an error saying:
...localhost pppd[3681]: Connect script failed
...localhost pppoe[3780]: Timeout waiting for PADO packets
what does that mean?
and now im getting:
...localhost kernel: eth0: no IPv6 routers present
...localhost kernel: eth0: link up, 100Mbps, full-duplex, lpa0x45E1
and what does that mean...all i can work out is that something is not there but the connection is up.

how does this affect me?
 
  


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 06:49 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