I followed the instruction:
The program is installed as standard with many Linux distributions, or can be downloaded from www.stunnel.org
and compiled for your system.
Create a new tunnel
Use Webmin's SSL Tunnels module to create a new tunnel on port 10001 called ssl-webmin that uses the Connect to remote host mode to connects to localhost port 10000 (assuming you are running Webmin on port 10000).
The SSL certificate and key file option should be set to Use Webmin's cert, and all of the other options left as their defaults.
Activate the tunnel
Hit the Apply Changes button in the SSL Tunnels module to activate your new tunnel.
Configure Webmin so that it knows about the SSL tunnel
Added the line inetd_ssl=1 to /etc/webmin/miniserv.conf and run /etc/webmin/stop ; /etc/webmin/start.
Login to Webmin in SSL mode
You should now be able to connect to https://yourhostname:10001/
and login as normal. The old URL on port 10000 will no longer work properly.
My config is as following:
Service name TCP port Active? Tunnel destination
ssl-webmin 10001 Yes Connect to host localhost.localdomain:10000
and I connecting with the router, opened the port 10001 for the stunnel. but it is not sucess!!
What wrong I did?