setting up sabnzbd webpage to be accessable from outside the local network

Get help with all aspects of SABnzbd
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
slamdrunk
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 3:17 am

setting up sabnzbd webpage to be accessable from outside the local network

Post by slamdrunk »

Hi !
I am trying to access SABnzbd web interface -webpage over the internet.. for example www.mydomain.com:8080 but this is not working, i have tried in the config set up puting in the static  IP address of the virtual machine running SABnzbd  but with no luck connecting to the web interface.

Can anyone tell me how to set up SABnzbd webserver so that when I got to www.mydomain.com:8080 I will be able to use SABnzbd web interface PLEASE HELP! :)

I am running Debian 5 lenny. I am using SABnzbd 0.49  I am using a Mac Pro with parallels server so that I can install linux on the mac as a virtual machine.. Such as (VMWARE infrastructure)  I have not installed Apache or any LAMP server.. basic lenny install and SABnzbd install.. SABnzbd is working itself and downloading but the web interface is my problem!

I just cannot figure out how to tell SABnzbd to server the webpage over the internet so i can access it when i do not have access to the physical machine.

Please help .. I have a static IP for the virtual machine..  thank you for any help . I am so lost..
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by shypike »

If you have a SOHO router, you need to setup port-forwarding on the router.
A router normally prevents systems from listening to incoming calls from the internet.

If you don't use a router (yikes), you need to tell your software firewall that
SABnzbd is allowed to listen on port 8080.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by sander »

@slamdrunk:

First you have to make sure your SABnzbd is accessible from other systems on the LAN. Make sure "0.0.0.0" is filled out as listening host. Then find out your IP address on the LAN, something like 192.168.0.10. Use that to access SABnzbd.

Then take care of portwarding. See http://portforward.com/. Your system running SABnzbd must have a fixed IP address on the LAN.


Or, do it the easy way: use IPv6. On ubuntu / debian: "sudo apt-get install miredo", and use the IPv6 address to access your system from anywhere. No need for port forwarding.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by sander »

@shypike

As long as people refuse to use IPv6 ;-) , life would be easier if SABnzbd would speak UPnP IGD (Internet Gateway Device) to the NAT device to setup port forwarding automagically. That is what bittorrent apps like utorrent, Azureus/Vuze, etc do


http://en.wikipedia.org/wiki/List_of_Bi ... Features_I shows the bittorrent clients that do UPnP
http://en.wikipedia.org/wiki/List_of_Bi ... rogramming shows the clients that are written in Python
http://en.wikipedia.org/wiki/List_of_Bi ... ts#General shows the clients that are FOSS.

So if there is a FOSS Python client that does UPnP, that code could be re-used to implement UPnP IGD and thus automagic port forwarding in SABnzbd.


EDIT:

This could be useful too:

http://miniupnp.free.fr/
http://vaitls.com/pnl/trunk/libs/miniup ... upnpigd.py
Last edited by sander on April 29th, 2009, 8:12 am, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by shypike »

We prefer not to automate this.
Anyone who wants to expose SABnzbd to the internet should know what he/she is doing
and realize what the risks are.
Implementing uPNP makes things just too easy.
slamdrunk
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 3:17 am

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by slamdrunk »

Oki, well there is a tutorial on the Sabnzbd at:http://sabnzbd.wikidot.com/howto-apache 
anyone have an idea how to do this on Debian 5 lenny? 
do I need to add some mod?  like mode rewrite or something..

Seems easy enough to just copy and paste this into the apache2 conf. but it is not working on debian..
littlephil
Newbie
Newbie
Posts: 7
Joined: October 4th, 2008, 10:49 am

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by littlephil »

All I had to do was move the proxy_html.conf, proxy_html.load, proxy.conf and proxy.load files from /etc/apache2/mods-available to /etc/apache2/mods-enabled.
littlephil
Newbie
Newbie
Posts: 7
Joined: October 4th, 2008, 10:49 am

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by littlephil »

As a side point this is the virtual host I'm using now and have used in the past so I can setup a sub-domain for my sabnzbd install.

Might need to be moved around a bit for your own Apache install but it seems to remove the need for typing /sabnzbd to get to the install, you can just go straight to news.YOUR-DOMAIN :)


        ServerName news.YOUR-DOMAIN

        ProxyRequests Off
       
                Order deny,allow
                Allow from all
       

        ProxyPass /sabnzbd/ http://localhost:8080/sabnzbd/
        ProxyPassReverse /sabnzbd/ http://localhost:8080/sabnzbd/

        ProxyPass / http://localhost:8080/sabnzbd/
        ProxyPassReverse / http://localhost:8080/sabnzbd/
gurry
Newbie
Newbie
Posts: 3
Joined: March 27th, 2011, 5:42 am

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by gurry »

I am after some advise moving on from some of the points of the original post.

I have setup sab for internet access (through the app nzbair)

I have the host set as blank (0.0.0.0 returned a sab address on my pc as localhost)
My sab ip in the address is the internal one of 192.168.0.154

When I input in the host the external ip (94.***.***.195) I cannot connect to my pc from an external (non network based) device

I have dyns running ports forwarded (on my router)

I am right that for external access its htp:94.***.***.195:8080/the_whopping_api_key_from_SAB_config?

when i use the network ip - to check everything works, i get this error:

http://192.168.0.154:8080/c44a5af88dcd8 ... 48f4b61408

404 Not Found

The path '/c44a5af88dcd8a352acafc48f4b61408' was not found.

Traceback (most recent call last): File "cherrypy\_cprequest.pyo", line 618, in respond File "cherrypy\_cperror.pyo", line 233, in __call__ NotFound: (404, "The path '/c44a5af88dcd8a352acafc48f4b61408' was not found.")

any ideas?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by shypike »

First, you did setup port-forwarding in your router?
You did set a username and a password for SABnzbd? Not doing so is asking for trouble.
You don't need the apikey for external access, it's used automatically later.

The proper URL will be:
http://94.***.***.195:8080/sabnzbd
textual
Newbie
Newbie
Posts: 3
Joined: May 6th, 2010, 1:48 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by textual »

i recently upgraded to 0.6.0 on my iMac and now can only access through localhost:8080
i cannot access through local ip address:8080 or computer name:8080
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by shypike »

Check your host setting in Config->General.
We did some small tweaks to prevent trouble with some browsers.
For outside access use an empty hostname, 0.0.0.0 or the DNS name of your system.
Also check if your software firewall (should you have one) allows SABnzbd to go outside.
gurry
Newbie
Newbie
Posts: 3
Joined: March 27th, 2011, 5:42 am

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by gurry »

I have set up usern and pwd.

Over the 'ocal' network sab appears as soon as I go to external internet sab isnt found.

I have win fw (ports frwarded) avast fw (disabled) still no dice.
by dns name do you mean the name of my computer (as in the login name?)
host name is blank. (which in google chrome gives an address as 192.***.*.154/8080/sabnzb
When I tried 0.0.0.0 the hostname in the goocle chrome address bar appeared as localhost:8080


cheers
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: setting up sabnzbd webpage to be accessable from outside the local network

Post by shypike »

0.0.0.0 means that SABnzbd listens on localhost and on the system's IP address.
The browser will use localhost, unless you type the local name.
The DNS name in OSX will be something like "mymac" or "mymac.local".

Port-forwarding is an essential step that needs to be done on your *router*.
The is separate from any permissions you set in firewalls.
Post Reply