*New 12.1 series Release:
2020-03-24: XigmaNAS 12.1.0.4.7389 - released

*New 11.3 series Release:
2020-03-24: XigmaNAS 11.3.0.4.7383 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Nextcloud with IPV6

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
DirkG
NewUser
NewUser
Posts: 5
Joined: 26 Mar 2020 20:38
Status: Offline

Nextcloud with IPV6

#1

Post by DirkG »

I changed my internet connection, the new provider only offers IPV6.
Now I can't access my Nextcloud from outside.

With IPV6 there is no port forwarding any more.
I took the ipv6 address of my NAS from my cable router and put it into the configuration of my dyndns provider.
Now with my URL I can access the GUI of NAS4FREE from outside, but not my nextcloud.

My inhouse address is:
https://192.168.2.102:8080/nextcloud

but from outside now url:8080/nextcloud doesn't work


NAS4Free 11.1.0.4 - Atomics

User avatar
Snufkin
Advanced User
Advanced User
Posts: 321
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: Nextcloud with IPV6

#2

Post by Snufkin »

DirkG wrote:
26 Mar 2020 21:01
but from outside now url:8080/nextcloud doesn't work
Please check if you open port 8080 in your router IPv6 firewall

I have following settings in my own edge router (Linux based)

Code: Select all

ip6tables -I FORWARD -p tcp --dport 80 -j ACCEPT
ip6tables -I FORWARD -p udp --dport 443 -j ACCEPT
ip6tables -I FORWARD -p tcp --dport 443 -j ACCEPT
where
  • 1st line to accept Let's Encrypt validation request via http
  • 2nd and 3rd lines to serve secured (https) external connections to Nexcloud instance
You may even specify destination IPv6 address (-d option) as well.
ip6tables(8) - Linux man page
XNAS 11.3.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614

DirkG
NewUser
NewUser
Posts: 5
Joined: 26 Mar 2020 20:38
Status: Offline

Re: Nextcloud with IPV6

#3

Post by DirkG »

I have a vodafone cable router, there I can only switch on or off the firewall.
I switched it off, doesn't help

Error message
xxxx.selfhost.eu hat die Verbindung abgelehnt.

DirkG
NewUser
NewUser
Posts: 5
Joined: 26 Mar 2020 20:38
Status: Offline

Re: Nextcloud with IPV6

#4

Post by DirkG »

I googled a bit and found this:

nas4free: ~# sockstat -4 -l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
www lighttpd 3267 4 tcp4 *:8080 *:*
root lighttpd 3180 4 tcp4 192.168.2.102:443 *:*

nas4free: ~# sockstat -6 -l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root lighttpd 3180 5 tcp6 2a0a:b08a:4c2a:620a:b25a:99ff:fe56:f704:443 *:*

So there is no ipv6 connection for my nextcloud running, only for the nas4free gui,

User avatar
Snufkin
Advanced User
Advanced User
Posts: 321
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: Nextcloud with IPV6

#5

Post by Snufkin »

DirkG wrote:
28 Mar 2020 15:26
So there is no ipv6 connection for my nextcloud running, only for the nas4free gui,
Don't you forget to enter below IPv6 directive in your webserver config?

Code: Select all

$SERVER["socket"] == "[::]:8080" { }
More details could be found here Lighttpd IPv6 config
XNAS 11.3.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614

DirkG
NewUser
NewUser
Posts: 5
Joined: 26 Mar 2020 20:38
Status: Offline

Re: Nextcloud with IPV6

#6

Post by DirkG »

Thanks
I added:

Code: Select all

$SERVER["socket"] == "[::]:8080" {ssl.engine = "enable" }
Now I can reach my owncloud from outside.

Post Reply

Return to “Extensions / Add-ons”