Multi gateway : specific gateway for specific LAN IP
-
Hello,
I'm new here :)I'm French, sorry for my english.
I use pfsense to manage a real firewall at home.
I own server (game servers), but I want use a specific gateway for all traffic about a server.Can I do this with pfsense ?
My master gateway have a big ping issue, but very strong solution base on multi WAN management ("overthebox" by ovh), so I have mount my own tunnel with another host.
So imagine I have first gateway 10.0.0.1 and it's OTB gateway, and a second "slave" gateway 10.0.0.2 and it's debian custom.
I want one of my game server only use the slave gateway, and all other trafics use the master as currently.
I don't know if pfsense allow that...
Thank in advance !
N.B. : I don't wan't multi gateway pool with automatic choose : my game server ARK "avowed" the public IP available at launch to the "public directory" of this game... so if the public IP change, all players will be disconnected, and anti cheat (battleeye) auto kick all players don't use the IP avowed at launch of server...
I need a solid public IP... it's the reason I can't use dynamic gateway !N.B. 2 : I don't know if I can do that by simply use routing in pfsense maybe...
Imagine the game server is 192.168.1.1, the lan pfsense 192.168.1.254.
Otherwise, how "route" only 192.168.1.1/24 to 10.0.0.2 (like my exemple earlier) ? -
@sf Use firewall rules on your LAN interface to direct all traffic from specified LAN IPs to the gateway you want. pfSense calls it Policy Routing:
Placement of the rules are important as the order matters so make sure you place your rule so that it matches the traffic before other general rules.