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

Is it possible to allow wireguard only for some IPS #28

Open
xtendtech opened this issue Oct 2, 2020 · 3 comments
Open

Is it possible to allow wireguard only for some IPS #28

xtendtech opened this issue Oct 2, 2020 · 3 comments

Comments

@xtendtech
Copy link

xtendtech commented Oct 2, 2020

Hi,
I want to enable VPN of wireguard only for certain IP address.
Eg: I want all data for google.co.in to go through vpn and in normal case all should go outside vpn
to reduce data. Certain services need country based Ip's . In Openvpn we have that option (Atleast for OpenVpn) But cannot find such option for Windows .Is it possible somehow

@rajannpatel
Copy link
Owner

you may have to do some research on arin.net or some other websites to determine which IP ranges are used in India.

this list may be a good start

https://md5calc.com/google/ip

@xtendtech
Copy link
Author

I know the ip range But quick question is how do I allow only this range to go through vpn and make the rest data go normally?
Openvpn client has such options but cannot see it in wireguard. I was asking if wg has some option to skip or route only certain ips or ranges?

@rajannpatel
Copy link
Owner

In the Client Configuration, set the destinations you wish to route through the Wireguard connection in the AllowedIPs key value pair.

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