Using iptables-persistent for custom rules

Mecanik

Well-Known Member
Mar 2, 2017
173
5
58
33
I'm having a really hard time trying to add and keep some custom iptables rules. Reading across several threads, iptables-persistent came to light.

With that being said I have installed it with apt-get install -y iptables-persistent and all the rules got saved into the corresponding files (/etc/iptables).

Now I have a few questions:

  • If I add some rules into the files, how do I "load" them? restart pve-firewall?
  • How do I ensure these rules are loaded upon reboot? I saw several "methods", but I want the correct one.
  • Last but not least, I assume if I make later changes to any settings inside PVE firewall GUI, I have to save them again, correct? If this is the case, it will not overwrite my previous rules?

Many thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!