VNCmux is a simple VNC multiplexer service.
- libvncserver
On *buntu/Debian distros use sudo apt install git build-essential libvncserver-dev
to install the dependencies.
Use make
to build vncmux
Usage: ./vncmux [-w <width>] [-h <height>] [-r <update rate>] [-l <listen port>] <vnc host> <port>
Options:
-w <width> Width of drawing surface in pixels (default: 1920)
-h <height> Height of drawing surface in pixels (default: 1080)
-r <update rate> VNC update rate in Hz (default: 60)
-l <listen port> Port to listen on (default: 5901)
-? Show this help
VNCmux can be used infront of other VNC servers to improve performance and stability of downstream applications. For this type of scenario the downstream application is configured to serve their VNC server via a non-standart port, for example 6000. Then external access to that port is disallowed. Finally vncmux is started to serve a VNC server on the standard port.
iptables -I INPUT 1 --proto tcp --dport 6000 -j REJECT
ip6tables -I INPUT 1 --proto tcp --dport 6000 -j REJECT
vncmux -l 5900 127.0.0.1 6000