Answer the question
In order to leave comments, you need to log in
Why doesn't autoloading iptables ubuntu iptables-restore rules work?
After each restart of the system, network settings are reset,
I used the command ( iptables-save > /home/linux/Vlad/iptables3.backup )
and then wrote in ( interfaces ) ( iptables-restore < /home/linux/Vlad/iptables3.backup )
that I could do it wrong or what other options are there?
Answer the question
In order to leave comments, you need to log in
The parenthesis in the team with participation iptables-restore
is superfluous - just iptables-restore /home/linux/Vlad/iptables3.backup
try it.
In /etc/network/if-pre-up.d/ , create a file with the code below, change ownership to root, and set the startup flag.
#!/bin/bash
/sbin/iptables-restore < /home/linux/Vlad/iptables3.backup
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question