@futurecis:
Unfortunately, my circumstances will not allow me to do it this way. I am not just hosting webservers. I have to be able to host email, web, and several other applications/services.
For example, if I have abc.com and xyz.net, i need to be able to have PF support both domains as well as all sub-domains associated with them. I can point my registrar to my one public facing IP so all internet traffic to both domains would come to my IP. However, I need the ability to control where traffic for each domain will go once it gets to me. At this point, I do not see how PF can handle that since it only supports one domain handle.
I don't know specifically about pfSense (and I already hear about people wondering why do you answer then…)
I'm assuming that you have the typical setup where when you connect to your ISP , you get a single IP address and they then route a subnet to you.
Say you connect, you get allocated 210.210.210.1 ; the subnet being routed to you is:
58.179.125.1/28 (14 usable IPs)
create an alias on a network card (either the one on the WAN, or one that isn't your LAN)
ifconfig alias xl0 58.179.125.2 netmask 255.255.255.255
ifconfig alias xl0 58.179.125.3 netmask 255.255.255.255
ifconfig alias xl0 58.179.125.3 netmask 255.255.255.255
etc... for all 14
Then you create a static NAT from 58.179.125.2 -> LAN 192.168.0.30
natd.conf would contain:
redirect_address 192.168.0.30 58.179.125.2
the default gateway of 192.168.0.30 is the LAN address of the gateway of course.
That's it.
Now if you can do that in pf web interface, I'm all for it ; because that's precisely what I will be looking at doing ..
Cheers
Jean-Yves