Red Hat Bugzilla – Bug 43640
netstat -M breaks when using iptables
Last modified: 2015-03-04 20:09:09 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2001-05-19 i686; en-US;
Description of problem:
When I switched from ipchains to iptables, netstat -M stopped working.
This functionality was previously duplicated with "ipfwadm -M -l" and
"ipchains -M -L". It appears that iptables has no such functionality.
Steps to Reproduce:
1. Use iptables for IP Masquerading
2. Run "netstat -M"
Actual Results: netstat: no support for `ip_masquerade' on this system.
Expected Results: netstat should have listed the current IPMasqurading
I realize that this bug may be due to the new netfilter code in kernel 2.4,
but I think that the complete loss of "netstat -M" functionality is
*** Bug 54824 has been marked as a duplicate of this bug. ***
This is still true with RHL 7.3
This is still broken in RHL 8.0
Unfortunately net-tools hasen't been maintained for over 2 years upstream, so
netstat doesn't support iptables in that respect.
What you can always do is to this:
and whenever you need the info do:
Hope this helps,
Read ya, Phil