Page 1 of 1
Cannot connect,
Posted: September 15th, 2008, 7:53 am
by fluefiske
Hello,
Ik starting the new beta with " python2.5 /home/sabnzbd/SABnzbd.py -d -b0 -s 0.0.0.0:5555 & " this works just fine, however it does not result in an open port from the outside, in my own network it just works perfect but not reachable from the outside please help
By the way i'am running a freecom datatank gateway 2 terrabyte.
Thnx,
André
Re: Cannot connect,
Posted: September 15th, 2008, 8:38 am
by shypike
How about telling your router to redirect port 5555 to the PC running SABnzbd?
A router's job is to protect you from the Internet, unless you tell it not to.
I'd be careful with exposing the SABnzbd Web-ui to the outside world.
Personally, I access it only through an SSL-tunnel.
Re: Cannot connect,
Posted: September 15th, 2008, 9:04 am
by fluefiske
That is what i tried before, but sins my datatank is my router and the app. is running on 0.0.0.0 i tried to forward port 5555 to 0.0.0.0 but that doesn't work. What i also tried is the dynamic dns to configure like this fluefiske.no-ip.biz:5555 but that works neigther.
I tried to configure the http settings to port 5555 however the webgui from freecom which runs on port 80 quits.
Thnx in front,
André
Re: Cannot connect,
Posted: September 15th, 2008, 9:51 am
by shypike
0.0.0.0 is not a real IP address!
It's interpreted by SABnzbd as listening on localhost AND the real IP address of the device.
The problem is likely that your Datatank has two IP addresses (one for te outside world and one for your LAN).
You will have to help SABnzbd to use the right port, by giving it the external IP address of the tank.
This does mean that any access is through the external IP and not through the local IP or localhost.
The alternative is to use the local IP address, but then you'll need to redirect port 5555 to the local IP address.
Do not use 0.0.0.0 in this case, but the actual IP address.
Re: Cannot connect,
Posted: September 15th, 2008, 10:10 am
by fluefiske
Hello,
I'am confused, i think i have only one lan ip adres and that is 192.168.1.1, my freecom is configured as an dhcp client so my wan ip is my external adres see print screen.
With netstat i get the following reply: tcp 0.0.0.0:5555 0.0.0.0:* LISTEN
Thnx,
André
Re: Cannot connect,
Posted: September 15th, 2008, 10:59 am
by shypike
0.0.0.0 is still not a real address, at least not something that can be used by other computers.
Look, if you have multiple computers, you MUST have some router using NAT.
You have to tell the router for which computer an incoming request on port 5555 is meant.
If your datatank has only one port, it cannot be the router.
Re: Cannot connect,
Posted: September 16th, 2008, 2:34 am
by fluefiske
Hello Shypike,
I'am aware of that, but sins my datatank is my router/ switch and sabnzbd is running on that machine, I cannot forward the standard gateway 192.168.1.1 to port 5555 and i think i have to do something with a dynamic dns server, but I don't have a lot of knowledge of networks I'm still suffering the same problem. I really would like to have it work because it is the application I use the most.
I send you a few screen prints which maybe can be helpful, the one with the http server is the one which works, it opens the port but as soon as i startup sabnzbd the webgui from the nas quits. SABnzbd works then very good but that's not what i want. Could it be that i need to change something about the iptable settings
Thnx again,
André
Re: Cannot connect,
Posted: September 16th, 2008, 8:55 am
by shypike
I don't know enough of your device to answer these questions.
Looks to me like the tank-gui and sabnzbd are fighting over access?
Re: Cannot connect,
Posted: September 16th, 2008, 1:13 pm
by fluefiske
Oke, thnx anyway and i hope somone does now a little bit more of my device will react.
Thnx,
André
Re: Cannot connect,
Posted: September 16th, 2008, 3:34 pm
by fluefiske
Thanks for all the reactions, i was finaly able to get it done, i will explain how i did it.
I had to add a iptable rule in my S99SABnzbd,
if [ -n "`pidof python`" ]; then
/bin/killall python 2>/dev/null
fi
export PATH=/opt/sbin:/opt/bin:${PATH}
/opt/bin/python2.5 /home/sabnzbd/SABnzbd.py -d -b0 -s 0.0.0.0:5555 &
iptables -I INPUT -p tcp --dport 5555 -j ACCEPT
And now it works perfectly,
André van Stijn

Re: Cannot connect,
Posted: September 16th, 2008, 3:51 pm
by shypike
fluefiske wrote:
/bin/killall python 2>/dev/null
Cannot you think of a nicer way to terminate SABnzbd?
This is a sure way of messing up it's internal administration.
Preferably use:
Code: Select all
curl http://host:port/sabnzbd/shutdown
or if that's not possible
Re: Cannot connect,
Posted: September 16th, 2008, 3:55 pm
by fluefiske
That's what i would like to see, that you are thinking with me, what i can do to improve my code sins i'm not a linux wiz kid.
Thank you and i will change it,
André