Skip to contentSkip to conversation

newbie question: log all packets to closed ports?

DISCUSSION Xin Huang 1 participant 1 message Mar 17, 2009

lore
Share & tools
lore

Xin Huang

author
#0 lore raw

I just tried iptables on my Linux box. It's working great. Now I want to use it to log any incoming TCP/UDP packets to any closed ports (not binded to any socket). How should I write the rules?

The server applications running on my Linux box are VOIP related and have TCP/UDP ports dynamically opened and closed. Is it possible to write some simple iptables rules to monitor those unwanted incoming packets destined to all the closed ports?

Thanks!