I'm debugging a OpenVPN site-to-site connection using UDP in netcat.
I can get packets to flow in one direction (host A->host B), but not the reverse one.
root@hosta:~# nc 10.0.3.2 1234 -u
root@hostb:~# nc -l 1234 -u
The strange thing is that, when running tcpdump
in host A, I actually see the UDP packet arriving from host B:
root@hosta:~# tcpdump port 1234
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:36:04.695423 IP hosta.46603 > 10.0.3.2.1234: UDP, length 4
17:36:06.484233 IP 10.0.3.2.1234 > hosta.46603: UDP, length 4
However, netcat doesn't output anything at all. I've tried strace
on the nc
, and nothing is even received from the socket.
What else can I do to diagnose this?