Forum Moderators: phranque
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!
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. ;)
Then the webserver will only be availably via the IP 127.0.0.1, which always means "the local machine".