Commit 27f787e6 authored by Michaël Paulon's avatar Michaël Paulon

NoneType not iterable

parent 70d34239
......@@ -235,9 +235,11 @@ class iptables:
if not empty:
if self.verbose:
print("Filter : rule 6in4")
for i in self.interfaces_settings.get("6in4"):
self.add_in_subtable("filter4", "FORWARD",
"-i {} -o {} -p 41 -j ACCEPT".format(i[0], i[1]))
interfaces_6in4 = self.interfaces_settings.get("6in4")
if interfaces_6in4:
for i in self.interfaces_settings.get("6in4"):
self.add_in_subtable("filter4", "FORWARD",
"-i {} -o {} -p 41 -j ACCEPT".format(i[0], i[1]))
if self.verbose:
print("Filter : icmp")
self.filter_icmp()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment