LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   stunnel installation error in centos (https://www.linuxquestions.org/questions/linux-server-73/stunnel-installation-error-in-centos-914190/)

jsaravana87 11-18-2011 02:10 AM

stunnel installation error in centos
 
Hi
i installed stunnel in centos how can i start stunnel it says /etc/stunnel/ there is no conf file... i could int find anything inside /etc/stunnel after installation ..mine conf path lies in /usr/share/doc/stunnel-4.15/ ..

[root@world ~]# yum install stunnel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: ftp-stud.fht-esslingen.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package stunnel.i386 0:4.15-2.el5.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
stunnel i386 4.15-2.el5.1 rhel-server 112 k

Transaction Summary
================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 112 k
Is this ok [y/N]: y
Downloading Packages:
stunnel-4.15-2.el5.1.i386.rpm | 112 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : stunnel 1/1

Installed:
stunnel.i386 0:4.15-2.el5.1

[root@world ~]# cd /usr/share/doc/stunnel-4.15/
[root@world stunnel-4.15]# ls
AUTHORS faq.stunnel-2.html stunnel-pop3s-client.conf
BUGS NEWS stunnel-sfinger.conf
Certificate-Creation pop3-redirect.xinetd TODO
ChangeLog PORTS transproxy.txt
COPYING README tworzenie_certyfikatow.html
COPYRIGHT.GPL sfinger.xinetd VNC_StunnelHOWTO.html
CREDITS stunnel.conf-sample
[root@world stunnel-4.15]# cd
[root@world ~]# stunnel
2011.11.17 15:06:19 LOG3[3382:3086706384]: /etc/stunnel/stunnel.conf: No such file or directory (2)

Syntax:
stunnel [<filename>] ] -fd <n> | -help | -version | -sockets
<filename> - use specified config file instead of /etc/stunnel/stunnel.conf
-fd <n> - read the config file from a file descriptor
-help - get config file help
-version - display version and defaults
-sockets - display default socket options
[root@world ~]#

unSpawn 11-19-2011 05:00 AM

Quote:

Originally Posted by arun5002 (Post 4527286)
i installed stunnel in centos how can i start stunnel it says /etc/stunnel/ there is no conf file... i could int find anything inside /etc/stunnel after installation ..mine conf path lies in /usr/share/doc/stunnel-4.15/ .. (..) 2011.11.17 15:06:19 LOG3[3382:3086706384]: /etc/stunnel/stunnel.conf: No such file or directory (2)

Well then copy /usr/share/doc/stunnel-4.15/stunnel.conf over to /etc/stunnel/ and configure it.
* BTW your question is about configuring Stunnel so posting Yum output is not relevant to your question.

jsaravana87 11-22-2011 03:02 AM

HI
i had moved conf file /etc/stunnel but how can i start the stunnel service. i could int able to find stunnel service in /etc/init.d

can some one help me how can i start stunnel

unSpawn 11-22-2011 04:32 AM

Quote:

Originally Posted by arun5002 (Post 4530510)
i could int able to find stunnel service in /etc/init.d

See comment #3 for https://bugzilla.redhat.com/show_bug.cgi?id=455815#c3 reasons why.


Quote:

Originally Posted by arun5002 (Post 4530510)
can some one help me how can i start stunnel

Three ways really:
- download stunnel-4.47.tar.gz, extract stunnel-4.47/tools/stunnel.init.in or
- use any example already available on the 'net or
- write one yourself (for examples see /etc/rc.d/init.d/*).

* For all three options goes you should aim to make the initscript conform to the guidelines for SysV-style Initscripts, then install it into /etc/rc.d/init.d (like 'install /path/to/your/script' -o root -g root -m 0750 -Z "system_u:object_r:initrc_exec_t" -D /etc/rc.d/init.d/stunnel;') and then you probably need to run 'chkconfig --add stunnel && chkconfig --level 3 stunnel on; service stunnel start' afterwards.


All times are GMT -5. The time now is 12:57 AM.