minus-squarepiefood@feddit.onlinetoProgrammer Humor@programming.dev•Peak securitylinkfedilinkEnglisharrow-up1·edit-222 days agoFun fact: When you do iptables-save, you have to redirect the output if you want to save it to a file. But when you use iptables-restore, you don’t need to pipe it back in, you can just use the filename! linkfedilink
minus-squarepiefood@feddit.onlinetoProgrammer Humor@programming.dev•Peak securitylinkfedilinkEnglisharrow-up0·22 days agoBefore you make a change, do this in a screen-session: sleep 300 && iptables-restore old_fw_rules.bak linkfedilink
Fun fact: When you do iptables-save, you have to redirect the output if you want to save it to a file. But when you use iptables-restore, you don’t need to pipe it back in, you can just use the filename!