OpenVZ Forum


Home » General » Support » *SOLVED* NAT doesn't seem to work
Re: NAT doesn't seem to work [message #4999 is a reply to message #4998] Tue, 08 August 2006 02:09 Go to previous messageGo to previous message
duswil is currently offline  duswil
Messages: 77
Registered: January 2006
Member
[root@hn net]# cat /proc/sys/net/ipv4/conf/eth0/proxy_arp
0


[root@hn net]# cat /proc/sys/net/ipv4/conf/venet0/proxy_arp
0


[root@hn net]# cat /proc/sys/net/ipv4/conf/all/proxy_arp
0


[root@hn net]# 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


[root@hn net]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.2.1      *               255.255.255.255 UH    0      0        0 venet0
172.16.4.1      *               255.255.255.255 UH    0      0        0 venet0
172.16.2.2      *               255.255.255.255 UH    0      0        0 venet0
27.16.122.129   *               255.255.255.255 UH    0      0        0 venet0
27.16.122.128   *               255.255.255.255 UH    0      0        0 venet0
27.16.122.131   *               255.255.255.255 UH    0      0        0 venet0
27.16.122.130   *               255.255.255.255 UH    0      0        0 venet0
172.16.1.1      *               255.255.255.255 UH    0      0        0 venet0
172.16.3.1      *               255.255.255.255 UH    0      0        0 venet0
172.16.3.3      *               255.255.255.255 UH    0      0        0 venet0
27.16.122.134   *               255.255.255.255 UH    0      0        0 venet0
27.16.122.0     *               255.255.255.192 U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         27.16.122.1     0.0.0.0         UG    0      0        0 eth0


[root@hn ~]# cd /proc/sys/net/ipv4/conf
[root@hn conf]# for i in */*; do echo $i; cat $i; done
all/accept_redirects
0
all/accept_source_route
0
all/arp_announce
0
all/arp_filter
0
all/arp_ignore
0
all/bootp_relay
0
all/disable_policy
0
all/disable_xfrm
0
all/force_igmp_version
0
all/forwarding
1
all/log_martians
0
all/mc_forwarding
0
all/medium_id
0
all/proxy_arp
0
all/rp_filter
0
all/secure_redirects
1
all/send_redirects
0
all/shared_media
1
all/tag
0
default/accept_redirects
1
default/accept_source_route
0
default/arp_announce
0
default/arp_filter
0
default/arp_ignore
0
default/bootp_relay
0
default/disable_policy
0
default/disable_xfrm
0
default/force_igmp_version
0
default/forwarding
1
default/log_martians
0
default/mc_forwarding
0
default/medium_id
0
default/proxy_arp
0
default/rp_filter
1
default/secure_redirects
1
default/send_redirects
1
default/shared_media
1
default/tag
0
eth0/accept_redirects
1
eth0/accept_source_route
0
eth0/arp_announce
0
eth0/arp_filter
0
eth0/arp_ignore
0
eth0/bootp_relay
0
eth0/disable_policy
0
eth0/disable_xfrm
0
eth0/force_igmp_version
0
eth0/forwarding
1
eth0/log_martians
0
eth0/mc_forwarding
0
eth0/medium_id
0
eth0/proxy_arp
0
eth0/rp_filter
1
eth0/secure_redirects
1
eth0/send_redirects
1
eth0/shared_media
1
eth0/tag
0
lo/accept_redirects
1
lo/accept_source_route
0
lo/arp_announce
0
lo/arp_filter
0
lo/arp_ignore
0
lo/bootp_relay
0
lo/disable_policy
0
lo/disable_xfrm
0
lo/force_igmp_version
0
lo/forwarding
1
lo/log_martians
0
lo/mc_forwarding
0
lo/medium_id
0
lo/proxy_arp
0
lo/rp_filter
1
lo/secure_redirects
1
lo/send_redirects
1
lo/shared_media
1
lo/tag
0
venet0/accept_redirects
1
venet0/accept_source_route
0
venet0/arp_announce
0
venet0/arp_filter
0
venet0/arp_ignore
0
venet0/bootp_relay
0
venet0/disable_policy
0
venet0/disable_xfrm
0
venet0/force_igmp_version
0
venet0/forwarding
1
venet0/log_martians
0
venet0/mc_forwarding
0
venet0/medium_id
0
venet0/proxy_arp
0
venet0/rp_filter
1
venet0/secure_redirects
1
venet0/send_redirects
0
venet0/shared_media
1
venet0/tag
0


[root@hn ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:0C:83:4A:90
          inet addr:27.16.122.72  Bcast:27.16.122.108  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:386 errors:0 dropped:0 overruns:0 frame:0
          TX packets:387 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41379 (40.4 KiB)  TX bytes:46938 (45.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:417 errors:0 dropped:0 overruns:0 frame:0
          TX packets:417 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36545 (35.6 KiB)  TX bytes:36545 (35.6 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2029 (1.9 KiB)  TX bytes:1901 (1.8 KiB)

[Updated on: Tue, 08 August 2006 02:42]

Report message to a moderator

 
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: Thu Jul 24 21:58:56 GMT 2025

Total time taken to generate the page: 0.35885 seconds