#1 2017-11-29 01:12:28

Camo Yoshi
Trusted Member
Registered: 2017-11-29
Posts: 5

[Gestion DBI] NAT script returns connection refused

Hello,

Just bought my 64MB RAM Montreal LES box. Trying to set up a Reverse proxy based on the instructions here: https://www.deepnetsolutions.com/nat-reverseProxy.html

I am running the script like this: sudo bash NATreverseProxy.sh proxy add subdomain.example.org

However I get the following error: curl: (7) Failed to connect to 172.21.0.5 port 80: Connection refused

I get the same error if I try to list currently enabled proxies as well.

I can confirm that nginx is running as if I curl 127.0.0.1 I do get a response. Currently running Debian 8 on the VPS.

Any ideas? Thanks!

Last edited by Camo Yoshi (2017-11-29 01:13:48)

Offline

#2 2017-12-02 07:10:29

spyder2017
Trusted Member
Registered: 2017-12-02
Posts: 6

Re: [Gestion DBI] NAT script returns connection refused

Hi,

I have got a 64 MB MT LES box and trying to set up a  Reverse proxy and running into the same issue with the same error as mentioned by Camo before.
All I am doing is a proxy list and not even adding an entry.
Confirming that nginx is running  and curl on localhost returns response.

Also just trying to understand, is nginx       being used as the reverse  proxy?
Could someone please assist?

Thanks

Offline

#3 2017-12-02 19:07:56

WSS
Trusted Member
Registered: 2016-12-22
Posts: 411

Re: [Gestion DBI] NAT script returns connection refused

The reverse proxy is external to you and runs on the IPv4 external address you are given.  Hopefully David will have a chance to visit and spy this next week!


RbyeR4Nm.png

Offline

#4 2017-12-02 20:20:32

spyder2017
Trusted Member
Registered: 2017-12-02
Posts: 6

Re: [Gestion DBI] NAT script returns connection refused

WSS wrote:

The reverse proxy is external to you and runs on the IPv4 external address you are given.  Hopefully David will have a chance to visit and spy this next week!

Okay thanks for the reply

Offline

#5 2017-12-02 20:53:10

DavidGestionDBI
Provider-Moderator
From: Montreal, Canada
Registered: 2015-01-10
Posts: 662
Website

Re: [Gestion DBI] NAT script returns connection refused

Dev is already aware. You can use Cloudflare in the meantime with your IPv6.


-----------
Gestion DBI | IT Consulting, Structured Cabling, WiFi Networks, Security Camera, VoIP, Optical Fiber and VPS/Shared Hosting provider
DeepNet Solutions | Cheap, Fast and Courteous Hosting| Starting at $13CAD by year!

Offline

#6 2017-12-03 02:46:20

spyder2017
Trusted Member
Registered: 2017-12-02
Posts: 6

Re: [Gestion DBI] NAT script returns connection refused

DavidGestionDBI wrote:

Dev is already aware. You can use Cloudflare in the meantime with your IPv6.

Okay Thanks I will try Cloudflare in the meantime

Offline

#7 2017-12-03 05:19:25

Camo Yoshi
Trusted Member
Registered: 2017-11-29
Posts: 5

Re: [Gestion DBI] NAT script returns connection refused

DavidGestionDBI wrote:

Dev is already aware. You can use Cloudflare in the meantime with your IPv6.

Thanks for your fast reply and info. Could you update this thread once it's fixed? Really appreciate it. smile

Offline

#8 2017-12-04 08:03:12

spyder2017
Trusted Member
Registered: 2017-12-02
Posts: 6

Re: [Gestion DBI] NAT script returns connection refused

spyder2017 wrote:
DavidGestionDBI wrote:

Dev is already aware. You can use Cloudflare in the meantime with your IPv6.

Okay Thanks I will try Cloudflare in the meantime

Just an update on this it is working with cloud flare just have to wait for a day.
Thanks for your help

Offline

#9 2017-12-04 20:16:18

DavidGestionDBI
Provider-Moderator
From: Montreal, Canada
Registered: 2015-01-10
Posts: 662
Website

Re: [Gestion DBI] NAT script returns connection refused

We are still working on hit. Some user hit so hard the reverse proxy with Let's encrypt request that it's cause lot's of issue.

Let's Encrypt is not really friendly with this kind of setup and the Dev and Me are trying to find a way to limit this and resolve the issue on the long term. In the meantime, Cloudflare is really the best bet, since it's used the Dedicated IPv6 to work.

I will update this thread once the proxy is fixed.


-----------
Gestion DBI | IT Consulting, Structured Cabling, WiFi Networks, Security Camera, VoIP, Optical Fiber and VPS/Shared Hosting provider
DeepNet Solutions | Cheap, Fast and Courteous Hosting| Starting at $13CAD by year!

Offline

#10 2017-12-05 07:24:55

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,852
Website

Re: [Gestion DBI] NAT script returns connection refused

LE on NAT with end user control yikes that's brave.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#11 2017-12-05 21:05:53

spyder2017
Trusted Member
Registered: 2017-12-02
Posts: 6

Re: [Gestion DBI] NAT script returns connection refused

Backtogeek wrote:

LE on NAT with end user control yikes that's brave.

Hi,
Just trying to understand what is the impact of this, would this cause issues in terms of VPS performance,stability etc.   for all users?
If so maybe it is better to not offer things like this NAT   reverse proxy   as there options like Cloudflare IPv6 to IPv4.

I am not trying to upset anyone just trying to understand and pardon my ignorance.

The providers here are offering  a great service at a good price and spending their valuable time answering questions here and god bless them but at the same time I think we need to be mindful of their time.

So if there are options out there which cause less headache for them in terms of support and saves them time   then suggestion is to look at it.

Thanks

Last edited by spyder2017 (2017-12-05 21:10:42)

Offline

#12 2017-12-06 09:49:49

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,852
Website

Re: [Gestion DBI] NAT script returns connection refused

Naa I just meant end users can put in requests manually enough times that is kills the IP with LE for a while stopping anyone else from getting a new cert, if you have ever generated one you will see the warnings about how many attempts you have left etc.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#13 2017-12-07 06:19:02

Camo Yoshi
Trusted Member
Registered: 2017-11-29
Posts: 5

Re: [Gestion DBI] NAT script returns connection refused

Yeah, it's kind of unfortunate that it can be scripted in such a way that it can be abused... makes it harder for the rest of us who want to use it legitimately.

As a side note: I've got custom DNS records and my own personal name servers; are there any IPv6 -> IPv4 services that don't want to hijack my entire domain for a single subdomain? I've been trying to the OVH SSL Gateway working but they don't seem to accept my request (probably due to the fact that I had to sign up with the CO.UK order form, as the .COM one for US is broken right now...)

Thanks!

Offline

#14 2017-12-18 06:43:23

Camo Yoshi
Trusted Member
Registered: 2017-11-29
Posts: 5

Re: [Gestion DBI] NAT script returns connection refused

Hi there, apologies for the bump. I just tried to get the NAT script working and it still has the same error message. Is the system still not working?

Offline

#15 2018-01-15 14:17:59

theroyalstudent
DeepNet Solutions rProxy Maintainer / NAT VPS Fan
From: Singapore, SG
Registered: 2015-07-04
Posts: 30
Website

Re: [Gestion DBI] NAT script returns connection refused

Camo Yoshi wrote:

Hi there, apologies for the bump. I just tried to get the NAT script working and it still has the same error message. Is the system still not working?

Hi there, the developer of the new script (yes, I recently stepped in to update) here. Can I know which node are you on? Thanks!


DeepNet Solutions rProxy Maintainer, I built the latest system - do give it a test run!
DeepNet Solutions - Reverse Proxy with SSL Termination - Guide

Interested providers - private message me if you want it deployed - pay me in servers thanks tongue

Offline

#16 2018-01-16 07:34:45

Camo Yoshi
Trusted Member
Registered: 2017-11-29
Posts: 5

Re: [Gestion DBI] NAT script returns connection refused

theroyalstudent wrote:
Camo Yoshi wrote:

Hi there, apologies for the bump. I just tried to get the NAT script working and it still has the same error message. Is the system still not working?

Hi there, the developer of the new script (yes, I recently stepped in to update) here. Can I know which node are you on? Thanks!

Hey there,

I was able to test your new script and it seems to have not crashed. I'll see how far I can get with setting up Nginx and will keep you posted.

Thank you!

Quick edit: Just tested and everything works on both HTTP and HTTPS!

One thing I did want to mention, running "sudo bash proxy.sh addCustomSSL example.com" just seems to hang. Not sure if it's intended to have further input but you might want to add that to the usage/help in the script.

Again, thank you very much for fixing this, I really appreciate it.

Last edited by Camo Yoshi (2018-01-16 07:38:59)

Offline

#17 2018-01-16 12:02:01

theroyalstudent
DeepNet Solutions rProxy Maintainer / NAT VPS Fan
From: Singapore, SG
Registered: 2015-07-04
Posts: 30
Website

Re: [Gestion DBI] NAT script returns connection refused

Camo Yoshi wrote:
theroyalstudent wrote:

Hi there, the developer of the new script (yes, I recently stepped in to update) here. Can I know which node are you on? Thanks!

Hey there,

I was able to test your new script and it seems to have not crashed. I'll see how far I can get with setting up Nginx and will keep you posted.

Thank you!

Quick edit: Just tested and everything works on both HTTP and HTTPS!

One thing I did want to mention, running "sudo bash proxy.sh addCustomSSL example.com" just seems to hang. Not sure if it's intended to have further input but you might want to add that to the usage/help in the script.

Again, thank you very much for fixing this, I really appreciate it.

It's great to know that everything works on HTTP / HTTPS!

The addCustomSSL command format is the following:

./NATreverseProxy addCustomSSL <hostname> <private key path> <fullchain path>

Tested this on my side before and it works, do let me know if it works for you smile


DeepNet Solutions rProxy Maintainer, I built the latest system - do give it a test run!
DeepNet Solutions - Reverse Proxy with SSL Termination - Guide

Interested providers - private message me if you want it deployed - pay me in servers thanks tongue

Offline

#18 2018-01-18 18:30:18

theroyalstudent
DeepNet Solutions rProxy Maintainer / NAT VPS Fan
From: Singapore, SG
Registered: 2015-07-04
Posts: 30
Website

Re: [Gestion DBI] NAT script returns connection refused

gnidorah wrote:

Not working

The node is Montreal

$ host <myhost>
<external-ip>

$ bash proxy.sh add <myhost>
Adding hostname "<myhost>"...
Added hostname "<myhost>".
Contacting Let's Encrypt servers to verify your hostname & issue your certificate.
...
ERROR: Challenge is invalid! (returned: invalid)
...

$ bash proxy.sh list
Listing proxies on IP <internal-ip>

0 proxies found.

Hi there, please give it another try, usually if you just set the DNS A record to point at the MTL IPv4 address before running the script, it may not have been propagated yet, thus causing the challenge to fail.
Do let me know if it still does not work. Thanks!


DeepNet Solutions rProxy Maintainer, I built the latest system - do give it a test run!
DeepNet Solutions - Reverse Proxy with SSL Termination - Guide

Interested providers - private message me if you want it deployed - pay me in servers thanks tongue

Offline

#19 2018-01-19 00:53:15

omelas
Trusted Member
Registered: 2018-01-14
Posts: 8

Re: [Gestion DBI] NAT script returns connection refused

I'm on LAX-06 and proxy.sh script just times out.
bash proxy.sh list
curl: (7) Failed to connect to 172.16.70.5 port 80: Connection timed out

Offline

#20 2018-01-20 07:41:07

theroyalstudent
DeepNet Solutions rProxy Maintainer / NAT VPS Fan
From: Singapore, SG
Registered: 2015-07-04
Posts: 30
Website

Re: [Gestion DBI] NAT script returns connection refused

omelas wrote:

I'm on LAX-06 and proxy.sh script just times out.
bash proxy.sh list
curl: (7) Failed to connect to 172.16.70.5 port 80: Connection timed out

@DavidGestionDBI Possible to revive this node and add some watchers to ensure that these nodes remain offline if they ever crash?
Thanks!


DeepNet Solutions rProxy Maintainer, I built the latest system - do give it a test run!
DeepNet Solutions - Reverse Proxy with SSL Termination - Guide

Interested providers - private message me if you want it deployed - pay me in servers thanks tongue

Offline

#21 2018-05-06 08:10:58

Hippopotamus
Trusted Member
Registered: 2018-03-20
Posts: 10

Re: [Gestion DBI] NAT script returns connection refused

Same problem
Montreal, Canada, 172.21.0.214

bash proxy.sh list                                                                         
curl: (7) Failed to connect to 172.21.0.5 port 80: Connection timed out

Offline

#22 2018-05-08 21:42:46

DavidGestionDBI
Provider-Moderator
From: Montreal, Canada
Registered: 2015-01-10
Posts: 662
Website

Re: [Gestion DBI] NAT script returns connection refused

Try again.


-----------
Gestion DBI | IT Consulting, Structured Cabling, WiFi Networks, Security Camera, VoIP, Optical Fiber and VPS/Shared Hosting provider
DeepNet Solutions | Cheap, Fast and Courteous Hosting| Starting at $13CAD by year!

Offline

#23 2018-05-09 03:10:10

Hippopotamus
Trusted Member
Registered: 2018-03-20
Posts: 10

Re: [Gestion DBI] NAT script returns connection refused

Thanks, everything is OK.

Offline

Board footer

Powered by FluxBB