Seafile IPV6支持怎么配置?


#1

请问下Seafile IPV6支持怎么配置.

我查了英文论坛,那边给了个链接.

https://seafile.readthedocs.io/en/latest/installation/network/#ipv6

nmap IPV4地址反馈结果为
PORT STATE SERVICE
22/tcp open ssh
8000/tcp open http-alt
8082/tcp open blackice-alerts

nmap IPV6地址反馈结果为
PORT STATE SERVICE
22/tcp open ssh

发现问题应该是IPV6端口未开导致的.

我应该怎么配置才能打开ipv6的8000和8082端口???

我测试了
ip6tables -A INPUT -p tcp --dport 8000 -j ACCEPT
ip6tables -A OUTPUT -p tcp --dport 8000 -j ACCEPT
但是并没什么用.

我的系统是Debian,是按默认配置模式来配置的.
https://manual-cn.seafile.com/deploy/using_mysql.html


#2

在Nginx开启ipv6访问 然后proxy到seafile就可以了


#3

老大你的Nginx 是怎e么设置的能发个分享吗 我就是ipV6 ip用不了


#4

供参考:在ipv4已经可以访问的基础上,只需要打开ipv6的监听 listen [::]:443 ssl;
server {
listen 0.0.0.0:443 ssl;
listen [::]:443 ssl;

	ssl_certificate xxx.cer;
	ssl_certificate_key xxx.key;

	server_name xxx.net;  
	proxy_set_header X-Forwarded-For $remote_addr;

	access_log   log/https.access.log;
	error_log log/https.error.log;

	location / {
		proxy_pass http://127.0.0.1:58000;
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Host $server_name;
		proxy_set_header X-Forwarded-Proto https;
		proxy_read_timeout 1200s;
		client_max_body_size 0;
	}
	
	location /seafhttp {
		rewrite ^/seafhttp(.*)$ $1 break;
		proxy_pass http://127.0.0.1:8082;
		client_max_body_size 0;
		proxy_connect_timeout 1200s;
		proxy_read_timeout 1200s;
	}

	location /media {
		root /xxx/seafile/seafile-server-latest/seahub;
	}

}


#5

非常感谢分享 谢谢


#6

搞定了 多谢,Nginx配置搞定的