Stunnel server example $ cat stunnel.conf Debug = local5.notice Cert = /etc/stunnel/secgw.pem CAPath = /etc/stunnel/employee_certificates Verify = 3 [securesquid] accept = secgw.my_company.com:9999 connect = squid.internal.my_company.com:3128 [secureweb] accept = secgw.my_company.com:443 connect = www.internal.my_company.com:80 [imaps] accept = secgw.my_company.com:993 exec = /usr/sbin/imapd execargs = imapd arg1 arg2 arg3