Can't acces to my web server from outside: box firewall NAT

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Can't acces to my web server from outside: box firewall NAT

Postby goldenol » 02. June 2020 19:11

Hello all,

I don't know if I'm in the good place to post my request. I'm quite not used to post on forums. Frorgive me if it's not the case.
However, I expose you my problem which makes me stuck from yesterday and maybe you can help or address me to a more appropriated forum :
I have a Windows 10 host and a Virtualbox Ubuntu 16.04 with lampp on it. I'm developping a wordpress/elementor website and some plugin (API) need to rely to a dns name.
I have a no-ip name (ping answers) configured in my livebox (french internet box)
My Apache server is listening on ports 8080 (to avoid 80 port issue with the box) and https 443.
This works well when I access from my Windows host with the virtual host IP (configure in VB bridge mode with my wifi adapter) and provide the xampp dashboard.
I desactivated ubuntu and windows firewall for the moment.

I opened the firewall on the box to accept TCP destination ports 8080 and 443.
In box Nat configuration, I forward ports 8080 and 443 to my virtualbox.

But now when I tried to connect from my host Windows to the dashboard with the dns name (external access), I fall down in timeout after one minute (ERR_CONNECTION_RESET). I tried also with a phone not connected to the wifi LAN without success.

I configured the Apache server like this :
- in /opt/lampp/etc/httpd.conf
Listen 8080
ServerName myDnsName:8080 (I tried with and without port)

For the document root htdocs
in the directive <Directory "/opt/lampp/hatdocs">, I have :
Resquire all granted

- in /opt/lampp/etc/extra/httpd-ssl.conf
Listen 443
in <VirtualHost _default_:443>
ServerName myDnsName:443
I have an autosigned certificate (https works in the LAN)

- nothing special in /opt/lampp/etc/extra/httpd-xampp.conf except a "Require all granted" for phpmyadmin

I test the ports on
and 8080 and 443 (my external ip is discovered) are success.

Something interesting is my client Filezilla on the Windows host can access to the Proftpd server with the dns name.
I openened port 21 et 2 data ports and forwardes them with NAT to the Virtual box host. The same way I did for http and https.

I may be wrong but I guess My Apache configuration is not good.
I hope you can help me.

Thank you in advance to read me.
Posts: 1
Joined: 02. June 2020 16:01
XAMPP version: linux-x64-7.4.6-0
Operating System: Ubuntu 16.04 LTS

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 15 guests