qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 day agoPeak securitylemmy.worldimagemessage-square88fedilinkarrow-up1968arrow-down18file-text
arrow-up1960arrow-down1imagePeak securitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 day agomessage-square88fedilinkfile-text
minus-squarepiefood@feddit.onlinelinkfedilinkEnglisharrow-up64·1 day agoBefore you make a change, do this in a screen-session: sleep 300 && iptables-restore old_fw_rules.bak
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up7·21 hours agouser permissions is a debian thing now?
minus-squareItdidnttrickledown@lemmy.worldlinkfedilinkarrow-up6·20 hours agoA long time ago, Debian 8 or so it was a bug with Debian. Something about the command running without root despite the sudo command.
minus-squareItdidnttrickledown@lemmy.worldlinkfedilinkarrow-up5·21 hours agoYeah except it would be iptables-restore < old_fw_rules.bak
minus-squarepiefood@feddit.onlinelinkfedilinkEnglisharrow-up9·edit-220 hours 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!
minus-squareItdidnttrickledown@lemmy.worldlinkfedilinkarrow-up4·20 hours agoIt wasn’t always that way. At one time you had to so I still do.
minus-squarepiefood@feddit.onlinelinkfedilinkEnglisharrow-up4·17 hours agoTotally! I still catch myself doing that sometimes. Old habits die hard
Before you make a change, do this in a screen-session:
sleep 300 && iptables-restore old_fw_rules.bak
permission denied
fuuuu
Found the debian user.
user permissions is a debian thing now?
A long time ago, Debian 8 or so it was a bug with Debian. Something about the command running without root despite the sudo command.
Yeah except it would be iptables-restore < old_fw_rules.bak
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!
It wasn’t always that way. At one time you had to so I still do.
Totally! I still catch myself doing that sometimes. Old habits die hard