Ubuntu配置代理最详细教程

安装环境

bash 复制代码
sudo apt update
sudo apt install bzip2 tar
sudo apt-get install curl

安装ShellCrash

sudo -i #切换到root用户

bash 复制代码
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh  && bash /tmp/install.sh && source /etc/profile &> /dev/null

备用源

bash 复制代码
export url='https://gh.jwsc.eu.org/master' && bash -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null

安装SC

建议选择1

root用户选择1

选择一个别名

输入命令sc(我选的是sc)

输入数字2配置本机代理

根据提示操作,选择在线生成配置文件

直接输入你的代理订阅链接

然后输入1生成文件

启动服务

可以自行进行配置

放行端口

bash 复制代码
iptables -I INPUT -p tcp --dport 9999 -j ACCEPT

测试打开google

bash 复制代码
curl google.com

测速

bash 复制代码
sudo apt install speedtest-cli

运行:speedtest

相关推荐
万象.19 小时前
Linux传输层TCP,UDP相关内容
linux·tcp/ip·udp
耀耀_很无聊19 小时前
09_Jenkins安装JDK环境
java·运维·jenkins
MaximusCoder19 小时前
等保测评命令——Centos Linux
linux·运维·经验分享·python·安全·centos
万象.19 小时前
Linux数据链路层通信原理及报文格式
linux·网络·网络协议
卷Java20 小时前
Linux服务器Docker部署OpenClaw:腾讯云/阿里云/VPS安装避坑指南
linux·运维·服务器
原来是猿1 天前
Linux-【动静态库】
linux·运维·服务器
深圳市恒讯科技1 天前
云服务器怎么选?从CPU、内存到IOPS的零基础选型手册
运维·服务器
艾莉丝努力练剑1 天前
【脉脉】AI创作者崛起:掌握核心工具,在AMA互动中共同成长
运维·服务器·c++·人工智能·安全·企业·脉脉
九皇叔叔1 天前
CentOS 7.5/RHEL 7.x 配置 YUM 源(阿里云镜像+本地源双方案)
linux·阿里云·centos
chinesegf1 天前
DNS 验证验证SSL证书
linux·服务器·网络