I want to create a custom table using iptables so that I can add my custom chains in it. But I doesn't see any option to do that. I tried to search for it but didnt found anything. Please Help.
Ubuntu – Create table in iptables
iptables
iptables
I want to create a custom table using iptables so that I can add my custom chains in it. But I doesn't see any option to do that. I tried to search for it but didnt found anything. Please Help.
Best Answer
I think you are looking for creating a chain, not a table.
Example (
-t filter
is implied):Tables can be selected with the
-t
option:And if you are using
iptables-restore
, the above two rules can be combined to: