Accessing hosted services from internal and from external
-
Hello everyone,
I have a small setup to host websites, mail, etc…
pfsense (2.3.4) with one WAN (static public ip) and one LAN
port forwarding (80+443) from wan to lan (pound server)
pound server which dispatch request to the right backend
a dns server on internet is resolving the hosted domains with the static wan address.=> this is a pretty standard setup and everything is working well when someone tries to connect from external (internet)
Here is a diagram with an example for web connections : -> attachment: from_external.png
But when I want to access the same service from internal (lan), it no longer works. I guess that since connection come through LAN interface, it does not go through the port forwarding...
Here is a diagram of what does not work : -> attachment: from_internal.png
Does anyone know what I should do to make it work ?
Thanks !


-
But when I want to access the same service from internal (lan), it no longer works. I guess that since connection come through LAN interface, it does not go through the port forwarding…
That's the point.
Use an internal DNS and set up a host override.
You may use DNS Resolver or DNS forwarder installed on pfSense found in Services menu.You may also activate NAT reflection + proxy in the NAT rule to resolve this.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy