Skip to content

Instantly share code, notes, and snippets.

@santigimeno
Last active January 31, 2020 10:13
Show Gist options
  • Save santigimeno/ab33a48da30e523686df59ba1938d0c4 to your computer and use it in GitHub Desktop.
Save santigimeno/ab33a48da30e523686df59ba1938d0c4 to your computer and use it in GitHub Desktop.
Activate iptables tracing
Basically follow https://www.opsist.com/blog/2015/08/11/how-do-i-see-what-iptables-is-doing.html with some modifications:
```sh
$ sudo modprobe ipt_LOG
$ sudo modprobe nf_log_ipv4
$ cat /proc/net/netfilter/nf_log
0 NONE ()
1 NONE ()
2 nf_log_ipv4 (nf_log_ipv4)
3 NONE ()
4 NONE ()
5 NONE ()
6 NONE ()
7 NONE ()
8 NONE ()
9 NONE ()
10 NONE ()
11 NONE ()
12 NONE ()
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment