Giter Site home page Giter Site logo

wireguard-ui-setup's Introduction

wireguard-ui-setup

A simple script to install Wireguard and Wireguard-ui

๐Ÿ‡ซ๐Ÿ‡ท French version

Features

  • Automate minimal installation of Wirguard and Wireguard-ui
  • Make wireguard-ui as service
  • Setup quite strict firewall (Optional)
    • Default policy => DROP
    • Allow loopback ipv4 & ipv6
    • Allow Outgoing SSH, HTTPs, HTTP, DNS, Ping
    • Allow Ingoing SSH, Wireguard ($wg_port)
    • Allow everything needed by wireguard
  • Save iptables rules in /etc/iptables/
    • Load them at boot via /etc/network/if-up.d/iptables
    • Backup actual rules in /etc/iptables/rules.v[4-6].bak

Requirement and Warning note

  • Be sure that the server is fully up to date.
  • If the server is doing something else, please at the question "Set the strict firewall" select n

Usage

Download and execute the script on your server

bash <(curl -s https://gitlab.com/snax44/wireguard-ui-setup/-/raw/master/install.sh)

Just answer 6 questions and take a coffee.

Enjoy your new VPN

Open a new ssh connection with port forwarding:
In command line:

ssh -L 5000:localhost:5000 user@vpn_server_ip

or directly in your SSH config file:

Host myserver
	hostname myserver.domain.tld
	IdentityFile ~/.ssh/myprivatekey
	user myuser
	LocalForward 5000 localhost:5000

Browse to Wireguard UI:

Browse http://localhost:5000
(username/password = admin)

๐Ÿ’ก Default password can be changed in /opt/wgui/db/server/users.json

Troubleshooting

[email protected] failed to start

Please check that linux-headers-$(uname -r) was installed propely.

Tested on

  • Debian Buster
  • Debian Bulseye
  • Ubuntu 20.04
  • Ubuntu 20.10

Credits

wireguard-ui-setup's People

Contributors

snax44 avatar

Watchers

 avatar  avatar

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.