Routing to more than 1 LAN server using 1 IP
-
Hello Forum!
I've been using PFSense 1.2.3 for some time now. I've been able able to do everything I needed, but I hit a snag…
I am setting up 3 separate Asterisk boxes on my network, but only have 1 external IP. There are 3 separate groups using each box. When setting up phones on the client side, you must define a static hostname/IP. Here is the setup I envision:
24.55.34.122 (External IP that resolves to mydomain.com)
|
|
192.168.1.1 (PFSense Firewall)
| | |
| | |
192.168.1.2 192.168.1.3 192.168.1.4 (Asterisk Boxes)Here is my snag:
If I'm trying to connect a phone at Site #1 on the first Asterisk server, I would access asterisk1.mydomain.com; Site#2 would be asterisk2.mydomain.com, and so on. The subdomains are defined by setting up A records through my registrar (dotyou.com). (As a side note, I noticed there is a limit of 9 entries. I'm uncertain if this will be an issue long term, but I want to get the running sooner than later.)I've been trying to determine how to do this in PFSense. The closest thing I can find is:
- Setting up reverse proxy directly on PFSense (I'm not clear on where this is or can find docs on how).
- Using a separate box between the PFSense box and the Asterisk servers and using "Pound" to distribute the traffic. (http://www.apsis.ch/pound/index_html)
Is there an easy way to do this? Does anyone have an recommendations?