0

I'm sending http requests to a home server from a remote location. A good portion of the traffic returns in milliseconds, but 20-30% of the requests will take between 30secs and 2mins to respond. There's a decent number of iptable rules on my router which is running ubuntu linux.

If I watch the iptable logs, iptables does not log the request until shortly before the request is responded to. Is there a lower level way to evaluate what is going on here?

This only impacts http requests, low level tcp calls immediately return.

hping3 -c 3 -S -p 80 --fast a.b.c.d len=46 ip=a.b.c.d ttl=52 DF id=0 sport=80 flags=SA seq=0 win=64800 rtt=45.9 ms len=46 ip=a.b.c.d ttl=52 DF id=0 sport=80 flags=SA seq=1 win=64800 rtt=49.7 ms len=46 ip=a.b.c.d ttl=52 DF id=0 sport=80 flags=SA seq=2 win=64800 rtt=53.5 ms

More debugging, I'm seeing significant packet loss (10-100%) when using ping, but hping3 has ~0% packet loss.

tcpdump shows interesting logs where it's failing to connect to DNS server

19:26:05.850841 IP {homeip} > 1.1.1.1: ICMP {homeip} udp port 50272 unreachable, length 128
1
  • I find it funny that I posted this in stackoverflow, they said to post it here which was then closed and said to post back in stackoverflow.
    – Drew
    yesterday