Score:0

pfSense: NAT port range to SSH on several servers using aliases?

sb flag

In pfSense, is it possible to map several ports to a single port on several machines in a way that each port will target the same port on a different machine using aliases?

Here is a scenario and what I've tried:

I have 100 LXC containers running on 192.168.0.100-192.168.0.199. So I create an host alias LXC_ALL with the value 192.168.0.100-192.168.0.199. I also create a port alias SSH_LXC_ALL with the value 22100:22199 for my external ports.

Now I create my NAT entry like so:

Destination port range SSH_LXC_ALL, Redirect target IP LXC_ALL and Redirect target port SSH.

The hope was to map WANIP:22100 -> 192.168.0.100:22, WANIP:22101 -> 192.168.0.101:22, ...

I realize this does not work. Is there even a way? I hope I can avoid creating hundreds of entries.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.