How to allow users to choose a gateway?
-
Hi everyone,
I have three gateways - two physical and one VPN. Of course, I can route individual networks or individual clients to each of them, but I would like to give people a choice. How can I do that? In the days before pfSense, I simply had two routers in one network, and the user changed the gateway using a .bat file. How can I do this now with pfSense?
Any advice or suggestions would be greatly appreciated. Thank you in advance!
-
@beerox I would use APs that are VLAN capable.
So, you could create three wifi networks and depending on which the client connects, it gets out through a different gateway. -
@mcury Thank you, but that's not the solution I'm looking for. Most of them are desktop computers without Wi-Fi. However, now I've come up with the idea that I can change the computer's IP address using batch files.
However, forcing an IP change may not be the cleanest solution. Does anyone know of something better?
-
@beerox perhaps install a second NIC in the desktop ?
You could connect both cables at the same time to the switch, both NICs would be in a different subnet(vlan), and then just change the default route in the desktop (if its Windows, check route print, route add and route change commands).
-
@mcury I'm ruling out hardware changes for now. A better solution would be changing the computer's IP using the netsh command, but I wonder if there's another way to mark traffic, for example using QoS. I can set it on windows interface in three positions (high, low, normal). Can pfSense route packets based on QoS?
-
@beerox said in How to allow users to choose a gateway?:
@mcury I'm ruling out hardware changes for now. A better solution would be changing the computer's IP using the netsh command, but I wonder if there's another way to mark traffic, for example using QoS. I can set it on windows interface in three positions (high, low, normal). Can pfSense route packets based on QoS?
Never tried, but I don't think it is possible. Perhaps using DSCP ?
Really don't know, you will have to try.. -
@mcury Thank you very much for your help.