LinuxQuestions.org
Visit Jeremy's Blog.
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 12-04-2005, 03:38 PM   #1
king111
Member
 
Registered: Jul 2005
Distribution: Debian, Ubuntu
Posts: 85

Rep: Reputation: 15
Vmware webserver issue


I'm attempting to configure a VMware webserver, but it's not going so well. In fact, it's not going at all. I'm a bit confused about how to set it up to work with iptables for outside access.

Here is my network configuration:

router ---> main box/vmware ---> other machines

Everything goes through my "main" box. The other machines are only meant to be accessible on the LAN.

I set VMWare to use Bridged networking, and it was assigned 192.168.0.102 on the LAN. So I go into my router config and forward http to 192.168.0.102.

Here's comes my problem: I can't access it from outside the LAN. My router doesn't appear to be forwarding it properly.

Code:
iptables -t nat -A PREROUTING --dst 192.168.0.101 --dport 80 -j DNAT --to 192.168.0.102:80
iptables -A FORWARD --dport 80 -j ACCEPT
I assume that this makes all http traffic seen by 192.168.0.102, the main box, to be forwarded to the vmware server running atop 192.168.0.101. I figured wrong.

Just for kicks, I tried setting up an httpd listening on port 80 on my main box and not vmware. When I tried accessing it from outside the network, it functioned perfectly. So I assume that the above iptables rules are incorrect somehow.

Last edited by king111; 12-04-2005 at 03:39 PM.
 
Old 12-04-2005, 05:51 PM   #2
king111
Member
 
Registered: Jul 2005
Distribution: Debian, Ubuntu
Posts: 85

Original Poster
Rep: Reputation: 15
Please respond?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Vmware Date/Time Issue moneyshotz Linux - Software 7 11-12-2007 12:28 PM
router issue (accessing local webserver) FliesLikeABrick Linux - Networking 4 11-25-2005 11:43 AM
Black Screen issue in VMWare EtrnlApocalypse Slackware 2 03-16-2005 10:42 AM
network issue using vmware Lammy101 Linux - Networking 7 12-08-2004 01:35 PM
vmware 4.5.1 issue... kurrupt Linux - Software 2 10-29-2004 08:07 PM

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

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