Advertisement
HunterZ

stunnel.conf

Jun 4th, 2013
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Sample stunnel configuration file by Michal Trojnara 2002-2009
  2. ;
  3. ; some options used here may not be adequate for your particular configuration
  4. ; please read the manual and make sure you understand them
  5.  
  6. ; certificate/key is needed in server mode and optional in client mode
  7. cert = /opt/etc/stunnel/stunnel.pem
  8. key = /opt/etc/stunnel/stunnel.pem
  9.  
  10. ; protocol version (all, SSLv2, SSLv3, TLSv1)
  11. sslVersion = all
  12.  
  13. ; security enhancements for UNIX systems - comment them out on Win32
  14. ; for chroot a copy of some devices and files is needed within the jail
  15. ;chroot = /opt/var
  16. ;setuid = nobody
  17. ;setgid = nobody
  18. ; PID is created inside the chroot jail
  19. pid = /var/run/stunnel.pid
  20.  
  21. ; performance tunings
  22. socket = l:TCP_NODELAY=0
  23. socket = r:TCP_NODELAY=0
  24. ;compression = zlib
  25.  
  26. ; workaround for Eudora bug
  27. ;options = DONT_INSERT_EMPTY_FRAGMENTS
  28.  
  29. ; authentication stuff needs to be configured to prevent MITM attacks
  30. ; it is not enabled by default!
  31. ;verify = 2
  32. ; don't forget to c_rehash CApath
  33. ; CApath is located inside chroot jail
  34. ;CApath = /certs
  35. ; it's often easier to use CAfile
  36. ;CAfile = /opt/etc/stunnel/certs.pem
  37. ; don't forget to c_rehash CRLpath
  38. ; CRLpath is located inside chroot jail
  39. ;CRLpath = /crls
  40. ; alternatively CRLfile can be used
  41. ;CRLfile = /opt/etc/stunnel/crls.pem
  42.  
  43. ; debugging stuff (may useful for troubleshooting)
  44. ;debug = 7
  45. ;output = /opt/var/log/stunnel.log
  46.  
  47. ; SSL client mode
  48. ;client = yes
  49.  
  50. ; service-level configuration
  51.  
  52. ;[pop3s]
  53. ;accept  = 995
  54. ;connect = 110
  55.  
  56. ;[imaps]
  57. ;accept  = 993
  58. ;connect = 143
  59.  
  60. ;[ssmtp]
  61. ;accept  = 465
  62. ;connect = 25
  63.  
  64. [https]
  65. accept  = 192.168.1.254:443
  66. connect = 192.168.1.254:80
  67. TIMEOUTclose = 0
  68. libwrap = no
  69.  
  70.  
  71. ;[chilli]
  72. ;accept  = 3443
  73. ;connect = 3442
  74. ;TIMEOUTclose = 0
  75.  
  76. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement