port forwarding solutions sharing

General discussions.

Moderator: moderators

Re: port forwarding solutions sharing

Postby BKKKPewsey » Thu Jun 21, 2012 3:59 pm

Ahh! Reverse Polish Notation - that brings back memories :roll:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: port forwarding solutions sharing

Postby bushman4 » Thu Jun 21, 2012 5:01 pm

Can you try a reset to factory defaults on the router, and then set it up from scratch?

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: port forwarding solutions sharing

Postby HighlandRanger » Thu Jun 21, 2012 5:17 pm

I'll give it a try! :?
HighlandRanger
 
Posts: 22
Joined: Wed Jun 20, 2012 3:16 pm

Re: port forwarding solutions sharing

Postby GJ51 » Thu Jun 21, 2012 5:33 pm

I'd bet $5 that if you set up one of the preprogrammed game single port rules built into the router and just set SS to use that port it will work.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: port forwarding solutions sharing

Postby grant420 » Thu Jun 21, 2012 5:37 pm

GJ51 wrote:I'd bet $5 that if you set up one of the preprogrammed game single port rules built into the router and just set SS to use that port it will work.

YES, you should try this prior to giving up on this router.
grant420
 
Posts: 49
Joined: Fri Apr 08, 2011 8:07 pm

Re: port forwarding solutions sharing

Postby nayab9 » Fri Jun 29, 2012 3:20 pm

I have a question somewhat related to this, was hoping someone knows the answer..

When I request x.subsonic.org (internally or externally)...where is this pointing to and what is the process of the redirect?

Basically, I'd like to understand how ss server is set up such that I can type x.subsonic.org internally AND externally, and it resolves correctly no matter what.

The reason I'm trying to understand is because I have a web server set up with my own domain name. The domain name points to my WAN IP correctly, if I request the domain name EXTERNALLY, it works fine. But if I request the domain name INTERNALLY, the router (I think?) realizes the resolving IP is ITSELF and presents me with a router login screen page (instead of sending it out to the cloud?). Nothing like this happens when I type in my x.subsonic.org domain address... it all works fine... I'm assuming it works something like this:

If I type in x.subsonic.org internally, the request from my machine is sent to the router, the router sees that the subsonic domain is in the cloud, sends request out to ss domain (?), where the ss server (has my ip/port stored as a subdomain...?) redirects that to whichever ip/port specified (my WAN IP)... which would then come back to home where I requested it from, and directed to the correct server on the LAN.

Anybody know how this works? I want my web server to behave the same way the ss server does!

Cheers,
Ben
nayab9
 
Posts: 14
Joined: Wed Jan 18, 2012 6:51 pm

Re: port forwarding solutions sharing

Postby bushman4 » Fri Jun 29, 2012 6:26 pm

It works like this:

  • Your browser makes a request to Sindre's server for http://myname.subsonic.org. The server responds with a "302 - Temporarily Moved" message that includes your external HTTP access information of http://[myexternalip]:[myHTTPPort]/
  • Your browser contacts your subsonic server via that external IP address on the HTTP port. If HTTPS is set up properly, your subsonic replies with a "302 - Temporarily Moved" message that includes the proper external HTTPS access information of https://[myexternalip]:[myHTTPSPort]/
  • Your browser contacts your subsonic server using HTTPS on the proper port. Subsonic replies with a "302 - Temporarily Moved" message again, but this time it includes the info to redirect to the login page at https://[myexternalip]:[myHTTPSPort]/login.view;jsessionid=<SomeSessionID>
  • Your browser contacts your subsonic server using HTTPS and retrieves the login page.

As a demonstration of this, run the "Full Page Load Test" at pigdom.com and enter http://name.subsonic.org (once you have opened the HTTP port on your firewall) or download the command line tool wget.exe and run
Code: Select all
wget http://name.subsonic.org


Notice all of the redirects that happen in the process.

HTH,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: port forwarding solutions sharing

Postby bushman4 » Fri Jun 29, 2012 6:30 pm

As an aside, you will be hard pressed to get your web server to run the same way... you only have a few choices:

1. Run an internal DNS server that only hosts a copy of your external domain, but with a www record that is set to the proper INTERNAL ip address. Set the server to forward all other requests to your router's IP address, your ISP's DNS server, or to the root servers directly. (this is what I do...)
2. Get a router with the ability to put static DNS entries into it, and add one for your registered domain name pointing into the proper internal IP address.
3. Add an entry to your hosts file on all internal computers with the registered domain name and the correct internal IP address for the web server.

HTH,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: port forwarding solutions sharing

Postby rboshuis » Fri Jun 29, 2012 7:25 pm

If you are really wondering what is happening with all those redirects, install fiddler2 on your client and you'll see EVERYTHING!

http://fiddler2.com/fiddler2/
rboshuis
 
Posts: 3
Joined: Sun Jul 03, 2011 10:05 pm

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests