iamckn / chained-wireguard-ansible

Ansible scripts for the set up of a chained wireguard VPN connection
https://www.ckn.io/blog/2017/12/28/wireguard-vpn-chained-setup/
38 stars 28 forks source link

lost connection to the middleman #2

Open saleh-old opened 5 years ago

saleh-old commented 5 years ago

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?

iamckn commented 5 years ago

Try log in to the gate and see if you can ssh to the middleman with its VPN IP.

saleh-old commented 5 years ago

Thank you for your fast response @iamckn.

I just connected to the gate, but couldn't ssh into the middleman (from it of course). it got refused too.

BTW, they're both two fresh cloud instances from Hetzner, I can delete and recreate them (I'm not worried about losing access). But I want to get the chained VPN working, hence wondering if I did any of the steps wrong.

iamckn commented 5 years ago

Does the subnet you chose for your VPN conflict with any of the other existing interfaces? That could be a cause. Also confirm that you're using the VPN private IP of the middleman when trying to ssh from the gate.