You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ htb lab import
[!] failed to import vpn configuration
[!] tip: try importing the config manually and fixing any network manager issues:
nmcli connection import type openvpn file {your-ovpn-file}
[!] nmcli stderr output:
Error: failed to import '/tmp/tmp4i7m9rfu': The file to be imported wasn’t a valid OpenVPN client configuration.
Inspecting the temp openvpn file, it appears as empty which is why the import is failing.
The text was updated successfully, but these errors were encountered:
Daviey
added a commit
to Daviey/python-htb
that referenced
this issue
Nov 27, 2020
Previously, the command `htb lab import` would fail. This is because it
was writing an empty file, as the write() would be buffered and not
flush to file before the `nmcli` import was called.
This change explicitly calls flush() to commit the changes to the file,
meaning the contents is written to the file.
Fixes: calebstewart#6
Signed-off-by: Dave Walker (Daviey) <[email protected]>
Inspecting the temp openvpn file, it appears as empty which is why the import is failing.
The text was updated successfully, but these errors were encountered: