Code Monkey home page Code Monkey logo

chained-wireguard-ansible's People

Contributors

iamckn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chained-wireguard-ansible's Issues

Update the script

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.

pf firewall

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

Multi-hop with WireGuard

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:

  • The operating system on VPS1 and VPS2 is Ubuntu 20.04.
  • VPS1 and VPS2 are on different networks, so authentication may be required to connect them together, and I do not know how.
  • I know it's possible with IP routing, but I don't have detailed step-by-step instructions.

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.

Client Config Endpoint set to Private IP

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

lost connection to the middleman

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.