LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2007, 12:07 AM   #1
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Rep: Reputation: 16
Apache in vmware behind a router


I am wanting my webserver to be accessed thru my external ip. It is running in vmware and is also behind a router. I have done the port forwarding, but I still can't get it to work.
 
Old 10-14-2007, 01:06 PM   #2
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by gamewolf View Post
I am wanting my webserver to be accessed thru my external ip. It is running in vmware and is also behind a router. I have done the port forwarding, but I still can't get it to work.

I don't understand exactly what you mean. Can you please post some more information on why you feel it is not being accessible?

What do the logs say?


Sounds like you have a good setup, I would like to help.

Regars
 
Old 10-14-2007, 01:32 PM   #3
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
What I mean is I have Debian Etch running in vmware. Debian is running Apache2 and PHP. I can access it with its local address i.e. 192.168.1.111.
But when I access my external ip, the one assigned by my ISP, it won't access it.

I have my router forwarding the port to the right ip and it still isn't working.
 
Old 10-14-2007, 01:38 PM   #4
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by gamewolf View Post
What I mean is I have Debian Etch running in vmware. Debian is running Apache2 and PHP. I can access it with its local address i.e. 192.168.1.111.
But when I access my external ip, the one assigned by my ISP, it won't access it.

I have my router forwarding the port to the right ip and it still isn't working.
Is Apache accepting connections for all addresses? Is there an error produced in the browser or does the connection hang? What does the apache logs say? This will help rule out Apache as the culprit.

Have you tried packet sniffing to see what happens to the http requests? Do you have any other ports forwarded that are working?


Regards
 
Old 10-14-2007, 02:24 PM   #5
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Ok, I got it working. I feel like a tard. I had the router forwarding the same port to two ip addresses and it obviously didn't work
 
Old 10-14-2007, 02:32 PM   #6
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Glad you have it working!

Regards
 
Old 10-14-2007, 03:23 PM   #7
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
I do have one more questions though, what are some things I can install so hackers can't get into my other computers? I am going to be installing an ftp server too, so I need that secure as well.

Thanks.
 
Old 10-14-2007, 08:22 PM   #8
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by gamewolf View Post
I do have one more questions though, what are some things I can install so hackers can't get into my other computers? I am going to be installing an ftp server too, so I need that secure as well.

Thanks.
There really isn't anything to install, but many things to configure. The more ports you have open, the more chances that anyone trying to get into the systems will have.

The first thing to remember is make certain you understand what it is you are putting out in the wild on the internet.

Your logs really are your best friend. Be a good steward and look over them regularly.

Be sure all unnecessary services are turned off (including the X server); look over the iptables rules and put in an intrusion detection system like Tripwire. That in itself won't stop anyone, but it will alert you to anything that was compromised.

Make sure everything is patched. This is the beauty of open source. Patches come out quickly, but the downside is that if you don't patch a system you will be wide open for anyone to see.

If you do run an ftp server, make sure it is running in a chrooted environment.

By the way, does your VMware server run on Windows host? If so, I would suggest running it on a Linux host inside a dmz.

Regards
 
Old 10-14-2007, 09:52 PM   #9
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ray_80 View Post
There really isn't anything to install, but many things to configure. The more ports you have open, the more chances that anyone trying to get into the systems will have.

The first thing to remember is make certain you understand what it is you are putting out in the wild on the internet.

Your logs really are your best friend. Be a good steward and look over them regularly.

Be sure all unnecessary services are turned off (including the X server); look over the iptables rules and put in an intrusion detection system like Tripwire. That in itself won't stop anyone, but it will alert you to anything that was compromised.

Make sure everything is patched. This is the beauty of open source. Patches come out quickly, but the downside is that if you don't patch a system you will be wide open for anyone to see.

If you do run an ftp server, make sure it is running in a chrooted environment.

By the way, does your VMware server run on Windows host? If so, I would suggest running it on a Linux host inside a dmz.

Regards
Ok, I am kinda a Linux newbie.

I usually can't find any log files! I don't know where to look.
I don't know how to turn off services either.
iptables?
Ill look into Tripwire
I can patch using the synaptic program right?
chrooted environment?
I really don't have a choice of OS. I have a Debian install on my external hd, but I can't run it most of the time because I run Windows while I play games. I can usually play games and run vmware at the same time.

Thanks for all your help.
 
Old 10-15-2007, 07:20 AM   #10
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
bump does anyone know?
 
Old 10-15-2007, 10:06 AM   #11
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by gamewolf View Post
Ok, I am kinda a Linux newbie.

I usually can't find any log files! I don't know where to look.
I don't know how to turn off services either.
iptables?
Ill look into Tripwire
I can patch using the synaptic program right?
chrooted environment?
I really don't have a choice of OS. I have a Debian install on my external hd, but I can't run it most of the time because I run Windows while I play games. I can usually play games and run vmware at the same time.

Thanks for all your help.
What I would suggest doing is to read up on your system and how to secure it before putting it out on the web. Going over all of the questions is kinda out of the scope for a forum. Linuxsecurity.org is a good place to begin. Or check out some books or CD's. You can also get some formal training as I have. It was a great experience for me and I include the site in my signature because of the positive results. I also got quite a bit of help over time at the MandrivaUsers.org site. Either way, I am thinking that you need to spend some quality time understanding Linux.

It's not the distribution that matters as much as what it is you want to do. I tend to stay clear of discussions over what distro is "best" because Linux is what YOU make it and what YOU configure it to do. A waste of time in my eyes to haggle over what flavor tastes better to someone. So it comes down to the admin and not what company rolled the distro. Linux is as good as the guy who administers it.

If you want a workstation, great. If you want a server, that's great also, but the two will not mix especially if you are looking for any credibility in the workplace. Linux can do anything you want it to do. Just keep the thought of not comparing it to Windows because these are two totally different platforms.


Your logs are located in the /var partition normally. I am feeling that before you get into all the things you want to do (and you will do them soon) get a good foundation on your machine. If you running X (I sure you are), hit Control-Alt-F1 to get to a Bash shell. You can hit Control-Alt-F7 to get back to KDE. Log into the shell and hunt around.

Want to know more about any command? Type "man name-of-command" and there is the manual. Hit the 'Q' key to get out.

Go into the /var partition and find the logs:

cd /var

ls -la

cd logs/

ls -la

less name-of-log-file-you-think-is-cool

(use the up and down arrows to navigate. You are root to read these, right?)

After you do this exercise, please write back here or my email and I will be more than happy to help out where ever I can. One thing that my instructor stressed was to be sure we all took time to offer help to others. Let's take the first step before you run.

Regards
 
Old 10-15-2007, 04:09 PM   #12
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Ok I knew about the ctrl-alt-f1 and stuff, but I press it in vmware, and it doesn't work. I do have a hd install on my external hd, but I hate restarting my computer each time just to go back and forth. Plus, my hd install is a bit buggy.
 
  


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
Running Apache within vmware gamewolf Debian 7 10-14-2007 02:22 PM
Apache on VMWare hosted by Windows behind Router guiltybyassc Linux - Networking 5 09-08-2005 05:53 PM
Apache, forward requests to a vmware virtual machine Hube Linux - Software 2 09-02-2004 09:58 AM
Configure Redhat Linux on VMWare to use Apache and Tomcat beltzaser Linux - Networking 0 06-25-2004 03:02 AM
VMWare, RH Linux 7.3, Apache, MySQL and PHP xibernex Linux - Software 2 06-17-2002 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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