Routing Internet Traffic Through A Site-To-Site Tunnel
-
Hi
I routed my internet traffic through A Site-To-Site OpenVPN Tunnel with two pfsense box following this instruction:
https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-s2s-route-internet-traffic.html
Everything is working fine except one thing. I use it for mail server and because PTR record of mail server set for remote IP i want internet get disconnected on LAN if tunnel is down but current behavior is internet route with just local public IP if tunnel is down a it's possibly make mail servers spam my emails or even rejected it.
How can i change this behavior?
Thanks -
@Farh
You can route the mail server to the remote site with a policy routing rule at the top of the rule set and disable "skip rules, when gateway is down" in System Advanced Firewall settings. -
@viragomann
I think "skip rules, when gateway is down" in system/Advanced/Miscellaneous that you mentioned is the point that i didn't know.
Thank you so much.