Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: mhr on May 26, 2005, 12:56:34 PM

Title: Portforwarding to localhost
Post by: mhr on May 26, 2005, 12:56:34 PM
Hi!

I'm running a service on my SME 6.0 box that should be available from the outside. I created a portforwarding to both localhost and internalip, but they fail. If I forward to another machine, it's running fine.

Now I read in the bugtracker that forwarding to localhost is broken in 6.0 (http://no.longer.valid/mantis/bug_view_page.php?bug_id=187). Is there a way to fix it without having to upgrade?

Any help is appreciated!

Regards,

Michael
Title: Portforwarding to localhost
Post by: boss_hog on May 26, 2005, 05:01:17 PM
Hey Michael,
it looks like you only need to add one contrib to your server: e-smith-portforwarding-1.1.0-05.
At least that is how I understood the bug tracker that you linked us to.

It would allow you to get what was needed, with-out having to upgrade the whole server. Just a thought.
Good luck
Joe
Title: Portforwarding to localhost
Post by: mhr on May 26, 2005, 05:11:12 PM
Quote from: "boss_hog"
Hey Michael,
it looks like you only need to add one contrib to your server: e-smith-portforwarding-1.1.0-05.


I had version 0.2 of this contrib. 1.1 is for more recent releases of SME.

In the meantime I solved the problem adding a custom template for /etc/init.d/masq. It's not as easy to add a port, but it works.

Thanks for your pointer!

Michael
Title: portforwarding
Post by: Derek on May 31, 2005, 12:33:17 AM
It appears i have the same problem i have SME Server 6.0.1-01 and installed the latest rpm i could 1.1.0.6 for portforwarding but if i type in my address
www.mydomain.com:1111/tsweb/ i get connection refused while attempting to contact.
Any thoughts around this? i have forwarded the applicable ports to the local machine but it wont connect, any way to verify the port forwarding worked other than what i have done?

thanks
Title: Re: Portforwarding to localhost
Post by: dwater on May 31, 2005, 04:42:50 AM
Quote from: "mhr"
Hi!

I'm running a service on my SME 6.0 box that should be available from the outside. I created a portforwarding to both localhost and internalip, but they fail. If I forward to another machine, it's running fine.

Now I read in the bugtracker that forwarding to localhost is broken in 6.0 (http://no.longer.valid/mantis/bug_view_page.php?bug_id=187). Is there a way to fix it without having to upgrade?

Any help is appreciated!

Regards,

Michael


Just a thought...did you open the port too? I mean the one you forward to?

I use dmc-mitel-portopening-0.0.1-4 to open ports to local applications.

Max.
Title: Portforwarding to localhost
Post by: Derek on May 31, 2005, 04:55:39 AM
nm it is working, just cant see from within local network, but able to see from outside

thanks
Title: Re: Portforwarding to localhost
Post by: mhr on May 31, 2005, 07:56:17 AM
Quote from: "dwater"

Just a thought...did you open the port too? I mean the one you forward to?
I use dmc-mitel-portopening-0.0.1-4 to open ports to local applications.


I don't know that contrib, yet. But it might do what I've done manually. I added a custom template for /etc/init.d/masq which opens the ports I need. But I'm going to have a look at that contrib, thanks!

Michael
Title: Portforwarding to localhost
Post by: mhr on May 31, 2005, 07:59:00 AM
Quote from: "Derek"
nm it is working, just cant see from within local network, but able to see from outside


If you created a port forwarding your server might only listen on the external network interface. When accessing from the internal network you're accessing it from the primary interface, for which the forwarding did not create a rule. Just a guess.

But if it's forwarding, why don't you access the machine on the lan directly?

Michael
Title: Portforwarding to localhost
Post by: Derek on May 31, 2005, 02:16:27 PM
that could be it. The only reason i mentioned i could not access local was that i was confused why one worked and not the other. Of course when i am on the LAN i use the machine, i wanted to be sure that i could access from outside for when i am away.
thanks again

Derek