tcpdump not capturing NAT packets

Hi,

I've got OpenVPN set up on my linode to masquerade traffic in the usual fashion:

iptables –table nat --append POSTROUTING --source 192.168.24.0/24 --out-interface eth0 --jump MASQUERADE

It works fine except I cannot capture any of the packets being sent over eth0:

tcpdump -i eth0 -w traffic.eth0

It captures other tcp traffic but I cannot find any of the connections being listed by netstat-nat:

$ netstat-nat

Proto NATed Address Destination Address State

tcp 192.168.24.7:50748 38.229.70.20:irc ESTABLISHED

Any idea what's wrong?

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct