iamckn / wireguard_ansible

Ansible scripts for the set up a typical wireguard VPN connection
https://www.ckn.io/blog/2017/11/14/wireguard-vpn-typical-setup/
322 stars 69 forks source link

Multi-hop with WireGuard #24

Open nigelfer2020 opened 1 year ago

nigelfer2020 commented 1 year ago

Hello,

I just installed WireGuard with UI on two different virtual private servers (https://github.com/ngoduykhanh/wireguard-ui/). Everything is working properly and has been independently tested on both servers, and clients will connect to the VPN without issue. The internet was also working properly during their connection.

I want to run the following configuration (Multi-hop with WireGuard or Chaining Servers with WireGuard): Client → Server1 → Server2 → Public Internet

For example Client (IP: 123.123.123.1) → VPN1 (VPS1: 90.90.90.1) → VPN2 (VPS2: 80.80.80.1) → Google.com (assumes the user's IP address is 80.80.80.1).

Now here are my questions:

  1. All configurations are detailed step-by-step on VPS1 to route all traffic to VPS2.
  2. All configurations are detailed step-by-step on VPS2.

NOTES:

I would be grateful if you could guide me in full detail.

Also, if it is possible for you to make the configurations for me on both servers and also send the description of the steps in a document or video, I can pay the fee you declare via crypto-currency, PayPal, etc.

Thank you.

Regards, Nigel.

andy72630 commented 1 year ago

Hi, If you have carefully searched online, (eg. Google) you will find out the author hisself blog has covered what u need already. https://www.ckn.io/blog/2017/12/28/wireguard-vpn-chained-setup/