The most important thing to know when recording network traffic is the names of the used network interfaces. There is a management interface, a back-end interface, and one or more external interfaces.
- In the Airlock Gateway Configuration Center:
- The management and back-end interface can be found in the menu System Setup >> Nodes.
- The external interface can be found by selecting the corresponding virtual host in the menu Application Firewall >> Reverse Proxy.
Typical names used for interfaces are eth0
, eth1
, vmnet1
, etc. The names depend on the interface card type used. The number of interfaces may vary depending on the network setup.
To record everything received and transmitted on the interface eth1 and print ASCII content, use the following command:
To restrict the traced traffic to a certain IP address, use the following command:
To restrict the traced traffic further to a certain port, use the following command:
To trace everything except SSH traffic, use the following command:
To write traffic to a file for further analysis in another tool, use the following command:
To reduce the recorded traffic, combine filter expressions while writing the traffic to a file: