Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL and wget don't work #12

Closed
fu-sen opened this issue Jun 21, 2021 · 11 comments
Closed

cURL and wget don't work #12

fu-sen opened this issue Jun 21, 2021 · 11 comments

Comments

@fu-sen
Copy link

fu-sen commented Jun 21, 2021

I noticed that the template was failing on the New York server.
After examining it in detail, I can't refer to it with wget or cURL.

[🎈@nyc ~]$ curl https://example.net.eu.org/
curl: (7) Failed to connect to example.net.eu.org port 443: Connection refused
[🎈@nyc ~]$ wget https://example.net.eu.org/
--2021-06-21 07:28:02--  https://example.net.eu.org/
Resolving example.net.eu.org (example.net.eu.org)... 2606:4700:3033::ac43:b870, 2606:4700:3032::6815:130d, 172.67.184.112, ...
Connecting to example.net.eu.org (example.net.eu.org)|2606:4700:3033::ac43:b870|:443... failed: Connection refused.
Connecting to example.net.eu.org (example.net.eu.org)|2606:4700:3032::6815:130d|:443... failed: Connection refused.
Connecting to example.net.eu.org (example.net.eu.org)|172.67.184.112|:443... failed: Connection refused.
Connecting to example.net.eu.org (example.net.eu.org)|104.21.19.13|:443... failed: Connection refused.
[🎈@nyc ~]$ ▄

example.net.eu.org exists in my project: https://github.com/fu-sen/example.net.eu.org
After examining it in detail, I can't refer to it with wget or cURL.

@willnode
Copy link
Member

It is blocked by the firewall.

If it's a publicly available service you may send a PR to https://github.com/domcloud/dom-rootkit/blob/master/src/iptables/whitelist.conf or if isn't you can upgrade the host.

@fu-sen
Copy link
Author

fu-sen commented Jun 21, 2021

All right. Because I know an alternative.

However, this does not allow source to be used in the template and requires the use of FTP or Webmin.
Password is required for uploading. This is causing problems in a different way.
Is there any good way?

@willnode
Copy link
Member

As far I concerned, I haven't find a good way solve this firewall problem.

Most outgoing GET requests don't create problem, but outgoing POST do. Unfornatunely there's no firewall advanced enough to filter GET vs POST request unless it's involving a proxy and big waste of computing resources to do it.

I can't use root or any privilenged user to replace the execution of portal SSH, that would create privilenge escalation problem.

@fu-sen
Copy link
Author

fu-sen commented Jun 21, 2021

Yup? Wait a minute.
I also use a Singapore server, which works fine. (So I reported to domcloud-io)

[🎈@sga ~]$ wget https://example.net.eu.org/
--2021-06-21 10:18:56--  https://example.net.eu.org/
Resolving example.net.eu.org (example.net.eu.org)... 2606:4700:3032::6815:130d, 2606:4700:3033::ac43:b870, 104.21.19.13, ...
Connecting to example.net.eu.org (example.net.eu.org)|2606:4700:3032::6815:130d|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html                                  [ <=>                                                                           ]   1.97K  --.-KB/s    in 0s      

2021-06-21 10:19:00 (24.7 MB/s) - ‘index.html’ saved [2016]

[🎈@sga ~]$ ▄

The answer may be strange. Isn't it a cause other than the firewall?

@willnode
Copy link
Member

Ouch. I leave the firewall off yesterday and forgot to turn it on back after troubleshooting. Sorry for that.

@fu-sen
Copy link
Author

fu-sen commented Jun 21, 2021

So the current behavior of domcloud.io is what you expect, right?
You'll need to fix where the free plan is no longer available in the control panel or part of the GitHub README.

@willnode
Copy link
Member

I'll update about README for firewall behaviour.

Meanwhile, it's seems that you need an outgoing request for one of your project. Is that right?

@fu-sen
Copy link
Author

fu-sen commented Jun 21, 2021

I had some GitHub projects that used DOM Cloud, but I decided that the template didn't work, so I deleted the project.
So my account is (temporarily) empty. You don't need to take any action on this now.
But I would consider using DOM Cloud for some other purpose.

@fu-sen
Copy link
Author

fu-sen commented Jun 21, 2021

The problem with this was the Singapore server, not the New York server.
I think you still need to deal with guest users, but since the location of the issue is different, this issue will be closed.

@fu-sen fu-sen closed this as completed Jun 21, 2021
@willnode
Copy link
Member

This is a follow up. There are major changes in firewall today: #10 (comment) hope you like it.

@fu-sen
Copy link
Author

fu-sen commented Jun 26, 2021

I'm happy that this information has solved the blacklisting issue and put us in a position to continue the big features of DOM Cloud. I could revive some of the DOM Cloud information and the GitHub project I had deleted to update the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants