Sabnzbd + SSL = CPU murder?

Feel free to talk about anything and everything in this board.
zsh
Release Testers
Release Testers
Posts: 9
Joined: November 14th, 2009, 12:39 pm

Re: Sabnzbd + SSL = CPU murder?

Post by zsh »

Ok here is the config:


/etc/default/stunnel4

Code: Select all

ENABLED=1
FILES="/etc/stunnel/*.conf"
OPTIONS=""
PPP_RESTART=0
/etc/init.d/stunnel4
Change only the following line:
from: ENABLED=0
to: ENABLED=1


/etc/stunnel/stunnel.conf

Code: Select all

sslVersion = SSLv3
chroot = /var/lib/stunnel4/
setuid = stunnel4
setgid = stunnel4
pid = /stunnel4.pid
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
[usenet]
accept = 9999
connect = ssl-eu.astraweb.com:443

Thats it, nothing more nothing less. (ofcourse change the 9999 above to port you wish your localsystem to listen on and change the "connect=" line to contain your usenetprovider and the correct SSL port they use).


Now, in Sabnzbd, server should point to the IP address on of your eth0 interface (ifconfig -a to see what you've got)
Port should be 9999 (or whatever you choose to use)
And SSL checkbox should _not_ be enabled.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd + SSL = CPU murder?

Post by sander »

Cool it works:

Code: Select all

ubuntu@ubuntu:~$ sudo /etc/init.d/stunnel4 start
Starting SSL tunnels: [Started: /etc/stunnel/stunnel.conf] stunnel.
ubuntu@ubuntu:~$ ps -ef | grep stunnel
root      8196     1  0 22:14 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8197     1  0 22:14 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8198     1  0 22:14 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8199     1  0 22:14 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8200     1  0 22:14 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
stunnel4  8201     1  0 22:14 ?        00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
ubuntu    8203  7488  0 22:14 pts/0    00:00:00 grep stunnel
ubuntu@ubuntu:~$ telnet localhost 9999
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 news.astraweb.com NNRP Service Ready (posting ok) (yEnc enabled).
quit
205 Transferred 71 bytes in 0 articles, 0 groups.  Disconnecting.
Connection closed by foreign host.
ubuntu@ubuntu:~$
After editing /etc/stunnel/stunnel.conf

Code: Select all

ubuntu@ubuntu:~$ !527
sudo /etc/init.d/stunnel4 start
Starting SSL tunnels: [Started: /etc/stunnel/stunnel.conf] stunnel.
ubuntu@ubuntu:~$ !ps
ps -ef | grep stunnel
root      8293     1  0 22:16 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8294     1  0 22:16 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8295     1  0 22:16 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8296     1  0 22:16 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
root      8297     1  0 22:16 pts/0    00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
stunnel4  8298     1  0 22:16 ?        00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf
ubuntu    8308  7488  0 22:16 pts/0    00:00:00 grep stunnel
ubuntu@ubuntu:~$ telnet localhost 9999
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
201 newsreader.eweka.nl NNRP Service Ready - [email protected] (no posting).
quit
205 Transferred 74 bytes in 0 articles, 0 groups.  Disconnecting.
Connection closed by foreign host.
ubuntu@ubuntu:~$

@zsh: thank you for all your help!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply