LINUX.ORG.RU

История изменений

Исправление bredis, (текущая версия) :

Добавил

iptables -t nat -A POSTROUTING -o ens3 -d 192.168.100.10 -j SNAT --to 192.168.101.1
, но не работает. Пинги не идут.

Не могу понять вот этого поведения

root@ns:~# ping 192.168.100.10
PING 192.168.100.10 (192.168.100.10) 56(84) bytes of data.
^C
--- 192.168.100.10 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 28ms

root@ns:~# ping 192.168.100.253
PING 192.168.100.253 (192.168.100.253) 56(84) bytes of data.
64 bytes from 192.168.100.253: icmp_seq=1 ttl=63 time=0.800 ms
64 bytes from 192.168.100.253: icmp_seq=2 ttl=63 time=0.819 ms
^C
--- 192.168.100.253 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 0.800/0.809/0.819/0.030 ms
root@ns:~# ping 192.168.100.254
PING 192.168.100.254 (192.168.100.254) 56(84) bytes of data.
64 bytes from 192.168.100.254: icmp_seq=1 ttl=64 time=0.687 ms
64 bytes from 192.168.100.254: icmp_seq=2 ttl=64 time=0.648 ms
^C
--- 192.168.100.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 23ms
rtt min/avg/max/mdev = 0.648/0.667/0.687/0.032 ms
root@ns:~#
2 хоста пингуются с сервера, а 100.10 нет.

Исходная версия bredis, :

Добавил

iptables -t nat -A POSTROUTING -o ens3 -d 192.168.100.10 -j SNAT --to 192.168.101.1
, но не работает. Пинги не идут.