by Amrita Mitra | Mar 29, 2017 | Data Breaches and Prevention, End Point Protection, Exclusive Articles, Firewall, Malware Prevention

















by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
by Amrita Mitra | October 3, 2023 | Featured, Linear Algebra | 0 Comments
Author
Ms. Amrita Mitra is an author, who has authored the books “Cryptography And Public Key Infrastructure“, “Web Application Vulnerabilities And Prevention“, “A Guide To Cyber Security” and “Phishing: Detection, Analysis And Prevention“. She is also the founder of Asigosec Technologies, the company that owns The Security Buddy.
Please follow the link below to buy The Security Buddy Premium Membership.










To save iptables rules :
# sudo iptables-save # sudo sh -c "iptables-save > /path/to/directory/iptables.rules"
To restore iptables rules :
# sudo sh -c "iptables-restore < /path/to/directory/iptables.rules"
Write the following script in a file /etc/network/if-post-down.d/iptablessave
#!/bin/sh iptables-save -c > /etc/iptables.rules if [ -f /etc/iptables.downrules ]; then iptables-restore < /etc/iptables.downrules fi exit 0
Write the following script in a file /etc/network/if-pre-up.d/iptablesload
#!/bin/sh iptables-restore < /etc/iptables.rules exit 0
Run the following commands :
# sudo chmod +x /etc/network/if-post-down.d/iptablessave # sudo chmod +x /etc/network/if-pre-up.d/iptablesload



0 Comments