v2xray init

This commit is contained in:
2022-03-09 12:24:44 +08:00
commit 327e813efb
8 changed files with 389 additions and 0 deletions

30
.bashrc Normal file
View File

@@ -0,0 +1,30 @@
# proxy
httpproxy-server () {
eval $(ps -ef | grep -m 1 "python .*xray_run\.py a" | awk '{print "sudo kill -9 "$2}')
nohup sudo python $HOME/scripts/v2xray/xray_run.py a >> /dev/null 2>&1 &
}
httpproxy () {
export HTTP_PROXY="http://127.0.0.1:2802"
export http_proxy="http://127.0.0.1:2802"
export HTTPS_PROXY="http://127.0.0.1:2802"
export https_proxy="http://127.0.0.1:2802"
export FTP_PROXY="http://127.0.0.1:2802"
export ftp_proxy="http://127.0.0.1:2802"
}
nohttpproxy () {
unset HTTP_PROXY
unset http_proxy
unset HTTPS_PROXY
unset https_proxy
unset FTP_PROXY
unset ftp_proxy
}
getip () {
curl https://ip.gs
}
# sudo groupadd -g 10333 tproxy
# sudo usermod -aG tproxy $USER