FYI: Tunneling SABnzbd's NNTP traffic through SSH

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

FYI: Tunneling SABnzbd's NNTP traffic through SSH

Post by sander »

If you have a SSH account somewhere, you can tunnel traffic (so also SABnzbd's NNTP traffic) through that SSH account. That way 1) your source IP changes which could give you access to a newsserver and 2) obfuscates your traffic so that a nosy ISP or government cannot read (or block) it.

Here's a howto. Tested on Ubuntu, but it probably works on any Linux. Possibly also on OS X.

First start the SSH tunnel from your own port 2000 to a newsserver on port 119 through the SSH account:

Code: Select all

ssh -N  -L 2000:newsreader.eweka.nl:119 sander@server.blabla.com
sander@server.blabla.com's password: 
... and keep this running

In another window, now test that this works:

Code: Select all

sander@R540:~$ telnet localhost 2000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 Welcome to [b]Eweka[/b] (fx40.am1)
quit
205 Goodbye
Connection closed by foreign host.
sander@R540:~$ 
Note that localhost:2000 is now a pipe to newsreader.eweka.nl:119 (via the SSH server)

If this works, you can point SABnzbd to localhost:2000 like this: in Config -> Server, click Add Server and then fill out:

Code: Select all

Host: localhost
Port: 2000
Connections: 1
Now you can start downloading. I have not yet tested this with login.
Post Reply