Hi,
I have CentOS 4.3 Host, VMWare Server RC1.
eth0 = public ip (63.x.x.x)
eth1 = private LAN ip (10.0.0.x)
tun0 = p-t-p VPN (10.8.90.x)
Guest VM is Ubuntu Dapper Server
The guest is configured with only one ethernet interface, eth0=vmnet8 (NAT)
I have enbaled /proc/sys/net/ipv4/ip_forward=1
I configured the /etc/vmware/vmnet8/nat/nat.conf as follows:
****************************************
\# Linux NAT configuration file
\[host]
\# NAT gateway address
ip = 192.168.148.2
netmask = 255.255.255.0
device = /dev/vmnet8
activeFTP = 1
\[udp]
timeout = 60
\[incomingtcp]
8032 = 192.168.148.132:80
\[incomingudp]
1194 = 192.168.148.131:1194
Here are my iptables rules:
****************************************
\[root@vms0 ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:902
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:3000
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8032
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8222
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8333
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Here's my routing table:
****************************************
\[root@vms0 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.90.246 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
63.x.x.x 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.148.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
10.8.0.0 10.8.90.246 255.255.0.0 UG 0 0 0 tun0
0.0.0.0 63.x.x.x 0.0.0.0 UG 0 0 0 eth0
So - the problem is, I want to hit my guest with DHCP'd IP 192.168.148.32 by typing in
http://hostmachine.com:8032/ (which is how the NAT is configured)
But when I do that, it doesn't seem to work .
Any ideas? Is there a command to "flush" the NAT rules and reload them? Do you have to restart the entire VMware server in order to do that?
Thanks in advance for any help.