**Operating system** - Ubuntu Linux 22.04.3
**Webmin version** - 2.105
**Usermin version** - 2.005
**Virtualmin version** - 7.9.0
**Authentic theme version** - 21.09.5
Perl version - 5.034000
Path to Perl - /usr/bin/perl
Python version - 3.10.12
Path to Python - /bin/python3
BIND version - 9.18
Postfix version - 3.6.4
Mail injection command - /usr/lib/sendmail -t
Apache version - 2.4.52
PHP versions - 7.4.33, 8.0.30, 8.1.26, 8.2.13, 8.3.0
Webalizer version - 2.23-08
Logrotate version - 3.19.0
MariaDB version - 10.6.12
ProFTPD version - 1.37
SpamAssassin version - 3.4.6
ClamAV version - 0.103.9
Hello, the above is a clean fresh install of Ubuntu 22.04 with all it’s updates. (specifically 20.04 upgraded and dist-upgraded to 22.04 latest, I do not like the live installer, I get the system fully up to date with the only extra packages installed are
ssh and openssh-server before executing
sh virtualmin-install.sh as root
I did a lot of research on this before making this thread and I will put as much information as I can here.
On my first domain creation for management of the server, I did not notice any issues. The issues seem to have come from the restore from a Virtualmin 6.12 server backup (it was not a complete backup, only all servers and sub servers under 1 user). I am doing this migration since ever time I upgrade, I end up having to roll back because everything becomes un-responsive. The OS of the server being migrated is Ubuntu 18.04.5
Upon restoration, I did use the
Addresses and Networking > Change IP Address > Address type to change > External address used in DNS records
that fixed the existing records, but since the server does not appear to be listening to the settings (this is actually a mixed bag in Virtualmin Configuration, it has been a little of a headache. Also to note, I setup everything in Virtualmin Configuration, Server Templates and Account Plan myself before performing a restoration.
I did NOT restore any:
Server templates and plans
New user email messages
Custom fields, links and shells
Third-party script installers
Scheduled Virtualmin backups
FTP directory restrictions
Mail server settings
I figured there might be too much of a gap between the versions to do that
My issue. The new server is seeing everything as the wrong external IP address. I have to manually choose an other address when creating servers even with
Virtualmin Configuration > Networking Settings > Default IP address for DNS records - I have this set to Other address and the correct address entered.
at first I turned my attention to the firewall thinking one of my NAT settings was incorrect, since the address that is being “detected” is the primary on the firewall. This was not used as an address on the server being restored from either.
After going in circles for a little bit on the firewall, I logged in via ssh console to the server and ran:
curl -4 icanhazip.com
All of these return the correct IP address I am using in my port forwarding and my NAT setup.
I have tried all the other options under
Virtualmin Configuration > Networking Settings > Default IP address for DNS records, saved the settings and re-ran the configuration check and it still shows as the wrong IP address.
This is strange since I have another server that I setup about 2 months prior to this one, restoring different sites from it and did not run into this issue. (all of the same software was installed on that as this and is up to date currently as well)
I greatly appreciate any help anyone can provide on this issue,