Is possible to forward IP to a IP:port/application in pfsense?
-
Hello.
I have a server running in my LAN. I use pfsense as my firewall. I have a public IP. The address of my application server is xxx.168.1.211:8080/appname. I want to make this server accissible over the public network (internet) via my public ip. I know I can forward forward IP and ports in pfsense. But is it possible to make pfsense to forward requests comming to my public IP (103.200.153.50) to my application server (192.168.1.211:8080/appname)? -
This is as simple a how-to as any I've found:
https://community.spiceworks.com/how_to/113021-port-forward-nat-with-pfsense -
Port-forward-nat is fine and brings you to: server.ip:8080
But how about the application folder: server.ip:8080/appname -
/aapname has nothing to do with nat nor port forwarding.. You would have to do that with a proxy. Where you hit the proxy on ip:port and it forwards you to ip:port/appname
-
Or you can put a redirect directly on the hosting server to load /appname when a user hits /. Alternately, have /appname specifically included in the link.
-
True.. Or just have the page served anyway as the default if all that is being served is appname
What exactly are you serving that needs /appname ?? Why not use a name like appname.domain.tld and serve it up off 80 so you don't have to do any of this nonsense.. And your users just have a simple url http://appname.domainn.tld that resolves to your public IP, which pfsense forwards to the private IP serving it up.
You know what I see when I see stuff like this "The address of my application server is xxx.168.1.211:8080/appname"
Your doing it WRONG!!!
-
Your doing it WRONG!!!
Well, the question was puyax' first post on this forum.
Maybe your candor is a bit frightening, don't you think? -
Is he a 13 year old girl on her first period as well? Frightening?? Oh the bad man on the internet said I was doing it wrong ;) ROFL…