mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 23:45:56 +03:00
[GH-ISSUE #95] vnc listens on 0.0.0.0 #66
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xdtianyu on GitHub (Mar 21, 2016).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/95
Machines created by
webvirtcloudandwebvirtmgris settingvnclisten on0.0.0.0, I think it's not safe.I have modified
vrtManager/create.pyfromto
But it seems
noVncis not working withvnclisten on127.0.0.1, I'm using socket connection, so I modifiedconsole/webvirtmgr-consoleandconsole/novncdfromto
and everything works fine. Is this a bug or something designed on purpose?
@nitmir commented on GitHub (May 3, 2016):
The main problem I tkink is that there is no VNC password by default, so anyone can connect to the VM VNC.
As long that no password is defined for the VNC connection, I think VNC should only listen locally and preferably to a unix socket where only novnc console (with token auth) has access.
If the user set a VNC password later, then
webvirtcloudorwebvirtmgrcan bind VNC to 0.0.0.0.@nitmir commented on GitHub (May 8, 2016):
Hum, I think that the best solution is maybe to add a field
vnc_default_bind_addressto the model classComputewith default value0.0.0.0for TCP and TLS connections and127.0.0.1with SSH connection and Local Socket, and let users choose their default bind address on a by hypervisor basis.Any thought ?