Dear All,
I’m an ex DDWRT (R7800) user, i.e. …. a newbie in OpenWrt ![]()
I changed the ISP (to a new IPv6 PD/56) and moved to OpwerWRT(Flint2) 24,10,5
GOAL
I run a NextCloud server (on ubuntu 24,04) at home, with a registered domain,
As I did before with DDWRT and IPv4
, I need to access my server using the domain name (www.cloud5.it)
from home lan AND from outside,
PROBLEM
I followed onemarkfifthy youtube videos to learn something about OpenWrt and IPv6, and set the Flint2-OpwnWrt router as edge router.
I successfully set the PPOE connection, BUT cannot manage to have the web server recognized by hostname in the lan AND in the internet.
What I TRIED
Network → Intefaces →lan (advanced):
set the ip assignment to 64bit, removed the use default gateway, assign the prefix hint to “a” (from onemarcfifthy this should lead to a final subnet without any more subnet, and should help the router defining the ipv6 addresses)
Network – DHCP and DNS → Static leases :
Added a static lease for the server linking the IPv4 address to the MAC address, setting the ipv6 suffix, and setting the hosname
Network → DNS Record → Hostname tab:
Set the same hostname to the same ipv4 address
Tried to disconnect and reconnect the cable to renew the lease….
FAILURE:
-
from lan I can reach the server with the hostname ONLY if before I get it by IPv4 local address (if I try at first the hostname in the URL the site is unreacheable. Seems the browser is solving the problem….)
-
the web server do NOT get a global IPv6 public global static address
-
if I test my ip, the recognized ipv6 is NOT the global dynamic noprefixroute, BUT the scope global temporary dynamic… seems I have NO ipv6 public global address…
-
not having a public address, I cannot set a AAAA record with my registar) (as in the log, the suffix create ONLYa global dynamic noprefixroute)
HELP !!!
I attach a copy of the
- OpenWRT: /etc/config/dhcp
- server: ip a command
- server: /etc/host and /etc/hostname
THANKS in advance for any help !!
router /etc/config/dhcp
/etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
option piofolder '/tmp/odhcpd-piofolder'
config host
option name 'www.cloud5.it'
list mac '4C:52:62:A6:34:0A'
option ip '192.168.0.29'
option leasetime 'infinite'
option hostid '0707'
config domain
option name 'www.cloud5.it'
option ip '192.168.0.29'
giuliano@www:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 4c:52:62:a6:34:0a brd ff:ff:ff:ff:ff:ff
altname enp2s0
inet 192.168.0.29/24 brd 192.168.0.255 scope global noprefixroute eno1
valid_lft forever preferred_lft forever
inet6 fdec:8885:cfd:a::707/128 scope global dynamic noprefixroute
valid_lft 43005sec preferred_lft 43005sec
inet6 2a00:6d43:605:cf0a::707/128 scope global dynamic noprefixroute
valid_lft 616sec preferred_lft 616sec
inet6 2a00:6d43:605:cf0a:6ae3:f4f7:814d:52b5/64 scope global temporary dynamic
valid_lft 616sec preferred_lft 616sec
inet6 2a00:6d43:605:cf0a:4e52:62ff:fea6:340a/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 616sec preferred_lft 616sec
inet6 fdec:8885:cfd:a:4a08:772e:e3f9:4ab9/64 scope global temporary dynamic
valid_lft 5365sec preferred_lft 2665sec
inet6 fdec:8885:cfd:a:4e52:62ff:fea6:340a/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 5365sec preferred_lft 2665sec
inet6 fe80::4e52:62ff:fea6:340a/64 scope link noprefixroute
valid_lft forever preferred_lft forever
giuliano@www:~$ sudo cat /etc/apache2/sites-enabled/nc_www.cloud5.it.conf
[sudo] password di giuliano:
################################################################################
# This file was generated by Ansible for www.cloud5.it
# Do NOT modify this file by hand!
################################################################################
<VirtualHost *:80>
ServerName www.cloud5.it
ServerAlias 192.168.0.29 cloud5.it
Redirect permanent / https://www.cloud5.it/
</VirtualHost>
<VirtualHost *:80>
ServerName 192.168.0.29
Redirect permanent / https://192.168.0.29/
</VirtualHost>
<VirtualHost *:443>
ServerName www.cloud5.it
ServerAlias 192.168.0.29 cloud5.it
DocumentRoot /var/www/nextcloud/
LimitRequestBody 536870912
LimitRequestFieldsize 32768
SSLEngine on
SSLCertificateFile /etc/ssl/www.cloud5.it.crt
SSLCertificateKeyFile /etc/ssl/www.cloud5.it.key
# enable HTTP/2, if available
Protocols h2 http/1.1
<Directory /var/www/nextcloud/>
Allow from all
Satisfy Any
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud/
SetEnv HTTP_HOME /var/www/nextcloud/
</Directory>
</VirtualHost>
# intermediate configuration, tweak to your needs
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
SSLHonorCipherOrder off
# SSLSessionTickets off
SSLCompression off
# OCSP stapling
SSLUseStapling on
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
SSLStaplingCache shmcb:/var/run/ocsp(128000)
cat /etc/hosts & cat /etc/hostname
giuliano@www:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 www.cloud5.it
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
giuliano@www:~$ cat /etc/hostname
www.cloud5.it