Thank you guys! I was able to recover the files using the mentioned PhotoRec tool! Someone suggested to make a remote sshfs the destination for the tool's output, which I did and managed to get back my files. The only thing missing is the original file names, but still much better results than I expected.

Restore/Reload Ipv4 Rules in Debian, Ubuntu, Mint, Kali. We can restore IPv4 iptables rules with the iptables-restore command from /etc/iptables/rules.v4 $ iptables-restore < /etc/iptables/rules.v4 Restore/Reload Ipv4 Rules in CentOS, Fedora, RedHat. We can restore IPv4 iptables rules with the iptables-restore command from /etc/sysconfig/iptables I am not sure that the file created by iptables-save and consumed on stdin by iptables-restore is really considered an open API for Iptables. If you want to change the file, you are probably better off using iptables itself, not modifying the dump file. – 111---Oct 24 '17 at 17:00 file - this is iptables script from iptables-save > file command. After this checks you can load rules with iptables-restore < file. iptables-restore

Jun 24, 2009 · If you add a shebang line to the top of the saved iptables file like “#!/usr/bin/env iptables-restore” and make it executable (chmod +x) you can then just execute the saved firewall rules like so ./my-firewall

Sep 28, 2017 · In our last post, we saw iptables basics, where we learned about how iptables works, what are the policies, and how to configure iptables policies.. While working on iptables, if you get confused about policies and you need to start afresh then you need to reset iptables to default settings. To automate the restore at reboot CentOS offers a system service by the same name, iptables, which needs to be enabled. sudo chkconfig iptables on Afterwards, you can simply save the current rules using the following command. sudo service iptables save iptables-restore - Unix, Linux Command - iptables-restore is used to restore IP Tables from data specified on STDIN. Use I/O redirection provided by your shell to read from a file

How to restore iptables from backup file Use below given syntax,to restore the iptables back to Linux System.In this example,we are using same iptable backup file,which we have taken in above section (i.e iptables-save > /opt/iptables.backup)

How to restore iptables from backup file Use below given syntax,to restore the iptables back to Linux System.In this example,we are using same iptable backup file,which we have taken in above section (i.e iptables-save > /opt/iptables.backup) man iptables-restore Now it remains only to automate the restore process. To do this, add the start of iptables-restore after raising one of the network interfaces. To do this, open the network configuration file /etc/network/interfaces and add rule restore to the loopback settings of the interface: Restore/Reload Ipv4 Rules in Debian, Ubuntu, Mint, Kali. We can restore IPv4 iptables rules with the iptables-restore command from /etc/iptables/rules.v4 $ iptables-restore < /etc/iptables/rules.v4 Restore/Reload Ipv4 Rules in CentOS, Fedora, RedHat. We can restore IPv4 iptables rules with the iptables-restore command from /etc/sysconfig/iptables I am not sure that the file created by iptables-save and consumed on stdin by iptables-restore is really considered an open API for Iptables. If you want to change the file, you are probably better off using iptables itself, not modifying the dump file. – 111---Oct 24 '17 at 17:00 file - this is iptables script from iptables-save > file command. After this checks you can load rules with iptables-restore < file. iptables-restore