Code Monkey home page Code Monkey logo

Comments (10)

qiwihui avatar qiwihui commented on July 24, 2024 2

白名单模式和gfwlist模式不太一样,我想你指的是白名单模式。

from hiwifi-ss.

qiwihui avatar qiwihui commented on July 24, 2024

根据 /etc/init.d/gw-redsocks 第 37 行的描述,项目中使用的白名单来自极路由自带的IP列表。这个规则在 /proc/nf_salist/

root@Hiwifi:~# ls /proc/nf_salist/
cernet   china    cmcc     control  hiwifi   local    telecom  unicom

所以修改 china 这个里面的配置应该就可以了

from hiwifi-ss.

latv666 avatar latv666 commented on July 24, 2024

qiwihui commented 11 hours ago
白名单模式和gfwlist模式不太一样,我想你指的是白名单模式。

我的 /proc/nf_salist/ 下几个文件都是 0KB 空白的,如果不想让teamviewer走代理,应该怎么做?

from hiwifi-ss.

JoshYEn avatar JoshYEn commented on July 24, 2024

您好,我的问题是这样的。
我对Auto Proxy Config的理解是:

  • 对于智能模式,这时使用的是GFWlist&部分白名单;
  • 对于全局模式,使用的是白名单,仅跳过了localhost等。
    请问是这样吗?

如果是的话,分别修改_哪些文件_能够进行配置呢?
非常感谢!

Add:
翻了一遍代码,发现是通过iptables实现的,是这样吗?小白请问该如何修改呢。。。
@qiwihui

from hiwifi-ss.

liaol avatar liaol commented on July 24, 2024

@shipenzildk cat能看到

from hiwifi-ss.

fengertao avatar fengertao commented on July 24, 2024

描述一下问题:
/proc/nf_salist/这个目录不是普通目录,似乎里面的文件都是进程?
(1) cd /proc/nf_salist/ && ls -l
可以看见每个文件的长度都是0
(2)cat china
可以看见白名单的ip range显示在屏幕上
(3)vi china
编辑的是一个空文件。随便加几个IP地址,存盘。然后cat china,文件内容还是vi前的内容。

请问怎么编辑白名单。

from hiwifi-ss.

dawnnao avatar dawnnao commented on July 24, 2024

@fengertao 情况一样样,求教!

from hiwifi-ss.

ikkyu0319 avatar ikkyu0319 commented on July 24, 2024

情况和@fengertao @dawnnao 一样,求助~

from hiwifi-ss.

q629988171 avatar q629988171 commented on July 24, 2024

@ikkyu0319 @dawnnao @liaol @shipenzildk @JoshYEn

/proc 文件系统是一个伪文件系统, 它只存在内存当中。

添加白名单:echo 209.58.128.92 >> /proc/nf_salist/china

验证:cat /proc/nf_salist/china | grep 209.58.128.92

永久写入:vi /etc/salist/china.conf

实时生效,不需要重启 iptables、SS or anything

from hiwifi-ss.

qiwihui avatar qiwihui commented on July 24, 2024

已经加入了白名单功能

from hiwifi-ss.

Related Issues (20)

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.