Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
问与答
iptables 配置问题
BackBox
·
Sep 16, 2013
· 2883 views
This topic created in 4618 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
1
BackBox
OP
Sep 16, 2013
@
clowwindy
2
slowman
Sep 16, 2013
OUTPUT链呢?
3
LazyZhu
Sep 16, 2013
参考这里:
https://gist.github.com/LazyZhu/bb28d56634e355336b2a#file-init-d-script-ss-libev-L205
4
zhttty
Sep 16, 2013
你要设置对所有output放行,而且对放行的返回数据也要接收...- -
iptables -A INPUT -m state --state 状态
譬如 iptables -A INPUT -m state --state ESTABLISHED
5
BackBox
OP
Sep 17, 2013
@
1423
output没有设置规则,就是默认通过的。
@
LazyZhu
赞。就是把udp也通过? 我发现好像我已经ssh不去我的服务器了。。。我的规则放行了ssh端口(我改了后为2222)
@
zhttty
放行返回的数据。。。。也是output。。。。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2961 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 439ms ·
UTC 07:26
·
PVG 15:26
·
LAX 00:26
·
JFK 03:26
♥ Do have faith in what you're doing.
❯