Commit 587f6d62 authored by Xavier Thompson's avatar Xavier Thompson

slapformat: Remove useless tun route configuration

parent b0100fa6
...@@ -959,8 +959,6 @@ class Tun(Tap): ...@@ -959,8 +959,6 @@ class Tun(Tap):
else: else:
raise RuntimeError("Cannot setup address on interface {}. " raise RuntimeError("Cannot setup address on interface {}. "
"Address is missing.".format(self.name)) "Address is missing.".format(self.name))
# create routes
super(Tun, self).createRoutes()
# add iptables rule to accept connections from this interface # add iptables rule to accept connections from this interface
chain_rule = ['INPUT', '-i', self.name, '-j', 'ACCEPT'] chain_rule = ['INPUT', '-i', self.name, '-j', 'ACCEPT']
code, _ = callAndRead(['iptables', '-C'] + chain_rule, raise_on_error=False) code, _ = callAndRead(['iptables', '-C'] + chain_rule, raise_on_error=False)
......
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