Coder Social home page Coder Social logo

sing-box-openwrt's Introduction

Sing-box在openwrt原版的使用方法(完整版)

client文件说明

支持指定域名直连

支持指定端口走直连

1.准备工作及启动

更新配置文件

vim /etc/sing-box/config.json

2.新增接口

新增名称为tun0的接口,关联tun0的网络设备

3.设置防火墙

新增防火墙配置,在常规设置的区域中,新增一条,名称任意,入站、出站、转发全部允许,源区域、目标区域把lan和wan全部选择。

4.设置启动项

在系统-启动项-本地脚本中新增启动命令

sleep 5 && sing-box run -c /etc/sing-box/config.json &>/dev/null &

5.问题

1)启动后未达到目的,可连接ssh后用top命令检查是否存在sing-box进程;没有再重新执行启动命令;可能是tun模式当前不稳定(在homeproxy代理下,同样无法100%启动成功);

2)sing-box的版本是1.8.7(openwrt原版当前版本),在当前原版openwrt下运行下载到200M时,cpu占用70%,性能低;immortalwrt跑1000M时约为40%+。

sing-box-openwrt's People

Contributors

rezconf avatar lonelysoul avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.