How to get current IPTABLES NAT record-list?
Hi all,
I remember I could use "IPCHAINS -M" to see how many NAT records are being used. When I turn to use IPTABLES, I cannot find this function. Please tell me how to do this, thank you. I wanna know-- 1. How many NAT records are currently used? 2. Can I get that record list? fish |
As far as I know there isn't an equivalent function in iptables. The connections which are being kept track of should be stored in /proc/net/ip_conntrack. I wrote a simple script which displays it in a more readable form. It was just a quick script which I put together so I'm not sure if it works in all situations but it works for me. It displays all the 192.168.* connections.
Code:
#!/bin/sh |
All times are GMT -5. The time now is 09:59 PM. |