Specify Netmask rather than CIDR
-
Hi all,
I want to load-balance two WAN links, based on destination IP (even or odd). Example.10.10.10.1 -> WAN1
10.10.10.2 -> WAN2I can specify similar in normal FreeBSD IPFW using 0.0.0.1 or 0.0.0.2. But pfsense only allow /28 type netmask.
So, anyone know how I can do it ?
-
google says that http://www.tech-faq.com/convert-netmask-to-cidr.shtml is a good place to look
-
yes, but having netmask 0.0.0.1 can't convert to CIDR :-( which is the only input method on pfsense.
@sai:
google says that http://www.tech-faq.com/convert-netmask-to-cidr.shtml is a good place to look
-
What exactly are you looking for in terms of hosts? 1 host only?
-
@tim:
yes, but having netmask 0.0.0.1 can't convert to CIDR :-( which is the only input method on pfsense.
The problem is that 0.0.0.1 is not a netmask. I thought you might be talking about an inverse netmask, but 0.0.0.2 isn't even a valid inverse netmask. Anyway, I don't think ipfw uses inverse wildcarding. I've only seen it on Cisco IOS devices…
-
sorry for the confusion. I wrongly mention .2.
Previously, I try on FreeBSD, with rc.firewall & PF work together and achieve policy routing & NAT
the idea is to have traffic to
- odd destination IP, go into one WAN link (odd destination IP, like 10.10.1.1)
- even destination IP, go into another link (even destination IP, like 10.10.1.2)
I remember something similar to below in configure file:
fwd 0.0.0.0 0.0.0.1 Wan1Gateway -> packet to WAN1 link
fwd 0.0.0.1 0.0.0.1 Wan2Gateway -> packet to WAN2 link
{Sorry, exact syntax I need to double check} -
This will not work in pfSense.