Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to forward base on client subnet #89

Open
bennykwok opened this issue Feb 15, 2023 · 1 comment
Open

How to forward base on client subnet #89

bennykwok opened this issue Feb 15, 2023 · 1 comment

Comments

@bennykwok
Copy link

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

@ShipeiXu
Copy link

have you test it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants