Examples of TCP Wrapper service names for stunnel
Stunnel can use TCP Wrappers to determine if connections
should be allowed. How you specify the TCP Wrapper
service name differs depending on which version of
Stunnel you are using.
- Stunnel-4.x
- The service name is specified by the text you put inside the brackets
in your configuration file, ala
[imaps]
arg1=value1
arg2=value2
...
In this case the TCP Wrapper service name is imaps
- Stunnel-3.x and earlier
- The most recent version of Stunnel-3.x have a
-N servicename
option which you should use to explicitly set the service name.
If you do not specify one, then it will pick one for you automatically
based on the rules found here.
However, sometimes a chart is easier, so here's a list
of potential arguments and the service name Stunnel
will use in each case.
stunnel command | TCP Wrapper service name |
---|
stunnel ... -r http | http |
stunnel ... -r www:http | www.http |
stunnel ... -l /usr/bin/ipop3d | ipop3d |
stunnel ... -l /bin/cat -- cat /etc/motd | cat |
stunnel ... -l /bin/cat -- motd /etc/motd | motd |
Stunnel will print out the TCP Wrapper service name in the debugging
output, so if you're not sure what it uses, check the logs.
|