zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.35k stars 1.92k forks source link

About ipv6 requirements #4530

Open SQM-fuleiya opened 11 months ago

SQM-fuleiya commented 11 months ago

Describe feature

My native language is not English, I do not understand English, the following content is machine translation, please forgive me. Because I don't have public ipv4 but I have public ipv6, I need to access the ipv6 service on the public network, but I don't know how to turn on the service. Ask for your help. My docker can get ipv6 routes because other Dockers can access them. I have reviewed multiple profiles for trilium, which I will attach below. But I still don't know how to get trilium to support ipv6. I obscured some of the ip addresses to be safe.

cat /etc/resolv.conf

Generated by dhcpcd from br0.dhcp6, br0.ra

nameserver 8.8.8.8 domain lan nameserver 2409:8a74::1

cat /etc/hosts

127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.17.n.n 4d1ennnnnnnn fd17::242:nnnn:n 4d1ennnnnnnn

cat /etc/sysctl.conf

Do not accept ICMP redirects (prevent MITM attacks)

net.ipv4.conf.all.accept_redirects = 0

net.ipv6.conf.all.accept_redirects = 0

Do not accept IP source route packets (we are not a router)

net.ipv4.conf.all.accept_source_route = 0

net.ipv6.conf.all.accept_source_route = 0

If you need to change that configuration file, please let me know. Thank you

Additional Information

No response

SQM-fuleiya commented 11 months ago

I found a question posted by thinkinnight in 2022. But I don't know where the module is.

module. exports = process.env.TRILIUM_HOST || config['Network']['host'] || '0.0.0.0';