When running Virtualmin's post-install wizard on an OpenVZ based virtual private server, it's not uncommon to encounter the following message when running Virtualmin's "Re-Check Configuration" script after initial install:
Default IP address is set to 127.0.0.2, but the detected external address is actually xxx.xxx.xxx.xxx. This is typically the result of being behind a NAT firewall, and should be corrected on the module configuration page.
This is not a grave concern and it can be easily remedied. Notice that the words "module configuration" in the above message are linked.
- If you see this above message, click on the linked text within the message that says "module configuration"
You'll arrive at the "Configuration" page.
- In the drop-down list next to the words "Configuration category", select "Networking settings".
In the form next to the words "Network interface for virtual addresses", it is very likely that you'll see that "venet0" is entered in the input field beside it. This should say "venet0:0" instead.
- In the form next to the text "Network interface for virtual addresses", change "venet0" to "venet0:0".
- Click "Save".
Although this fixes the problem most of the time, it may be the case that venet0:0 is not the correct network interface name either. One way to find out for sure what the correct network interface name is, is to run ifconfig at a shell prompt.
There should now be a message stating that:
Your system's primary IP address appears to have changed from 127.0.0.2 to 126.96.36.199. Virtual servers using the old address may be unreachable or serve the wrong web content.
Despite the fact that there are no virtual servers installed on a fresh system, action is required to make the message go away.
- Click on the button that says "Update Incorrect IP Addresses"
On the "Change IP Address" page, there are no addresses to change because there are no servers installed on a newly installed system. But the "Change Now" button must be clicked to make the previously mentioned message go away.
- Click the button that says "Change Now"
You can now have Virtualmin recheck your system's configuration.
- Expand the "System Settings" menu item located in the sidebar menu.
- Click the link that says "Re-Check Configuration
Virtualmin will now re-check your system's configuration.
That concludes the instructions on how to get rid of the notification pertaining to the default IP address being incorrect typically due to being behind a NAT firewall.