iamckn / chained-wireguard-ansible Goto Github PK
View Code? Open in Web Editor NEWAnsible scripts for the set up of a chained wireguard VPN connection
Home Page: https://www.ckn.io/blog/2017/12/28/wireguard-vpn-chained-setup/
Ansible scripts for the set up of a chained wireguard VPN connection
Home Page: https://www.ckn.io/blog/2017/12/28/wireguard-vpn-chained-setup/
Nowadays WireGuard doesn't require PPA. So remove that section and update the script.
By the way, I completed all these steps and now I don't have connection after connecting VPN.
Great work iamckn! I was wondering if you are familiar with openbsd pf firewall, if you are would you happen to know the translation of the SNAT rule in step 4 on middleman?
name: Set up vpn chain NAT
iptables:
table: nat
chain: POSTROUTING
source: 10.200.200.0/24
to_source: 10.100.100.2
jump: SNAT
Both interfaces are up and running. I have tried a few nat-to without success thinking maybe rdr-to. Thanks for the project and great documentation
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:
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.
Hello, When running these Ansible Scripts, the client wireguard configuration sets the endpoint to the private IP of the middleman, shouldn't this be set instead to the public IP of the middleman?
The client, middleman, and gateway are all AWS Ubuntu 16.04 instances and I have followed the guide line for line.
I connect using the SSH Key rather than the password if that makes any difference, though I believe that it doesn't. I could be missing something entirely and if so I am sorry. I also am very new to Ansible so I might be missing something simple.
Thank you
Thank you for your awesome work BTW.
I lost my connection to the middleman server after running this command from #5 of the tutorial:
ip rule add from 10.200.200.0/24 lookup middleman
Of course I replaced the 10.200.200.0
with middleman's IP address.
What did I do wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.