cscg ist super

This commit is contained in:
2026-04-10 03:31:12 +02:00
parent 7a9dfeda60
commit db0324c43d
99 changed files with 92358 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
iptables = []
ipset = []
# [...]
with open("iptables.save", "w") as fd:
fd.write("""*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]""")
fd.write("\n".join(iptables))
fd.write("\nCOMMIT")
with open("ipset.save", "w") as fd:
for ipset in ipsets:
fd.write(f"create {ipset} hash:ip family inet hashsize 1024 maxelem 65536 bucketsize 12 initval 0x{os.urandom(4).hex()}\n")