设置了 proxy_procgroup
后, 代理程序的几种启动方法
#233
cattyhouse
started this conversation in
General
Replies: 3 comments 1 reply
-
应该就这些吧,还有就是程序本身提供了set user/group功能的,比如dnsmasq这种。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
一行有四个值,分别是:Real, effective, saved_set, filesystem(fs) iptables 的 --gid-owner 匹配的是 fsgid(通常情况下,fsgid 的值同 effective gid) 如果想查看 cap 能力,可以 全 0 就是没有能力,非 0 就是有能力,具体想看有什么能力,可以解码,或者使用其他工具查看 |
Beta Was this translation helpful? Give feedback.
1 reply
-
还有个方法,就是 sg: # 解释器是 /bin/sh
sg proxy 'ss-redir <args...>' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
假设设置了
proxy_procgroup='proxy'
, 这个只是让 iptables 跳过以这个 group 身份运行的代理进程, 但代理进程其实还有其他的东西需要设置, 比如 tproxy监听bind any address
权限, 低位端口 (1024及以下)监听, 这些需要 caps, 除非 root 身份运行, 所以能想到的几种方法, ss-redir 为例:还有其他啥方法吗?
Beta Was this translation helpful? Give feedback.
All reactions