default to wan1, definite subnet replies to wan2

Zeus Panchenko zeus at ibs.dn.ua
Fri Aug 5 00:08:58 UTC 2016


sorry for noise, please ignore this incomplete message

Zeus Panchenko <zeus at ibs.dn.ua> wrote:

> greetings,
> 
> I have two wan intefaces, wan1 and wan2
> 
> wan1 is for default
> 
> I have subnet in my LAN all replies from which I need to direct through
> wan2
> 
> I hoped to do that with this pf configuration:
> 
> if_service = "vlan1234" # service network
> table <service> const { 10.0.0.0/24 }
> # requests for the service 
> rdr pass on $if_wan2 proto { tcp, udp } to ($if_wan2) port 1234 -> 10.0.0.1 port 5678
> nat log on $if_wan2 from <service> to any -> ($if_wan2)
> ...
> pass in log on $if_video route-to ($if_wan3 $gw_wan3) from <ivideons> to ! <martians> keep state
> 

-- 
Zeus V. Panchenko				jid:zeus at im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)


More information about the freebsd-pf mailing list