Set it as the homepageBookmark this site

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย

 Retrieve your password
 Sign up now
img_loading
Intelligent detection

QQ login

Just one step, get started quickly

Search
Ad delivery contact QQ68610888Ad delivery contact QQ68610888
glinet
View: 2912|Reply: 2

为lmnp,owncloud Nextcloud 增加外网ipv6访问

[Copy link]
Posted on 2020-3-2 12:53 | Show all floors |Reading mode
This post was last edited by bcahlit on 2020-3-3 11:17

NextCloud has been set up, but the Internet IPv6 is lacking and cannot be accessed. Moreover, the optical modem does not have the function of port mapping, and V4 is not good. Previous experience with v6 access to ftp, should be ok.

Method: Edit inside the router:
vi /opt/bin/sh_onmp.sh

Original line 1846:
sed -e "s/.*listen.*/    listen $1\;/g" -i /opt/etc/nginx/vhost/$2.conf
Modified 1846 behavior:
sed -e "s/.*listen.*/    listen $1\;\n    listen [::]Delete 1\; /g" -i /opt/etc/nginx/vhost/$2.conf
(Because $1 will become an emoji when it is connected together, everyone can delete the kanji in the middle by themselves)
It is to add IPv6 listeners to NGINX, and after restarting LNMP, you can use IPv6 to access NextCloud on the Internet. Next, follow the prompts to add a trust.

--------------------------------------- The above is enough to solve the problem, and the following is the solution

The process of solving,First of all, google problem,Nextcloud says it supports v6 by default,But I can access the web management interface with v6 after I turn off the firewall,But I can't access nextcloud.。。 I think there's a problem.
Later, I thought it was a problem with nginx, so I searched for the configuration of nginx.
find | grep nextcloud.conf # Locate the configuration file
/opt/etc/nginx/conf/nextcloud.conf
However, there is no listening configuration in it, so I look for the configuration file of nginx
There is 1 sentence in cat ./etc/nginx/nginx.conf

include /opt/etc/nginx/vhost/*.conf;
I found that there is indeed a listening port in /opt/etc/nginx/vhost/Nextcloud.conf.

Manually add an IPv6 listener, restart LNMP, and find that IPv6 still cannot be accessed. Take a look at the configuration file. The ipv6 I added by myself is gone...
Thinking that there is a script, I found the point to be modified in the big git repository of H, added it, and restarted it.

I use the new three performance 1 general, I feel that this thing is not very suitable, barely enough. If you want to transfer files, filemanager is more lightweight.


More resources are included in this post

You need login Can you download or view without an account?Sign up now

×

Score

Number of participants 1Enshan coins +2 Collapse reason
szkorman + 2 Mighty Eun Mountain! (Repeat 10,000 times below)

See all ratings

Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Published on 2020-7-4 21:59 | Show all floors
No wonder the various plug-ins in the web construction can only be accessed by IPv4 external network IPv6 Even if it is a public network, it can't be accessed It turns out that this is the reason But I followed your tutorial IPv6 still can't be accessed I built on the new three, such as qBit, these plug-ins can be perfectly accessed with IPv6 domain names I don't know why? Thank you
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Posted on 2020-7-4 22:58 | Show all floors
I also want to ask the landlord, if I want to let IPv6 access to z-blog, how should I set it up? Thank!
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
You'll need to be logged in to reply to posts login | Sign up now

This version of the points rules

Shut down

Welcome to the Enshan Wireless Forum

Only talk about technology, don't talk about politics! Don't spread rumors! For you and for others.
Only talk about technology, don't talk about politics! (Click for details) Remember not to spread rumors at will, just live your life in peace, for your own good and for the good of everyone. Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.

View »

If in doubt, add an administrator QQ86788181|Mobile version|Little dark house|Archiver|Enshan Wireless Forum (Changzhou Enshan Computer Development Co., Ltd. All rights reserved) ( Su ICP No. 05084872 )

GMT+8, 2025-5-21 03:28

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表