We host an Odoo server with an SSL certificate on our local network. It is also let out in the whole wide world through one of our 5 public IP addresses.
So my setup is as follows:
Ether0 → WAN
Addresses:
/ip address
add address=222.222.222.222/29 interface=ether1 network=000.000.000.000 //The IP the router runs on
add address=333.333.333.333/29 interface=ether1 network=000.000.000.000 //The IP the server is hosted on
I have some hairpin NATs to forward the relevant ports to the public IP we use to host the server on:
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=333.333.333.333 dst-port=443
protocol=tcp to-addresses=192.168.1.100 to-ports=443
add action=dst-nat chain=dstnat dst-address=333.333.333.333 dst-port=80
protocol=tcp to-addresses=192.168.1.100 to-ports=80
So my problem is this:
Odoo sends out a nice email that has a URL at the bottom:
our.nice.url
That URL is set up with the domain name to point to out local IP Address: 333.333.333.333
But we can’t access it from inside the local network.
I tried a quick and dirty workaround by adding a static A record in the DNS:
/ip dns static
add address=192.168.1.100 disabled=yes name=our.nice.url which seems to work, but the SSL is broken on that.
And I’d rather not work with all kinds of workarounds.
Can someone give me any advice?
iWishToNameItThis.rsc (26.6 KB)