Hello community,
im trying to install Nextcloud AIO at home on a Debian VM on a Proxmox server and OpenWRT router.
I get 20/20 at ip6-test.com testing with a Debian Desktop for instance.
The problem now is that when i try to reach my new Nexctloud via URL i get redirected to LUCI.
So i´ve searched around and thought i could solve it by adding Hostsnames under DHCP and DNS. I tried though with the ipv4 and ipv6 address of the VM on which Docker is running on, but no luck.
Via GSM coming from WAN everything is reachable and fine, it´s just that when i try to connect to it with a browser from LAN, that i get then redirected to the OpenWRT. It works via IPv6 as long as i got disconnected from my ISP (DTAG) which leads to new IPv6 addresses. How can i assure that the Port Forwarding in OpenWRT gets "updated"??
Adding my external DnyDNS domain to the rebind protection didn´t helped me also, but probably i´ve done it wrong anyways.
So here is my config so far, i appreciate any help :).
Router ipv4: 192.168.178.1
VM with Docker and NC ipv4: 192.168.178.46 (Reachable via 80 and 443 from WAN)
/etc/config/network/
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd3b:ec65:a318::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
option igmp_snooping '1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.178.1'
option ip6assign '64'
config device
option name 'eth0.2'
option macaddr 'c0:'
config interface 'wan'
option device 'eth0.2'
option proto 'pppoe'
option username ''
option password ''
option ipv6 'auto'
option peerdns '0'
list dns '1.1.1.1'
list dns '8.8.8.8'
list dns '2606:4700:4700::1111'
config interface 'wan6'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option device '@wan_6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 0t'
config interface 'WG0'
option proto 'wireguard'
option private_key
option ip6assign '64'
list addresses '192.168.20.1/24'
list addresses 'fd42:42:42::1/64'
option listen_port ''
option mtu '1280'
list ip6class 'wan6'
I redacted some parts like VPN and some standard stuff.
cat /etc/config/firewall
config defaults
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fc00::/6'
option dest_ip 'fc00::/6'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config rule
config rule
option name 'wgv6test'
option family 'ipv6'
option src 'wan'
option target 'ACCEPT'
list proto 'udp'
option dest_port ''
config redirect 'adblock_lan53'
option name 'Adblock DNS (lan, 53)'
option src 'lan'
option proto 'tcp udp'
option src_dport '53'
option dest_port '53'
option target 'DNAT'
config redirect 'adblock_lan853'
option name 'Adblock DNS (lan, 853)'
option src 'lan'
option proto 'tcp udp'
option src_dport '853'
option dest_port '853'
option target 'DNAT'
config redirect 'adblock_lan5353'
option name 'Adblock DNS (lan, 5353)'
option src 'lan'
option proto 'tcp udp'
option src_dport '5353'
option dest_port '5353'
option target 'DNAT'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Nextcloud'
option src 'wan'
option src_dport '443'
option dest_ip '192.168.178.46'
option dest_port '443'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'V6httpsTest'
option family 'ipv6'
option src 'wan'
option src_dport '443'
option dest_ip '2003:c7:4fff:3f6c:be24:11ff:fe17:495'
option dest_port '443'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'NextcloudHttp'
option src 'wan'
option src_dport '80'
option dest_ip '192.168.178.46'
option dest_port '80'