| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: Using the same IP as VPS0 (HOST) [message #2257 is a reply to message #2255] | 
			Mon, 27 March 2006 21:19    | 
		 
		
			
				
				
				
					
						  
						dearaujo
						 Messages: 6 Registered: March 2006 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Ok - I tried your suggestion, but I can't seem to get it to work.   Here's my configuration: 
 
Hardware Node public IP - w.x.y.z (keeping it to myself atm)   
VPS private IP - 192.168.0.1 
 
IP route commands - (trying to run a web server - port 80): 
 
iptables -t nat -A PREROUTING -p tcp -d w.x.y.z --dport 80 -j DNAT --to-destination 192.168.0.1  
 
iptables -t nat -A POSTROUTING -s 192.168.0.1 -j SNAT --to-source w.x.y.z 
 
# iptables -nvL -t nat 
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) 
 pkts bytes target     prot opt in     out     source               destination 
 
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) 
 pkts bytes target     prot opt in     out     source               destination 
    0     0 SNAT       all  --  *      *       192.168.0.1          0.0.0.0/0           to:w.x.y.z 
 
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) 
 pkts bytes target     prot opt in     out     source               destination 
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            w.x.y.z         tcp dpt:80 to:192.168.0.1 
 
Also, my nameserver in my VPS matches my Hardware Nodes' nameserver. 
 
I can ping w.x.y.z from inside my VPS.  I can ping my VPS from my hardware node.  However, I _cannot_ ping anything other than my hardware node nor can I access the test webpage from outside the VPS. 
 
Any suggestions? 
		
		
		[Updated on: Mon, 27 March 2006 21:24] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 |