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 get client up by command on ubuntu? #429

Open
alexlii1971 opened this issue Mar 4, 2024 · 2 comments
Open

How to get client up by command on ubuntu? #429

alexlii1971 opened this issue Mar 4, 2024 · 2 comments

Comments

@alexlii1971
Copy link

Hello,

I already setup a wireguard server on Digitialoean in US.

and now, we have a server in China with Ubunutu, and I want to setup Wireguard VPN client so that this server in China can access to the global resource.

So, how to setup a wireguard client on this server in China and get it up by command line?

Any tools or tutorials will be apprecatied.

@alexlii1971
Copy link
Author

Hello,

Here is what I test:

1# On Wireguard server of DIgitalocean in US, I tried your scripts:

curl https://raw.githubusercontent.com/complexorganizations/wireguard-manager/main/wireguard-manager.sh --create-dirs -o /usr/local/bin/wireguard-manager.sh
chmod +x /usr/local/bin/wireguard-manager.sh
bash /usr/local/bin/wireguard-manager.sh

Then, create new client named as "clientforchina"

2. On server in China:

Run sudo apt-get install wireguard
Run wg genkey |tee private.key |wg pubkey > public.key
Run sudo nano /etc/wireguard/wg0.conf

Then, put the "clientforchina" into wg0.conf

Then, run sudo wg-quick up wg0

On the dashboard of server provider, I noted it succeed to connect to the server of Digitalocean in US.

3. But, I will lost connect to the server in China by SSH.

Any solution to reosolve the issue?

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
@alexlii1971 and others