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

Using wireproxy to share a wireguard VPN connection with multiple local peers #123

Open
ZornsLemma opened this issue Jun 6, 2024 · 2 comments

Comments

@ZornsLemma
Copy link

My VPN provider only allows a fixed number of wireguard connections and I have more machines than they allow.

I would like to set up wireproxy so it connects to my VPN provider (taking up a single connection) and have other machines connect to it as full wireguard peers.

(I already have a more basic setup where the other machines connect to wireproxy via SOCKS to share this single VPN connection, but I would like to be able to route all network access over the VPN without needing to configure each application to use a SOCKS proxy.)

Is this something wireproxy supports? I have been trying to set it up but I can't seem to get it to route any packets between the local peers and the VPN peer. My wireguard.conf has a ListenPort under [Interface] and I have added a [Peer] section for a single local peer as a test:

[Peer]
PublicKey = xxx
AllowedIPs = 192.168.2.2/32

The test machine can connect as a peer and ping the wireproxy machine via wireguard but nothing else.

Should this work and I have just misconfigured things, or is this pushing wireproxy too far? Is it capable of routing packets between multiple peers if configured correctly?

Thanks for any advice, and for creating wireproxy - whether it can do this or not, I have already found it incredibly useful.

@pufferffish
Copy link
Owner

pufferffish commented Jun 7, 2024 via email

@ZornsLemma
Copy link
Author

Thanks for getting back to me. It's good to know this just isn't supported instead of me messing up the config. I'll investigate the other options, thanks again!

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