Forum Moderators: phranque

Message Too Old, No Replies

Private Apache Use on a Linux Box

How do I make sure people aren't peeking at my private server?

         

TRS80Geek

12:10 am on May 2, 2005 (gmt 0)



I'm running Mepis Linux on a PC in my home.

I'm connected to the Internet using a cable modem.

I want to run Apache on my Linux box and test web pages, do PHP programing, etc.

But I don't want anyone from the outside peeking into my server, nor do I want to accidently turn my machine into a web server that might be broadcasting to the Internet.

How do I set it up so only I can see the Apache server, I can use a web browser on the machine to surf the net, but no one else on the outside can see it...accidently or otherwise.

Thanks!

bose

1:19 am on May 2, 2005 (gmt 0)

10+ Year Member



Block all inbound packets to the port (80 and 443?) you are using at the border router. Use authentication, for added safety.

sitz

4:51 pm on May 3, 2005 (gmt 0)

10+ Year Member



If you're behind a cable modem, chances are that a) you're behind a NAT and b) inbound ports 80 and 443 are blocked. Cable providers generally block access to well-known ports on their customers devices so that they can sell 'business' levels of access which do not include such restrictions. As an added bonus, it removes a vector for worms and other kinds of nastiness.

This is easy enough to check; find the IP address if your workstation. If it's an RFC1918 IP address (see [mirrors.rcn.net ], section 3 for the address ranges), then your workstation in not directly accessible from the outside. To determine whether ports 80/443 are blocked, find the IP address the internet sees you as and try and visit that IP in a browser *not* on the linux server. You can get your IP address from (among many, many other places) [dnsstuff.com ]; the IP address will be in the paragraph underneath all the text fields. If you can't hit port 80 on that IP from a browser while your webserver is up, you should be fine.

Of course, you should monitor your access logs, just to be sure. ;)

py9jmas

5:22 pm on May 3, 2005 (gmt 0)

10+ Year Member



The easiest way IMHO is to configure Apache only to bind to the loop-back address 127.0.0.1
[httpd.apache.org...]

Then the webserver will only be availably via the IP 127.0.0.1, which always means "the local machine".