diff options
-rw-r--r-- | configs/os/services/kvmd-otgnet.service | 2 | ||||
-rw-r--r-- | kvmd/apps/__init__.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/configs/os/services/kvmd-otgnet.service b/configs/os/services/kvmd-otgnet.service index 9ee278d5..3c124ed9 100644 --- a/configs/os/services/kvmd-otgnet.service +++ b/configs/os/services/kvmd-otgnet.service @@ -1,6 +1,8 @@ [Unit] Description=Pi-KVM - OTG network service After=kvmd-otg.service +Wants=network-pre.target +After=network-pre.target [Service] Type=oneshot diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index c807858f..1e54dfa3 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -529,7 +529,7 @@ def _get_config_scheme() -> Dict: "allow_tcp": Option([], type=valid_ports_list), "allow_udp": Option([67], type=valid_ports_list), "forward_iface": Option("", type=valid_stripped_string), - "iptables_cmd": Option(["/usr/bin/iptables"], type=valid_command), + "iptables_cmd": Option(["/usr/bin/iptables", "--wait=5"], type=valid_command), }, "commands": { |