Home
Sign Up
Sign In
V2EX
›
问与答
iptables 配置问题
BackBox
·
Sep 16, 2013
· 3333 views
This topic created in 4807 days ago, the information mentioned may be changed or developed.
使用iptables配置安全,把shadow的server_ip通过了,然后禁止了其余的链接,但是shadow运行不起。
下面是iptables -L的结果
iptables
shadow
不起
5 replies
•
1970-01-01 08:00:00 +08:00
BackBox
OP
Sep 16, 2013
1
@
clowwindy
slowman
Sep 16, 2013
2
OUTPUT链呢?
LazyZhu
Sep 16, 2013
3
参考这里:
https://gist.github.com/LazyZhu/bb28d56634e355336b2a#file-init-d-script-ss-libev-L205
zhttty
Sep 16, 2013
4
你要设置对所有output放行,而且对放行的返回数据也要接收...- -
iptables -A INPUT -m state --state 状态
譬如 iptables -A INPUT -m state --state ESTABLISHED
BackBox
OP
Sep 17, 2013
5
@
1423
output没有设置规则,就是默认通过的。
@
LazyZhu
赞。就是把udp也通过? 我发现好像我已经ssh不去我的服务器了。。。我的规则放行了ssh端口(我改了后为2222)
@
zhttty
放行返回的数据。。。。也是output。。。。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1994 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms ·
UTC 02:59
·
PVG 10:59
·
LAX 18:59
·
JFK 21:59
♥ Do have faith in what you're doing.
❯