knot-resolver icon indicating copy to clipboard operation
knot-resolver copied to clipboard

How to forward base on client subnet

Open bennykwok opened this issue 2 years ago • 1 comments

The doc said:

-- Do not try this - it will pollute cache and surprise you! -- view:addr('10.0.0.0/8', policy.all(policy.FORWARD('2001:DB8::1'))) -- Drop all IPv4 that hasn't matched view:addr('0.0.0.0/0', policy.all(policy.DROP))

============ is it possible to do this:

192.168.0.0/24 - forward > 1.1.1.3 192.168.1.0/24 - forward > 1.1.1.2 0.0.0.0 - forward > 1.1.1.1

bennykwok avatar Feb 15 '23 01:02 bennykwok

have you test it?

ShipeiXu avatar Aug 22 '23 05:08 ShipeiXu