alex
11-04-2015, 19:52
Originally Posted by Neil
12:09:11.113381 IP server1.xxxxxxx > 188.165.xxxxx: ICMP echo request, id 10133, seq 15, length 64
#ifconfig
eth0 Link encap:Ethernet HWaddr 0C:C4:7A:45:4C:0A
inet addr:5.196.90.nnn Bcast:5.196.90.255 Mask:255.255.255.0
inet6 addr: 2001:41d0:a:nnnn::/64 Scope:Global
inet6 addr: fe80::ec4:7aff:fe45:4c0a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3781428 errors:0 dropped:0 overruns:0 frame:0
TX packets:949556 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2263286942 (2.1 GiB) TX bytes:76179408 (72.6 MiB)
Memory:fb920000-fb93ffff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:372 errors:0 dropped:0 overruns:0 frame:0
TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18600 (18.1 KiB) TX bytes:18600 (18.1 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:257 errors:0 dropped:0 overruns:0 frame:0
TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15393 (15.0 KiB) TX bytes:8207 (8.0 KiB)
--------------
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
188.165.xxx.xxx 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
188.165.xxx.xxx 0.0.0.0 255.255.255.240 U 0 0 0 eth0
5.196.xx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 5.196.xx.254 0.0.0.0 UG 0 0 0 eth0
----------
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
Chain FORWARD (policy ACCEPT)
target prot opt source destination
SOLUSVM_TRAFFIC_IN all -- anywhere anywhere
SOLUSVM_TRAFFIC_OUT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
Chain SOLUSVM_TRAFFIC_IN (1 references)
target prot opt source destination
all -- anywhere 188.165.xxx.xxx
Chain SOLUSVM_TRAFFIC_OUT (1 references)
target prot opt source destination
all -- 188.165.xxx.xxx anywhere
# vzctl exec 101 ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1946 (1.9 KiB) TX bytes:1411 (1.3 KiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:188.165.xxx.xxx P-t-P:188.165.xxx.xxx Bcast:188.165.xxx.xxx Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1