Raspberry Pi and wireguard site to site vpn how to
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=yc9PEM1ovg0
Hello Everyone welcome to todays video,today we are going to setup two rasberry Pi model 3 units,to act as a site to site vpn, using wireguard. • One pi will act as the server and the other as the client. • For a low traffic vpn link or occasional usage this is a cheap and simple way to get remote access to the machines on the other side of your network for remote access etc. • I have added a quick diagram to explain the layout.The two sites are called local and remote for easy of use. • The site that acts as the wireguard server, has a static ip address, and the side other client side has a dynamic one. • You do need either a static WAN address on your server side or to have registered a Dynamic DNS name against the remote site to use • • Commands • clear • sudo curl -L https://install.pivpn.io | bash • sudo wg-quick down client1 • sudo wg-quick up client1 • • sudo apt-get install ddclient • • cd /etc/ • ls • more ddclient.conf • sudo more ddclient.conf • /usr/sbin/ddclient -daemon 300 -syslog • sudo /usr/sbin/ddclient -daemon 300 -syslog • tail -f /var/log/syslog • sudo touch /var/cache/ddclient/ddclient.cache • sudo /usr/sbin/ddclient -daemon 300 -syslog • tail -f /var/log/syslog • sudo chmod 0777 /var/cache/ddclient/ddclient.cache • sudo /usr/sbin/ddclient -daemon 300 -syslog • • • • root@piremote:/etc/wireguard# more client1.conf • [Interface] • PrivateKey = xxxxxx • Address = 10.6.0.3/24 • DNS = 208.67.222.222, 208.67.220.220 • [Peer] • PublicKey = xxxxxxx • PresharedKey = xxxxxxx • Endpoint = x.x.x.x:51820 • AllowedIPs = 10.6.0.0/24,192.168.1.0/24 • PersistentKeepalive = 25 • Configuration file for ddclient generated by debconf • # /etc/ddclient.conf • protocol=dyndns2 • #use=if, if=wlan0 • use=web, web=checkip.dyndns.com/, web-skip='IP Address' • server=dynupdate.no-ip.com • login=xxxx • password='xxxxx' • xxxx.hopto.org • • • • Help Support the Channel: • To help support the channel we have listed a few decent providers that we like and use ourselves. • If you purchase a service from one of these links we may (hopefully) receive a commission, but it will not cost you anything extra. • It helps pay for our advertising, hosting and running costs and allows us to post free how too content etc. • • ========================================== • Tools and Links used in this Video: • Get a droplet in digital Ocean https://m.do.co/c/f2e5d955a265 • Putty for ssh access :https://putty.org • Advanced IP Scanner https://www.advanced-ip-scanner.com/ • =========================================
#############################
