Initial release: Billing infrastructure automation (IP manager).

This commit is contained in:
2026-04-08 15:35:23 +03:00
commit 897d5a0d36
5 changed files with 511 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# ip_manager.conf - Configuration for IPSET Management Script
# --- IPSET Sets ---
# Set for active customers with Internet access
ALLOW_SET="allowed_customers_nets"
# Set for customers redirected to the captive portal (no payment)
RESTRICT_SET="restricted_customers_nets"
# --- Paths & Binaries ---
LOG_DIR="/var/log/ip-manager"
LOG_FILE="${LOG_DIR}/ip-manager.log"
IPSET_SAVE_FILE="/etc/iptables/ipsets"
LOCK_FILE="/tmp/ip-manager.lock"
# --- Notifications ---
# Email to receive lock timeout warnings
MAIL_RECEIVER="support@your-isp.net"
# --- Safety Settings ---
LOCK_TIMEOUT=300
# Set to 0 for production, 1 for testing
DRY_RUN=1