raspap-webgui/api/modules/firewall.py

4 lines
184 B
Python
Raw Normal View History

2024-02-08 23:24:30 +01:00
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()