Port forwarding with two WAN
-
Hello Experts,
I would like to know how to port forwarding in two different wan.
Let me give you a brief outlook of my network.
I have to Wan (source of Internet) 1. static ip. 2. dynamic. I combine them in gateway groups. Now i want to forward port with the static ip. How can i do that. Is that possible. Is that the good Idea?
-
Just forward your port on WAN1 with the static IP and done. What's the problem or concern?
https://www.netgate.com/docs/pfsense/book/multiwan/multi-wan-and-nat.html#multi-wan-and-port-forwarding-Rico
-
i tried but when the local computer used the ip of the dynamic wan it cannot connect to the services like mysql.
-
So you have problems when connecting to your portforward from the internal network?
Setup port reflection or better split DNS: https://www.netgate.com/docs/pfsense/nat/accessing-port-forwards-from-local-networks.html-Rico
-
thank you sir let me try.
-
great.. thanks... now how can i route all traffic on WAN1(dynamic) except certain protocols to WAN2(static)?
-
Match your traffic in firewall rules and switch the gateway (display advanced) to any gateway or gateway group you like.
https://docs.netgate.com/pfsense/en/latest/routing/directing-traffic-with-policy-routing.html-Rico