Skip to content
/ warp Public
forked from cuongndc9/internet

Connect to the world | Setup VPN for Linux.

Notifications You must be signed in to change notification settings

quanhieu/warp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

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 warp='warp-cli connect'
alias warp-on='warp-cli connect'
alias warp-off='warp-cli disconnect'
alias warp-fix='sudo nano /etc/resolv.conf'
source ~/.zshrc

And cheers

Turn on VPN

warp
# or
warp-on

Turn off VPN

warp-off

Cloudflare warp no internet connection after off warp

Copy the DNS that starts with 192.x.x.x

ifconfig

Fix config Issue

sudo nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 192.x.x.x # The DNS you copyied goes here

About

Connect to the world | Setup VPN for Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published