I am using a Ubuntu machine as a NAT router. How can I find out the following:
- the ports on which the LAN machines are listening or communicating (both tcp and udp);
- which local machines have established connections with which WAN ip's on those ports;
- and the size of data that has been transfered on those ports.