Can I setup and Firewall Rule and NAT Rule for this.
-
My pfSense server is setup with 2 web servers protected by it. For the sake of example let me say that the lan addresses of the servers are as follows
pfsense 192.168.1.1
web1 192.168.1.4
web2 192.168.1.5The wan address for the pfsense server could be 5.4.3.1
I would like to be able to access either server using different url/ports but I'm confused about the syntax of the url and what it would actually mean to pfsense.
For web1 I would try and access from the internet using the url https://5.4.3.1:10001
and for web2 I would use the url https://5.4.3.1:10002Now both are using https which is port 443 - but then we have the suffix 10001 and 10002 which I'm not sure helps me or not ?
Can I distinguish between these two incoming connections and forward/nat them to the different servers web1 and web2
I have experimented with no joy - can someone let me know if this is possible or would I have to start reading up on proxy servers.
Thanks
Dave
-
You can do this with port forwarding (firewall-> nat)
-
sure just forward 10001 to web1 ip on port 443
then forward 10002 to web2 ip port 443
This is done under your nat rules, and then just let it create the firewall rules for you.