diff options
author | Devaev Maxim <[email protected]> | 2021-02-16 08:10:10 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-02-16 08:10:10 +0300 |
commit | 70fb46d4287e33d34dbf72156372a5c55cb273f7 (patch) | |
tree | 6ba474f01872e74fdcaf3d5a8a6d996e89d832ad /kvmd/apps/__init__.py | |
parent | ecdc65ceb33d3c4f7809b9c7879a717be09771c2 (diff) |
otgnet forwarding
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 557a611a..80fc82ec 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -511,6 +511,7 @@ def _get_config_scheme() -> Dict: "allow_icmp": Option(True, type=valid_bool), "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), }, @@ -527,7 +528,7 @@ def _get_config_scheme() -> Dict: "--port=0", "--dhcp-range={dhcp_ip_begin},{dhcp_ip_end},24h", "--dhcp-leasefile=/run/kvmd/dnsmasq.lease", - "--dhcp-option=3", + "--dhcp-option={dhcp_option_3}", "--dhcp-option=6", "--keep-in-foreground", ], type=valid_command), |