[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables and system reboot



>
> On 13/5/23 18:48, Tom Reed wrote:
>> How to recovery iptable rules after system rebooting?
>> I know I can put a @reboot crontab for this but there is maybe the
>> better
>> way.
>
>
> sudo apt install iptables-persistent
>
> sudo iptables-save > /etc/iptables/rules.v4
>
> sudo ip6tables-save > /etc/iptables/rules.v6
>

for iptables-save, after system rebooting, does it know where to locate
the file?

Thanks.


Reply to: