I think you could set up a cgi to use sudo, and have shutdown as the only command that can be run. check into the sudo manpage, and there's some sudo info on openbsd.org
Also, in your map line, I would do
portmap tcp/udp 1025:65000
just for good measure. 1000 is generally not a good number to map, because reserved ports go up to 1024.
a line like
rdr <interface> <external IP>/32 port 5900 -> <internal IP of VNC SERVER> port 5900 tcp
example:
rdr rl0 212.123.44.34/32 port 5900 -> 192.168.0.4 port 5900 tcp
hope it helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.