Question

Routing traffic through pfSense

I have two droplets. pfSense and WEBSRV.

I want to be able to route any incoming/outgoing traffic that hits WEBSRV through the pfSense droplet. Is this possible?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Yes, you need to enable ip forwarding in your pfsense and configure NAT. Then, in the webserver, you’ll have to add the private ip of your pfsense as the gateway and make changes like shown here: https://www.digitalocean.com/docs/networking/vpc/resources/droplet-as-gateway/

how did you resolve this? what is the best practice and most secure way?

How can I enable IP Forwarding on PfSense and how congirue NAT ?

I think NAT from LAN to WAN is already configured by default on PfSense NAT