This commit is contained in:
Konstantin Bogdanov 2024-08-26 19:27:07 +02:00
parent 13593340f2
commit df7d44bc3a
No known key found for this signature in database

View File

@ -141,7 +141,7 @@ def check_iptables_legacy():
if iptables_path is None:
print("Error: 'iptables' not found in PATH")
sys.exit(1) # Exit with error code 1
sys.exit(1)
try:
file_info = os.stat(iptables_path)
@ -164,7 +164,6 @@ def check_iptables_forward_accept(ipv6=False):
command = "ip6tables"
output = os.popen(command + "-S FORWARD").read()
# Check if the output contains '-P FORWARD ACCEPT'
if "-P FORWARD ACCEPT" not in output:
print(
f"'{command} -P FORWARD ACCEPT' is not set. This may cause issues in tests"