Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


CloudFlare Proxy Origin (other than port 80)?
New on LowEndTalk? Please Register and read our Community Rules.

CloudFlare Proxy Origin (other than port 80)?

deployvmdeployvm Member, Host Rep
edited April 2015 in General

Does CloudFlare have a feature or the ability to proxy sites hosted on other ports other than port 80? Is anyone aware of this? I know this is not a CF helpdesk but I am curious.

I am aware of the supported ports ( https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-CloudFlare-work-with- ) and is not an issue, but if I have a webserver running on port 8080, I will need to specify www.website.com:8080 to access it. I would like CF on the backend to connect to the origin server on port 8080 and serve visitors on port 80.

For example, a website is hosted on port 8080. I would like to use CloudFlare as a reverse proxy.

Origin: 1.1.1.1:8080 --> CloudFlare sends/receives -->CloudFlare front-end (visitors)

Port 80 not considered.

Thank you.

Comments

  • You can use your own reverse proxy to do this

  • vfusevfuse Member, Host Rep

    You can't set a reverse proxy on non port 80 but you can use IPv6

  • deployvmdeployvm Member, Host Rep

    Thanks everyone for the input.

    I am aware of configuring my own reverse proxy and that is no problem. Such functions are readily available on a custom nginx proxy configuration. It is a pity that there is no such option to use CloudFlare and enable backend requests through a non-port 80 port while serving port 80 visitors on the front-end.

  • Have they changed this at all? I noticed it too and tried myself about a year ago, but as you said, there is no way to send back anything other than through port 80.

    How did you get around this? I was thinking about setting up a reverse proxy but I don't want it to create a bottleneck and there aren't any real free options out there.

    My ISP doesn't block 443 so that's what I'm using now.

  • I am not sure if this solves your problem.

    But there is a structure, as Nginx for reverse proxy and Apache for backend, as default settings by Plesk panel.

    The web is on 80 ,but Apache is listening to other port.

  • @qtwrk said:
    I am not sure if this solves your problem.

    But there is a structure, as Nginx for reverse proxy and Apache for backend, as default settings by Plesk panel.

    The web is on 80 ,but Apache is listening to other port.

    No, my problem is that my ISP blocks incoming port 80.

  • The only free service for reverse proxy I've ever seen is no-ip.

  • @PandaRain said:
    The only free service for reverse proxy I've ever seen is no-ip.

    They only provide a subdomain with support for dynamically updating the IP address for it from a client, not provide a reverse proxy to use.

  • Have you contact CF support on this matter?

    I'm sure you are not only person who got such problem, maybe they have better and more experience on such issue

  • qtwrkqtwrk Member
    edited August 2017

    I got idea, get one VPS on where 80 isn't blocked, set it as reverse proxy, to your server and then use CF to that VPS on 80 port

  • nulldevnulldev Member
    edited August 2017

    CloudFlare does support proxying a few alternative HTTP/HTTPS ports, they are listed here: https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-Cloudflare

    Port 8080 is supported!

  • Try using a HE ipv6 tunnel on your home connection, then put a 4to6 cloudflare proxy in front of it

    Thanked by 2WSS cnbeining
  • @nulldev said:

    Port 8080 is supported!

    Yeah, but it won't proxy 80 -> 8080 as OP wants.


    Another option is to get a cheap VPS that's geographically close to you (as low a ping as possible), and setup nginx to proxy port 80 requests to 8080 on your home connection. Or you can setup OpenVPN and proxy requests back through that.

    CloudFlare -> VPS -> Home Port 8080. Or CloudFlare -> VPS -> OpenVPN -> VPN Client (local address) Port 80/whatever.

  • nulldevnulldev Member
    edited August 2017

    @Harambe said:

    @nulldev said:

    Port 8080 is supported!

    Yeah, but it won't proxy 80 -> 8080 as OP wants.


    Another option is to get a cheap VPS that's geographically close to you (as low a ping as possible), and setup nginx to proxy port 80 requests to 8080 on your home connection. Or you can setup OpenVPN and proxy requests back through that.

    CloudFlare -> VPS -> Home Port 8080. Or CloudFlare -> VPS -> OpenVPN -> VPN Client (local address) Port 80/whatever.

    Epic fail, didn't read post :(. Yeah, I don't think Cloudflare can do that...

    EDIT: Maybe proxy port 443 only and enable HSTS or only connect to the page via HTTPS. A dirty hack but it works I guess?

  • PandaRainPandaRain Member
    edited August 2017

    @Edmond said:

    @PandaRain said:
    The only free service for reverse proxy I've ever seen is no-ip.

    They only provide a subdomain with support for dynamically updating the IP address for it from a client, not provide a reverse proxy to use.

    Actually, they DO offer a reverse proxy :)

    For anyone interested, here's the steps (works on free account)

    1. Log into https://my.noip.com
    2. Click "Add Hostname"
    3. On the far right, under "Record Type", click "More Records"
    4. Choose "Web Redirect"
    5. In the "URL / IP" field, put your server settings, such as "1.2.3.4:9981"
    6. In the "Hostname" at the top, don't forget to choose something.

    The end result will be:

    http://foobar.ddns.net (which is port 80) actually points to: 1.2.3.4:9981

    Edit: Tagging @deployvm so you see this post.

  • @nulldev said:

    Epic fail, didn't read post :(. Yeah, I don't think Cloudflare can do that...

    EDIT: Maybe proxy port 443 only and enable HSTS or only connect to the page via HTTPS. A dirty hack but it works I guess?

    That could work if his ISP has 443 open, then setup a CloudFlare page rule to redirect all http to https before the request hits his IP.

  • EdmondEdmond Member
    edited August 2017

    @PandaRain said:

    @Edmond said:

    @PandaRain said:
    The only free service for reverse proxy I've ever seen is no-ip.

    They only provide a subdomain with support for dynamically updating the IP address for it from a client, not provide a reverse proxy to use.

    Actually, they DO offer a reverse proxy :)

    For anyone interested, here's the steps (works on free account)

    1. Log into https://my.noip.com
    2. Click "Add Hostname"
    3. On the far right, under "Record Type", click "More Records"
    4. Choose "Web Redirect"
    5. In the "URL / IP" field, put your server settings, such as "1.2.3.4:9981"
    6. In the "Hostname" at the top, don't forget to choose something.

    The end result will be:

    http://foobar.ddns.net (which is port 80) actually points to: 1.2.3.4:9981

    Edit: Tagging @deployvm so you see this post.

    ahh.. forgot, been a while since I used them, don't they display some kind of ad on it?

Sign In or Register to comment.