Can't access NextCloud from WAN

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
Yesterday I set up NextCloud on my NAS. It worked fine and I forwarded the port so my friends could store their stuff too. Everything worked fine until today it doesn't work anymore. Works fine from LAN, not from WAN.
Details that may be related:
  • My NAS has 2 LAN IPs. (idk why): 192.168.88.188 and 192.168.88.30. In TrueNas the stated admin portal was .188:8282, but it was using .30:8283. I set up port forwarding for both IPs, HTTP and HTTPS for both ports.
    chrome_Bhimt2jkcR.png

    I don't see .30 in the settings though?
    chrome_y1vhYVVhOA.png
  • My nat rules (Mikrotik router)
    chrome_E6bM0l1msl.png
  • It doesn't work on .30:8283 anymore, only .188:8283
  • I tried disabling hardware offloading. Doesn't make a difference. When I did it yesterday it stopped working though
  • I use a ddns which works properly (I can access TrueNas from wan)
  • I tried connecting to:
    • 192.168.88.188:8283 - Works, didn't work yesterday
    • 192.168.88.30:8283 - Doesn't work, worked yesterday
    • (ddns IP):8283 - Doesn't work, worked yesterday
    • (my IP):8283 - Doesn't work (didn't test yesterday)
    • All of the above but port 8282, never worked
    • 192.168.88.188:8282 - I think it worked yesterday? That was my first install though, I started from scratch after
Specs:
TrueNAS-12.0-U8.1
CPU: i3-7100
RAM: 2x32 GB 2666 MHz CL19 (running at 2400 MHz CL17)
Motherboard: Asus Prime B250m-k
Storage: 3x4TB Ironwolf NAS
Ethernet port: TX401 (RJ45)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
You have 2 problems I can see there...

1. you're using a realtek NIC... maybe not causing a specific problem, but not optimal.

2. you're running 2 IP addresses on the same subnet... see here: https://www.truenas.com/community/resources/multiple-network-interfaces-on-a-single-subnet.45/
EDIT: or maybe not... you just have an additional IP address defined (Why?/Why wouldn't you just remove that?)
1. yeah it's the one from the motherboard, I use a 10 gbps network card directly to my pc.
2. I have no idea why it did that, but if you know how to remove .30 and believe it may work do tell
 

vidx

Dabbler
Joined
Oct 16, 2021
Messages
40
One of the IP is possibly reserved for another device that's no longer in use and DHCP assigned a 2nd IP to your NIC. Try to set another IP
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Maybe worth doing a "reset configuration" on the NIC and see if you can get it to disappear that way.
 

Askejm

Dabbler
Joined
Feb 2, 2022
Messages
34
Maybe worth doing a "reset configuration" on the NIC and see if you can get it to disappear that way.
That fixed it, thanks! Seems like I just had to leave the IP addresses field empty, .30 must've been chosen by default and I didn't know that I don't have to manually add an IP like on my network card.
 
Top