/internet

Connect to the world | Setup VPN for Linux.

internet

Connect to the world | Setup VPN for Linux.

I am really happy to share the mini project that I made within 5 minutes. My company network has blocked almost all internet services so I feel too hard to work with 100%. GitHub is not, Google services are the same and that is the reason I create this project.

Installation first

1. Setup WARP Client

sudo apt install cloudflare-warp
warp-cli register
warp-cli connect
curl https://www.cloudflare.com/cdn-cgi/trace/

2. Setup alias to turn on/off VPN

code ~/.zshrc

Add some "magic code" to .zshrc file.

alias internet='warp-cli connect'
alias internet_on='warp-cli connect'
alias internet_off='warp-cli disconnect'
source ~/.zshrc

And cheers!!

Turn on VPN

internet
# or
internet_on

Turn off VPN

internet_off