This is a simple way of logging all new outgoing TCP connections:
# iptables \
--append OUTPUT \
--match state \
--protocol tcp \
--state NEW \
-j LOG \
--log-uid
This is a simple way of logging all new outgoing TCP connections:
# iptables \
--append OUTPUT \
--match state \
--protocol tcp \
--state NEW \
-j LOG \
--log-uid