M
M
mr_nu112021-03-09 19:10:21
Network administration
mr_nu11, 2021-03-09 19:10:21

Cloudflare + pfsense how to bind the IP of one of the network servers to the domain?

There is a network from 2 servers. Pfsense router. From the provider I have 1 static white IP.

How do I link Cloudflare 1 domain to 1 server, 2 to another. I repeat, I have one IP from the provider (there are no problems to bind 1 server). In what direction to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Yuriev, 2021-03-09
@mr_nu11

In what direction to dig?

EMNIP, you can install nginx on Pfsense, set nginx
to listen on the WAN interface, and set up a reverse proxy in the role, which will forward traffic through the domain to the desired server within the network.
dig)
PS: Cloudflare is directed to your white static IP, which the provider gave you, but here, in my opinion, it is more than logical

M
mr_nu11, 2021-03-09
@mr_nu11

It looks like you are right. NAT cannot physically parse packets, you can only redirect to a proxy, as an option, one of the haproxy, nginx, squid plugins and parse them already for which domain the request is, and then forward it to the desired local web server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question