Date: Fri, 05 Aug 2016 02:39:08 -2100 From: "Zeus Panchenko" <zeus@ibs.dn.ua> To: <freebsd-pf@freebsd.org> Subject: default to wan1, definite subnet replies to wan2 Message-ID: <20160805023908.51416@relay.ibs.dn.ua>
next in thread | raw e-mail | index | archive | help
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@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160805023908.51416>