OpenVZ Forum


Home » General » Support » *SOLVED* NAT doesn't seem to work
Re: NAT doesn't seem to work [message #5004 is a reply to message #5002] Tue, 08 August 2006 06:51 Go to previous messageGo to previous message
duswil is currently offline  duswil
Messages: 77
Registered: January 2006
Member
testvps:~# ping -w 10 google.com
PING google.com (64.233.167.99) 56(84) bytes of data.

--- google.com ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9087ms


[root@hn ~]# lsmod
Module                  Size  Used by
iptable_nat            26972  0
ip_conntrack           35720  1 iptable_nat
ipt_length              1728  0
ipt_ttl                 1856  0
ipt_tcpmss              2112  0
ipt_TCPMSS              3904  0
iptable_mangle          4544  0
ipt_multiport           2048  0
ipt_limit               2176  0
ipt_tos                 1600  0
ipt_REJECT              6016  0
iptable_filter          4288  1
ip_tables              20752  11 iptable_nat,ipt_length,ipt_ttl,ipt_tcpmss,ipt_TCPMSS,iptable_mangle,ipt_multiport,ipt_limit,ipt_tos,ipt_REJECT,iptable_filter


As before, I replaced my real IP with 27.16.122.72.
[root@hn ~]# iptables -nvL
Chain INPUT (policy ACCEPT 927 packets, 78071 bytes)
 pkts bytes target     prot opt in     out     source               destination
  927 78071 PORTSEN    all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy ACCEPT 30 packets, 4722 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 839 packets, 95014 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain PORTSEN (1 references)
 pkts bytes target     prot opt in     out     source               destination


[root@hn ~]# iptables -t nat -vnL POSTROUTING
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 SNAT       all  --  *      eth0    172.16.0.0/16        0.0.0.0/0           to:27.16.122.72
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: firewall into VE and isolating eth's from the host
Next Topic: *SOLVED* VPS Tamplate: gentoo-20060317-i686-stage3
Goto Forum:
  


Current Time: Fri Jul 19 04:53:35 GMT 2024

Total time taken to generate the page: 0.02575 seconds