diff options
author | Devaev Maxim <[email protected]> | 2020-10-10 16:44:56 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-10 16:44:56 +0300 |
commit | 6226e942d8e81c2551e9b848386e3ff702854664 (patch) | |
tree | 19a45263de55ae75451d8daaa274939580ad1d77 /kvmd/apps/otgnet/__init__.py | |
parent | f6ea1eda45346b248910f4b032666d583b6c4386 (diff) |
dhcp fix
Diffstat (limited to 'kvmd/apps/otgnet/__init__.py')
-rw-r--r-- | kvmd/apps/otgnet/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/otgnet/__init__.py b/kvmd/apps/otgnet/__init__.py index e28a5a21..d15f0a09 100644 --- a/kvmd/apps/otgnet/__init__.py +++ b/kvmd/apps/otgnet/__init__.py @@ -91,7 +91,6 @@ class _Service: # pylint: disable=too-many-instance-attributes ctls: List[BaseCtl] = [ CustomCtl(self.__pre_start_cmd, self.__post_stop_cmd, placeholders), IfaceUpCtl(self.__ip_cmd, netcfg.iface), - IptablesDropAllCtl(self.__iptables_cmd, netcfg.iface), *[ IptablesAllowPortCtl(self.__iptables_cmd, netcfg.iface, port, tcp) for (port, tcp) in [ @@ -99,6 +98,7 @@ class _Service: # pylint: disable=too-many-instance-attributes *zip(self.__allow_udp, itertools.repeat(False)), ] ], + IptablesDropAllCtl(self.__iptables_cmd, netcfg.iface), IfaceAddIpCtl(self.__ip_cmd, netcfg.iface, f"{netcfg.iface_ip}/{netcfg.net_prefix}"), CustomCtl(self.__post_start_cmd, self.__pre_stop_cmd, placeholders), ] |