# Proxy + Nextcloud

**URL:** <https://help.nextcloud.com/t/proxy-nextcloud/32636>\
**Category:** ℹ️ Support\
**Tags:** configphp\
**Created:** [June 6, 2018, 1:44pm UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636 "2018-06-06T13:44:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 6, 2018, 1:44pm UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/1 "2018-06-06T13:44:39Z")

</div>

Nextcloud version : 13.0.1  
Operating system and version : Ubuntu 16  
Apache or nginx version : unknown  
PHP version : 7.0

Hello guys, im a new in this community.

(Sorry for my english)

I’ve created a nextcloud server, but i got a message since the begining :

Error internet\_connection\_check GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to [www.github.com](http://www.github.com) port 80: Connection timed out

Same for “[www.google.com](http://www.google.com)” and “[www.nextcloud.com](http://www.nextcloud.com)”.

My serveur is okay, i can ping everything. i’ve added my proxy in the server, and my nextcloud is online.

But i dunno how i can fix the message. I dunno if i can update or not, so it’s important for me to know.

Should i add some proxy text in a .conf ? Someone got the same problem ?

Thanks in advance.

Tom.

---

<div class="post-metadata">

**Author:** ![martva](https://help.nextcloud.com/letter_avatar/martva/32/6_449c533f586939b6e5f246632a46421f.png) [@martva](https://help.nextcloud.com/u/martva)\
**Post date:** [June 6, 2018, 1:48pm UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/2 "2018-06-06T13:48:55Z")

</div>

Tom,

Take a look at the `config/config.php.sample` file. Here the proxy option should be available.

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 6, 2018, 1:57pm UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/3 "2018-06-06T13:57:52Z")

</div>

Thanks for ur answer !

I’ve added the proxy in this .conf, but that don’t change anything.

=======================================  
/\*\*

- List of trusted proxy servers

- 
- If you configure these also consider setting `forwarded_for_headers` which

- otherwise defaults to `HTTP_X_FORWARDED_FOR` (the `X-Forwarded-For` header).

- Defaults to an empty array.  
_/  
‘trusted\_proxies’ =\> array(‘XX.XX.XX.XX’, ‘XX.XX.XX.XX’, ‘XX.XX.XX.XX’),  
/_\*

- The URL of your proxy server, for example `proxy.example.com:8081`.

- 
- Defaults to `''` (empty string)  
\*/  
‘proxy’ =\> ‘xxx.xxx.xx:3128’,  
======================================

anything else to add ?

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 6:22am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/4 "2018-06-07T06:22:27Z")

</div>

Hi guys, i think my Nextcloud can’t get the Update.

I don’t understand how my ubuntu works well but not the Nextcloud. If i can’t get any update, it will be a real problem for me.

i really need help if possible 🙂

Tom.

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 9:17am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/5 "2018-06-07T09:17:49Z")

</div>

I’ve a wireshark behind my nextcloud. I see some package blocked to google/nextcloud/github from port 80. But i don’t have more information.

i got no UFW, no iptables . So it’s not about ACL rules i think.

i’ve my nextcloud behind a proxy, and whatever i modify, nothing change ☹

If someone got a little idea …

Tom

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 10:26am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/6 "2018-06-07T10:26:17Z")

</div>

After some check in wireshark, the server send some package tcp/80 normaly, so this is not a proxy problem.

ipfilter or something like that black listed google/nextcloud/github ?

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [June 7, 2018, 10:33am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/7 "2018-06-07T10:33:08Z")

</div>

ip masquerading is enabled? and ip forwarding?

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 10:43am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/8 "2018-06-07T10:43:43Z")

</div>

Thanks for your answer.

My Ubuntu is okay. I can navigate, i can ping google or nextcloud without any problem.

Only my web server nginx/nextcloud can’t join google or nextcloud. Got a BadTCP in wireshark.

I literally dunno what is my problem.

=====================================================================

Error internet\_connection\_check GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to [www.github.com](http://www.github.com) port 80: Connection timed out

Error internet\_connection\_check GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to [www.google.com](http://www.google.com) port 80: Connection timed out

Error internet\_connection\_check GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to [www.nextcloud.com](http://www.nextcloud.com) port 80: Connection timed out

=====================================================================

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [June 7, 2018, 10:50am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/9 "2018-06-07T10:50:13Z")

</div>

netstat -pant | grep 80  
?

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [June 7, 2018, 10:53am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/10 "2018-06-07T10:53:51Z")

</div>

@TomAdmin

as a matter of fact we do know too little about your server and it’s environment. like: where is it hosted (even your config.php looks a bit strange the way you posted it), etc. hint: pls install `issue template` app

so as for now i just could suggest to search the forum for `google.com` (etc) and see if there’s any hint that would help you with your problem.

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 10:55am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/11 "2018-06-07T10:55:26Z")

</div>

tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN 12984/nginx -g daem  
tcp6 0 0 :::80 :::\* LISTEN 12984/nginx -g daem

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [June 7, 2018, 10:59am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/12 "2018-06-07T10:59:48Z")

</div>

can you reach your Nextcloud server by browser?

> [@TomAdmin](#):
>
> to [www.github.com](http://www.github.com) port 80: Connection timed out

What is it for?

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [June 7, 2018, 11:00am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/13 "2018-06-07T11:00:52Z")

</div>

> [@Sanook](#):
>
> What is it for?

nc pings google, nextcloud and github to see if it’s “online”…

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [June 7, 2018, 11:01am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/14 "2018-06-07T11:01:52Z")

</div>

> [@JimmyKater](#):
>
> nc pings

at port 80?

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 11:03am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/15 "2018-06-07T11:03:14Z")

</div>

i understand.

I didnt posted my config.php but only config.sample.php. (some lines, but i think its a bit useless this conf)

i’ve Server Ubuntu 16 in a DMZ (with port 443/80 open and forward) with a proxy. actually i’ve created my cert. SSL, and my cloud is online correctly.

i can download or upload folders. Its only my nextcloud who can’t join [www.nextcloud.com](http://www.nextcloud.com) and google and github.

Actually i dunno if i can download updates. im at 13.0.1.1

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [June 7, 2018, 11:06am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/16 "2018-06-07T11:06:25Z")

</div>

> [@TomAdmin](#):
>
> if i can download update

you could always download the recent installation-files manually and do the update manually.

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [June 7, 2018, 11:07am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/17 "2018-06-07T11:07:24Z")

</div>

> [@TomAdmin](#):
>
> i’ve Server Ubuntu 16 in a DMZ (with port 443/80 open and forward) with a proxy

You need to setup the proxy configuration of your server first

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 11:07am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/18 "2018-06-07T11:07:49Z")

</div>

Exactly, but i’ll probably leave my job soon, so i want to auto the update for my next co-worker.

I want a clean nextcloud online. 🙂

---

<div class="post-metadata">

**Author:** ![TomAdmin](https://help.nextcloud.com/letter_avatar/tomadmin/32/6_449c533f586939b6e5f246632a46421f.png) [@TomAdmin](https://help.nextcloud.com/u/TomAdmin)\
**Post date:** [June 7, 2018, 11:08am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/19 "2018-06-07T11:08:25Z")

</div>

It’s done. My proxy is okay on my Ubuntu. i can apt-get update / upgrade. i can ping or whatever …

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [June 7, 2018, 11:09am UTC](https://help.nextcloud.com/t/proxy-nextcloud/32636/20 "2018-06-07T11:09:42Z")

</div>

> [@TomAdmin](#):
>
> My proxy is okay on my Ubuntu

No, it is not:

> [@TomAdmin](#):
>
> Failed to connect to [www.nextcloud.com](http://www.nextcloud.com) port 80: Connection timed out

[Next page](https://help.nextcloud.com/t/proxy-nextcloud/32636.md?page=2)
