Skip to content

Instantly share code, notes, and snippets.

@dtatulea
Created April 15, 2016 13:35
Show Gist options
  • Save dtatulea/dad10867ea33acdf1939f10999551385 to your computer and use it in GitHub Desktop.
Save dtatulea/dad10867ea33acdf1939f10999551385 to your computer and use it in GitHub Desktop.
[vagrant@f23t vagrant]$ cat test.nft
#! @sbindir@nft -f
table ip connman {
chain nat-prerouting {
type nat hook prerouting priority 0;
}
chain nat-postrouting {
type nat hook postrouting priority 0;
}
chain filter-output {
type filter hook output priority 0;
}
}
[vagrant@f23t vagrant]$ sudo nft -f test.nft
[vagrant@f23t vagrant]$ sudo nft list tables
table ip connman
[vagrant@f23t vagrant]$ sudo nft list chains
table ip connman {
chain nat-prerouting {
type nat hook prerouting priority 0; policy accept;
}
chain nat-postrouting {
type nat hook postrouting priority 0; policy accept;
}
chain filter-output {
type filter hook output priority 0; policy accept;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment