raspap-webgui-mirror/api/modules/firewall.py
2024-02-08 23:24:30 +01:00

4 lines
No EOL
184 B
Python

import subprocess
def firewall_rules():
return subprocess.run("cat /etc/raspap/networking/firewall/iptables_rules.json", shell=True, capture_output=True, text=True).stdout.strip()