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

Clarification regarding server and client setup #1

Open
pascalandy opened this issue Jan 3, 2019 · 3 comments
Open

Clarification regarding server and client setup #1

pascalandy opened this issue Jan 3, 2019 · 3 comments

Comments

@pascalandy
Copy link

pascalandy commented Jan 3, 2019

Hi,
I run an openvpn server in docker with Tunnelblick on my mac.

I'm curious to give this a shot. But the things is, I don't understand the README where things should run. server versus client, there is no distinctions.

Assuming this is for the server:

docker run -it --rm --cap-add net_admin --cap-add sys_module \
       -v /etc/wireguard:/etc/wireguard -v /lib/wireguard:/lib/wireguard \
       -p 5555:5555/udp activeeos/wireguard-docker

, how should I run it on my mac as a client?

Thanks!

@ahbrosha
Copy link

ahbrosha commented Jan 4, 2019

Wireguard does not distinguish between client or server. All network members are peers. Server or client is just a matter of routing. https://www.wireguard.com/netns/

https://wiki.archlinux.org/index.php/WireGuard#Specific_use-case:_VPN_server

@pascalandy
Copy link
Author

pascalandy commented Jan 4, 2019

Thanks for the follow-up :)

Question 1

So, do I have to run this command on both machines?

docker run -it --rm --cap-add net_admin --cap-add sys_module \
       -v /etc/wireguard:/etc/wireguard -v /lib/wireguard:/lib/wireguard \
       -p 5555:5555/udp activeeos/wireguard-docker

Question 2

Do we need to do any manual configurations?

I'm having a hard time understanding how my mac will pass all traffic via this VPN. It looks like there is a configuration to do isn't?

@pascalandy pascalandy changed the title Clarification server or client Clarification regarding server and client setup Jan 4, 2019
@rmoriz
Copy link

rmoriz commented Feb 8, 2019

Docker on Mac is still Linux and due to the used VM this image is not usable as a client for the host MacOS. Use the homebrew tun/tap-based wireguard app on mac. Works fine.

wireguard-go
wireguard-tools

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

3 participants