Skip to content

vkill/ipsets-persistent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ipsets-persistent

init.d script for iptables-persistent on Debian/Ubuntu that also saves/loads ipsets

I added checking for and saving ipsets. sets are saved in the same place as the other rules in a file named rules.ipset. Rules are only saved if they are defined, same with flushing and loading. Instead of checking to see if ipset is installed on the load, I just check for the rules.ipset file, since if that doesn't exist loading does't make sense. There might be better ways to do it, feel free to submit a pull etc. this is just the way I made it work for me.

Added 10-ipset, which goes into /usr/share/netfilter-persistent/plugins.d/ to enable ipsets for the newer netfilter-presistent on Debian Jessie

About

init.d script for iptables-persistent on Debian/Ubuntu that also saves/loads ipsets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%