LINUX.ORG.RU

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

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

Норм.

ping -l 192.168.18.1 192.168.1.68
PING 192.168.1.68 (192.168.1.68) 56(84) bytes of data.
64 bytes from 192.168.1.68: icmp_seq=1 ttl=63 time=46.9 ms
64 bytes from 192.168.1.68: icmp_seq=2 ttl=63 time=47.1 ms
64 bytes from 192.168.1.68: icmp_seq=3 ttl=63 time=47.2 ms
64 bytes from 192.168.1.68: icmp_seq=4 ttl=63 time=47.7 ms
64 bytes from 192.168.1.68: icmp_seq=5 ttl=63 time=47.7 ms
64 bytes from 192.168.1.68: icmp_seq=6 ttl=63 time=48.0 ms
64 bytes from 192.168.1.68: icmp_seq=7 ttl=63 time=47.7 ms
64 bytes from 192.168.1.68: icmp_seq=8 ttl=63 time=52.8 ms
64 bytes from 192.168.1.68: icmp_seq=9 ttl=63 time=51.8 ms
64 bytes from 192.168.1.68: icmp_seq=10 ttl=63 time=51.7 ms
64 bytes from 192.168.1.68: icmp_seq=11 ttl=63 time=51.8 ms
64 bytes from 192.168.1.68: icmp_seq=12 ttl=63 time=51.9 ms
64 bytes from 192.168.1.68: icmp_seq=13 ttl=63 time=51.9 ms


Это на gre

22:09:59.884500 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 1, length 64
22:09:59.884511 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 2, length 64
22:09:59.884515 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 3, length 64
22:09:59.884519 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 4, length 64
22:09:59.884531 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 5, length 64
22:09:59.884535 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 6, length 64
22:09:59.931430 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 1, length 64
22:09:59.931658 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 2, length 64
22:09:59.931757 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 3, length 64
22:09:59.932248 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 4, length 64
22:09:59.932325 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 5, length 64
22:09:59.932632 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 6, length 64
22:10:00.885816 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 7, length 64
22:10:00.933562 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 7, length 64
22:10:01.886769 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 8, length 64
22:10:01.939553 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 8, length 64
22:10:02.887789 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 9, length 64
22:10:02.939561 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 9, length 64
22:10:03.887783 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 10, length 64
22:10:03.939556 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 10, length 64

iptables --list -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination    

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

Норм.

ping -l 192.168.18.1 192.168.1.68
PING 192.168.1.68 (192.168.1.68) 56(84) bytes of data.
64 bytes from 192.168.1.68: icmp_seq=1 ttl=63 time=46.9 ms
64 bytes from 192.168.1.68: icmp_seq=2 ttl=63 time=47.1 ms
64 bytes from 192.168.1.68: icmp_seq=3 ttl=63 time=47.2 ms
64 bytes from 192.168.1.68: icmp_seq=4 ttl=63 time=47.7 ms
64 bytes from 192.168.1.68: icmp_seq=5 ttl=63 time=47.7 ms
64 bytes from 192.168.1.68: icmp_seq=6 ttl=63 time=48.0 ms
64 bytes from 192.168.1.68: icmp_seq=7 ttl=63 time=47.7 ms
64 bytes from 192.168.1.68: icmp_seq=8 ttl=63 time=52.8 ms
64 bytes from 192.168.1.68: icmp_seq=9 ttl=63 time=51.8 ms
64 bytes from 192.168.1.68: icmp_seq=10 ttl=63 time=51.7 ms
64 bytes from 192.168.1.68: icmp_seq=11 ttl=63 time=51.8 ms
64 bytes from 192.168.1.68: icmp_seq=12 ttl=63 time=51.9 ms
64 bytes from 192.168.1.68: icmp_seq=13 ttl=63 time=51.9 ms


Это на gre

22:09:59.884500 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 1, length 64
22:09:59.884511 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 2, length 64
22:09:59.884515 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 3, length 64
22:09:59.884519 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 4, length 64
22:09:59.884531 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 5, length 64
22:09:59.884535 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 6, length 64
22:09:59.931430 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 1, length 64
22:09:59.931658 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 2, length 64
22:09:59.931757 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 3, length 64
22:09:59.932248 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 4, length 64
22:09:59.932325 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 5, length 64
22:09:59.932632 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 6, length 64
22:10:00.885816 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 7, length 64
22:10:00.933562 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 7, length 64
22:10:01.886769 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 8, length 64
22:10:01.939553 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 8, length 64
22:10:02.887789 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 9, length 64
22:10:02.939561 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 9, length 64
22:10:03.887783 IP 192.168.17.1 > 192.168.1.68: ICMP echo request, id 13982, seq 10, length 64
22:10:03.939556 IP 192.168.1.68 > 192.168.17.1: ICMP echo reply, id 13982, seq 10, length 64