Added ovpn tunnel
This commit is contained in:
6
.bashrc
6
.bashrc
@@ -134,6 +134,12 @@ export NVM_DIR="$HOME/.nvm"
|
||||
### Ngrok aliases
|
||||
alias ngdo='ngrok http --domain=devops-extension.ngrok.dev 3000'
|
||||
|
||||
### VPN aliases
|
||||
alias public-ip='dig +short myip.opendns.com @resolver1.opendns.com'
|
||||
alias vpn-up='echo -e "unprotected ip: $(public-ip)\n====================\n" && wg-quick up ovpn && echo -e "\n====================\nprotected ip: $(public-ip)"'
|
||||
alias vpn-down='wg-quick down ovpn'
|
||||
alias vpn-status='sudo wg show ovpn && '
|
||||
|
||||
### Initialization
|
||||
alias install-requirements='~/.config/requirements/install.sh'
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ sudo apt install \
|
||||
python3 \
|
||||
dunst \
|
||||
nvme-cli \
|
||||
wireguard \
|
||||
-y
|
||||
|
||||
# Remove ibus since it causes issues with my custom keyboard layout
|
||||
@@ -72,5 +73,9 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
# Access to brightness devices for brightnessctl
|
||||
sudo usermod -aG video wholteza
|
||||
|
||||
# Decrypt and move VPN wireguard key
|
||||
gpg --decrypt /home/wholteza/.config/wireguard/got58-got80.conf.gpg > /home/wholteza/.config/wireguard/got58-got80.conf && sudo mv /home/wholteza/.config/wireguard/got58-got80.conf /etc/wireguard/ovpn.conf
|
||||
|
||||
source ~/.bashrc
|
||||
echo Done!
|
||||
|
||||
|
||||
BIN
.config/wireguard/got58-got80.conf.gpg
Normal file
BIN
.config/wireguard/got58-got80.conf.gpg
Normal file
Binary file not shown.
Reference in New Issue
Block a user