stunnel can be run as a non-root user (assuming that it doesn’t try to write anything to privileged places 2, or open some privileged ports), but there is a better way to do it:Īccording to the stunnel author, with the planned introduction of a control interface (conceptually similar to apache2ctl), running separate processes for each *.conf will become obsolete. Note that in this example, we are running stunnel as root. Stunnel can be manually called with the config file as its argument and it will work.įor example, assuming the file is located at /etc/stunnel/nf, the following command would run it: 1 sudo stunnel /etc/stunnel/nf Moreover, couple of scripts are included in the package to deal with the ppp connections (to handle ppp status changes gracefully by restarting the stunnel process). The installation process also comes with its own stunnel4 user, init script, and logrotate config (which we’ll take advantage of soon). We’ll be using Ubuntu’s own repository: sudo sh -c 'apt-get update & apt-get install stunnel4' Please share your results with me so I can update this post. There is a good chance however that the same procedure (maybe with slight adjustments), could work on other Ubuntu versions (or even other distros) as well. UBUNTU TEST STUNNEL CONNECTION HOW TOThis post is dedicated to show you how to properly install and configure this magnificent piece of software on Ubuntu.įor this, I’ll be using Ubuntu 18.04 Server. We all know how awesome stunnel is, but setting it up properly on Ubuntu (and on most other distros, really), can be a little tricky.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |