LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-15-2017, 07:49 PM   #16
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by Red Squirrel View Post
The issue is if your ISP blocks port 80 you can do all the port redirecting you want in your internal network, you still won't be able to have something listen to port 80 on the outside. (or any port).

You could listen to port 81 and redirect to port 80 internally, but then users still have to type :81 in the url.
Actually not true, if an ISP blocks port 80, I can use a DNS web redirection.

EG
Dynamic DNS service such as noip.com is able to create an A record that points to an IP address, then create a web redirect that points to that A record plus port, such as:-

Dynamic host name = http://name1.noip.org pointing to WANIP
Dynamic host, web redirect http://name.noip.org pointing to http://name1.noip.org:12080

Thus when the url http://name.noip.org is entered the actual address is http://name1.noip.org:12080 which actually the dynamic DNS service translates it to http://WANIP:12080 so that means nobody has to use the port suffix in the url,,,, then when data is sent on port 12080 which is then routed via my router to the server LANIP (192.168.0.100) on port 12080, iptables within the server reroutes (redirects) port 12080 to port 80 where my Apache server is listening on, so it wouldn't matter if the ISP blocks port 80, I can use the url http://name.noip.org without using the port suffix and it does work, and because owncloud script updater is hard coded to use port 80, this method of redirection does work for the updater script.

As an example, I'm using the same method on this url:- http://my-web.no-ip.net/downloads except the virtual host that's serving that site is actually running on my home server, on a port other than 80,,,, and there's no adding the port to the url.

Last edited by Usalabs; 05-15-2017 at 08:06 PM.
 
Old 05-16-2017, 07:21 PM   #17
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
Ok that's different, you're still relying on a service to do it, your home server is not listening on port 80. But if that works then it would be a suitable workaround. Though it sounds like it's doing more than just DNS, DNS does not care about ports.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect all incoming ports ccc Debian 0 08-05-2014 08:44 PM
Redirect incoming traffic to an other port (ubuntu openvpn server) krisox Linux - Newbie 3 12-06-2010 12:22 AM
Redirect local DNS query to remote DNS server on non standard port? rock_ya_baby Linux - Server 8 04-13-2010 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration