Home Pfsense multiwan rules based on odd / even IP

Pfsense multiwan rules based on odd / even IP

In this case we’re having two WAN connections that could be shared to the LAN. Insted of setting weight etc on gatewaygroups we’re load balancing the traffic based on the user’s IP (odd/even). One of be benefits of this setup is, that it’s easy to debug if someone is having a bad Internet connection.

We’re also adding upload / download limits per user to keep both of the connections working for everyone.

Setting aliases for odd and even IPs

Let’s go to Firewall->Aliases and set aliases for both odd, and even LAN ips. Let’s add all odd and even ips which are in our dhcp ip range.

Routing based on the aliases

Now we can set the routing based on alias. Go to Firewall->Rules, and set routing rules for odd, and even ip’s. Note that the lancache has own WAN.

Addling lmitters to FW rules

Select Firewall/Traffic Shaper and Limitters.

Create network limitters for upload and download

Then go to Firewall / Rules. Select a rule, and click advanced add upload and download rules to in / out pipes


Writing static routes to pfSense seems to be working a lot better than any load balancing strategy.

This post is licensed under CC BY 4.0 by the author.

Hacking my baby


Comments powered by Disqus.