Bill Carney's picture

I did this years ago but did not document how I did it, and unfortunately my searching hasn't come up with the answer even though I know I must have read it here (although the methodology may have changed since the time I did it).

What I need to do is add port 8080 to the list of ports Webmin listens to, and port 8008 to the ports ShellInABox listens to.  I need to do this to get around some firewall rules at my workplace.

Any suggestions?

Jeremy Davis's picture

So you just need to reconfigure and restart stunnel. Stunnel config is in /etc/stunnel/stunnel.conf

Here's the relevant config:

# grep shellinabox -A2 /etc/stunnel/stunnel.conf             
accept  = 12320
connect =
# grep webmin -A2 /etc/stunnel/stunnel.conf
accept  = 12321
connect =
So a simple sed line should do the trick:
sed -i "s|12320|8008|; s|12321|8080|" /etc/stunnel/stunnel.conf
service stunnel4 restart
And you should be good to go... :)

Add new comment