0

I'm facing an issue where I have to control the output of iptables-save.

It look like the table's order (*filter, *nat) output is kinda random.

For exemple here we have filter table in first, but we can also have nat tables in some cases :

iptables-save
*filter
//rules
COMMIT

*nat
//rules
COMMIT 

Is is possible with an argument on the iptables-save command to have the filter table in the first position in the output everytime ?

1
  • This looks like an XY problem. If you explained why you're asking this maybe even other solutions would be available.
    – A.B
    Apr 7, 2023 at 23:33

0

You must log in to answer this question.

Browse other questions tagged .