Ah, yes, I see what you mean. With a command like this:
set system static-host-mapping host-name erebor.db48x.net inet 182.168.2.2
I can indeed access erebor.db48x.net from both the inside and the outside, because the address I get depends on whether I am inside or outside the network. Typos aside, that is almost enough to work. Sadly I must deal with port numbers as well; several computers running ssh on port 22 all need to be mapped to different port numbers on the router. With a static address mapping like this those port numbers no longer work. I suppose I could change my sshd config to listen on different ports, but the changes are now starting to spiral outside of the router configuration.
I think I'd rather try to get hairpin nat working, but at least there's a fall-back option.
set system static-host-mapping host-name erebor.db48x.net inet 182.168.2.2
I can indeed access erebor.db48x.net from both the inside and the outside, because the address I get depends on whether I am inside or outside the network. Typos aside, that is almost enough to work. Sadly I must deal with port numbers as well; several computers running ssh on port 22 all need to be mapped to different port numbers on the router. With a static address mapping like this those port numbers no longer work. I suppose I could change my sshd config to listen on different ports, but the changes are now starting to spiral outside of the router configuration.
I think I'd rather try to get hairpin nat working, but at least there's a fall-back option.