Clash for Android配置trojan教程

阅读本教程的前提:已有服务端信息,可参考 trojan一键脚本获取科学上网服务端信息

 

如有问题,欢迎到 网络跳越论坛 或 tg群组https://t.me/joinchat/JJLNEhXp0GoOIXSP1jrjPA 交流

Clash for Android介绍

Clash 是一个使用 Go 语言编写、基于规则的跨平台代理核心程序。Clash目前有Windows、MacOS、Android等多个平台的GUI程序,支持SS/V2ray/Trojan多种协议,功能强大。

Clash for Android源自ClashA项目(ClashA已经停止维护,不建议使用),继承了Clash基于规则、支持SS/V2ray/trojan协议,功能强大等优点,并且界面美观,是安卓手机用户的一大福音。

Clash for Android要求安卓7以上版本,手机系统版本过低的网友请到 trojan客户端  选择其他软件

本文介绍Clash for Android配置Trojan教程,让网友不必用官方难用的客户端。

Clash for Android配置trojan教程

1. 从  trojan客户端 下载Clash for Android,并安装到手机上;如果提示“解析安装包错误”,请检查手机系统是否为安卓7以上版本;

2. 点击Clash for Android图标(小猫咪),进入主界面:

Clash for Android主界面Clash for Android主界面

Clash for Android主界面

3. 如果你有机场或他人提供的订阅地址,点击 “配置-》新配置-》URL”,输入配置名称(随便填,例如trojan)、订阅URL、设置自动更新时间(建议为60)。信息输入完毕后点击右上角的保存图标。在配置界面选择下载的配置文件,然后返回到主界面,参考第五步的操作:

Clash for Android输入订阅信息Clash for Android输入订阅信息

Clash for Android输入订阅信息

4. 如果你没有订阅地址,只能使用文件的方式导入。操作为:

a) 电脑上点击 https://hijk.art/clash_template2.yaml 下载模板配置文件,用文本编辑、备忘录、VS Code等编辑器打开,找到trojan配置块,把 server、port、password等信息改成你服务端配置:

ClashX配置trojanClashX配置trojan

ClashX配置trojan

注意:

1. 如果看不懂配置文件,不要改name的值;

2. 配置文件给出了五组代理模板,如果想添加多个节点,按照v2ray格式修改SS/SS-obfs/trojan等节点内容,不懂不要改name的值

3. 如果server用的ip,把sni和skip-cert-verify注释掉(删除前面的空格和#号),并把sni的内容设置为伪装域名

4. 修改name的值、添加删除节点请参考:深入理解Clash配置文件

b) 保存配置文件,用微信、QQ等工具把文件发送到手机上,并保存到方便找到的文件夹内;

c) Clash for Android主界面点击 “配置-》新配置-》文件”。点击配置名称,随便填一个,例如trojan;点击URL,在弹出来的文件浏览器中选择刚才发送过去的配置文件。

然后点击右上角的保存图标回到配置界面,选择刚才输入的配置:

Clash for Android选择配置文件Clash for Android选择配置文件

Clash for Android选择配置文件

5. 点返回键回到主界面,点击”已停止“按钮启动VPN,首次开启会出现网络连接请求确认框,点击”确定“允许:

Clash for Android网络连接请求Clash for Android网络连接请求

Clash for Android网络连接请求

6. 开启VPN后,主界面出现“代理”按钮。点进去可以在“PROXY”中选择使用的节点,默认自动选择快速节点,也可以指定使用某个节点。“Final”中可以选择默认规则,DIRECT表示直连,PROXY走代理。个人建议使用直连,网站打不开再选择代理:

Clash for Android选择节点和默认路由Clash for Android选择节点和默认路由

Clash for Android选择节点和默认路由

其他看不懂的东西保持默认就好了。

7. 主界面的“设置”按钮可以控制软件的一些行为,大多数情况下保持默认就好了。

配置无误的话,接下来就可以顺利上外网了。

注意事项

1. YAML文件类似Python,以缩进确定层级关系,因此修改时请注意缩进的空格和距离;

2. 如果有SS/V2ray/trojan链接,可以通过在线API的方式生成托管地址,然后按照第三步的方式导入;

参考

1. trojan教程

留言评论

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select * from vps_autoblog_queue where is_running >0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select count(*) from vps_autoblog_queue where task_id=6 and is_running>0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=6 and source_url_key='85f8e27ce55bd78fd33f47d2b1409198'

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(6,'https://www.hijk.pw/post-sitemap.xml','85f8e27ce55bd78fd33f47d2b1409198',1750607646,0,0)

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select count(*) from vps_autoblog_queue where task_id=4 and is_running>0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=4 and source_url_key='54b1dccf98c13c81f546faf82132bc77'

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(4,'https://ssr.tools/sitemap-posttype-post.2020.xml','54b1dccf98c13c81f546faf82132bc77',1750607646,0,0)

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select count(*) from vps_autoblog_queue where task_id=2 and is_running>0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=2 and source_url_key='91372ddcd9e4809b115feaa5b6f00815'

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(2,'https://tlanyan.me/post-sitemap.xml','91372ddcd9e4809b115feaa5b6f00815',1750607646,0,0)

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select count(*) from vps_autoblog_queue where task_id=7 and is_running>0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=7 and source_url_key='569e17863f7693f1afa9e9256af9dcff'

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(7,'https://aisoa.cn/sitemap.xml','569e17863f7693f1afa9e9256af9dcff',1750607646,0,0)

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select count(*) from vps_autoblog_queue where task_id=9 and is_running>0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=9 and source_url_key='cc9416f8df40d8c3a48e66856b1cd6fd'

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(9,'https://www.v2rayssr.com/sitemap.xml','cc9416f8df40d8c3a48e66856b1cd6fd',1750607646,0,0)

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select count(*) from vps_autoblog_queue where task_id=10 and is_running>0

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=10 and source_url_key='74714f67855820f0c701ce905b231f27'

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(10,'https://doubibackup.com/sitemap.xml','74714f67855820f0c701ce905b231f27',1750607646,0,0)

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,is_running,last_post_time,post_interval,not_check_stoped from vps_autoblog_queue WHERE is_running>0 and fetched=0 order BY id ASC

WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
select id,sn_id from vps_autoblog_queue WHERE is_running=0 and fetched=0 order BY id ASC LIMIT 1