I already use port forwarding to access individual devices.
My doubt is what do I set?
Do I enter the IP of my single device or do I have to enter a range of addresses?
Or do I have to enter my VPN IPs?
Whoever manages my VPN tells me:
The only traffic that must enter the VPN is exclusively that towards the IPs 10.100.0.x/23, so it is not a matter of routing as the device has an address in that class (the address you assigned via OpenVPN…)
In fact, I have everything working except the output of e-mails and the only way to get them out, by doing the tests, was to put one of the two “Route Mode” settings
To exit emails, which are clearly blocked by Mango, is it advisable to use "Auto Detect" or "Customizer Routing Rule"?
In the second case, what do I set in the "Target Address"? IP of my device connected to the LAN or IP of the VPN assigned to the OpenVPN Client?
These settings are not clearly explained in the documentation
As a first step I configured WAN in DHCP and LAN with fixed assignment of my device's IP via the mac address. (these two steps should be irrelevant to my problem)
I have configured the VPN and it connects successfully to my VPN server
I configured port forwarding and this works correctly and allows me to reach my device (web server)
Problem:
If I am connected to the VPN the emails do not go out, if the VPN Client is turned off the emails go out
If I am connected to the VPN and with my PC on wifi at Mango I have no web traffic.
Note:
If I connect to my VPN with another device with an internal openVPN client, the emails work
If I do the same type of configuration on another industrial router (No GL-iNET) the emails go out and I can also browse the web
So from all the tests carried out the problem is limited and it is the Mango that blocks my internet traffic if I do not enter one of the Router Mode options in the VPN settings.
Therefore, with the VPN active, the only incoming traffic should be that towards the IPs 10.100.0.x/23, so it shouldn't be a matter of routing since the Mango has an address in that class.
In conclusion the questions are:
To exit emails, clearly blocked by Mango, is it advisable to use "Auto Detection" or "Custom Routing Rule"?
In the second case, what do I set in the "Destination address" field? IP of my device connected to the LAN or IP of the VPN assigned to the OpenVPN client?
The devices connected to the Mango LAN do not have to surf the internet, they just have to be able to send emails.
Our system then uses the VPN for a secure connection and the end user navigates the web pages via his browser
From the tests carried out and described above, it is clear that it is the Mango that blocks the sending of emails.
My device, with linux firmware, sends emails directly.