вешаем в одном окне tcpdump
myip=`ip a | grep "inet " | grep -v 127.0.0 | awk '{print $2}'| cut -d'/' -f1 `; tcpdump -c 5 -i any port 80 and net 195.82.146.0/24 |sed s/$myip/myip/g
во втором делаем
wget -T2 --tries=2
http://bt.t-ru.org/
Соотв выводы:
от wget
wget -T2 --tries=2
http://bt.t-ru.org/
--2017-10-28 13:41:20--
http://bt.t-ru.org/
Resolving bt.t-ru.org (bt.t-ru.org)... 195.82.146.120
Connecting to bt.t-ru.org (bt.t-ru.org)|195.82.146.120|:80... failed: Connection timed out.
Retrying.
--2017-10-28 13:41:23-- (try: 2)
http://bt.t-ru.org/
Connecting to bt.t-ru.org (bt.t-ru.org)|195.82.146.120|:80... failed: Connection timed out.
Giving up.
от tcpdump
13:42:34.225843 IP myip.53550 > bt.rutr.life.http: Flags [S], seq 1786518736, win 29200, options [mss 1460,sackOK,TS val 18265993 ecr 0,nop,wscale 7], length 0
13:42:35.245515 IP myip.53550 > bt.rutr.life.http: Flags [S], seq 1786518736, win 29200, options [mss 1460,sackOK,TS val 18266248 ecr 0,nop,wscale 7], length 0
13:42:37.226973 IP myip.53552 > bt.rutr.life.http: Flags [S], seq 2494891616, win 29200, options [mss 1460,sackOK,TS val 18266743 ecr 0,nop,wscale 7], length 0
13:42:38.253587 IP myip.53552 > bt.rutr.life.http: Flags [S], seq 2494891616, win 29200, options [mss 1460,sackOK,TS val 18267000 ecr 0,nop,wscale 7], length 0
13:42:50.593026 IP myip.53554 > bt.rutr.life.http: Flags [S], seq 3355866329, win 29200, options [mss 1460,sackOK,TS val 18270084 ecr 0,nop,wscale 7], length 0
если запросить
wget -T2 --tries=2
http://rutr.life/
--2017-10-28 13:43:58--
http://rutr.life/
Resolving rutr.life (rutr.life)... 195.82.146.214, 2a02:4680:22::214
Connecting to rutr.life (rutr.life)|195.82.146.214|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location:
https://rutr.life/forum/index.php [following]
--2017-10-28 13:43:58--
https://rutr.life/forum/index.php
Reusing existing connection to rutr.life:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’
index.html [ <=> ] 159.74K 384KB/s in 0.4s
2017-10-28 13:43:59 (384 KB/s) - ‘index.html’ saved [163570]
соотв пакеты тоже нормально бегают
myip=`ip a | grep "inet " | grep -v 127.0.0 | awk '{print $2}'| cut -d'/' -f1 `; tcpdump -c 5 -i any port 80 and net 195.82.146.0/24 |sed s/$myip/myip/g
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
5 packets captured
109 packets received by filter
0 packets dropped by kernel
13:43:58.556445 IP myip.39844 > rutr.life.http: Flags [S], seq 3358845959, win 29200, options [mss 1460,sackOK,TS val 18287075 ecr 0,nop,wscale 7], length 0
13:43:58.625497 IP rutr.life.http > myip.39844: Flags [S.], seq 1123870384, ack 3358845960, win 14600, options [mss 1400,nop,wscale 8], length 0
13:43:58.625604 IP myip.39844 > rutr.life.http: Flags [.], ack 1, win 229, length 0
13:43:58.625853 IP myip.39844 > rutr.life.http: Flags [P.], seq 1:141, ack 1, win 229, length 140: HTTP: GET / HTTP/1.1
13:43:58.694785 IP rutr.life.http > myip.39844: Flags [.], ack 141, win 62, length 0