Artix Linux Forum

Artix Linux => System => Topic started by: Surf3r on 10 October 2022, 00:29:32

Title: Networking, iptables mangle, how to make persistent
Post by: Surf3r on 10 October 2022, 00:29:32
Need to make iptables mangle persistent after reboot, Is there any way? See example bellow:

Code: [Select]
iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP

Tried to save this rule but mangle table still get reset. How this can be tested? See more here (https://javapipe.com/blog/iptables-ddos-protection/) see chapter 3

Some rules are server specific but some rules from the article above ca be useful on a linux client. So how this mangle table can be persistent? Haven't found any reliable guide.