V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
VKMEPR
V2EX  ›  Linux

firewall 可以设置允许所有传出流量吗?

  •  
  •   VKMEPR · Jun 13, 2019 · 3126 views
    This topic created in 2519 days ago, the information mentioned may be changed or developed.

    请问大家,firewall 可以实现 iptables -P OUTPUT ACCEPT 效果吗?网上搜索没有找到相关资料。

    3 replies    2019-06-13 23:51:23 +08:00
    billlee
        1
    billlee  
       Jun 13, 2019
    默认就是这样的
    CivAx
        2
    CivAx  
       Jun 13, 2019   ❤️ 1
    默认是不对出口做限制。

    因为实际上本地→远程这种链接,本地是拉一个随机端口去访问远程的指定端口的,要是这个掐了就嗝屁了。。。

    这就是为什么种 Shell 都是反射式
    Anonym0u5
        3
    Anonym0u5  
       Jun 13, 2019
    记得默认出口没限制
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5665 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 07:42 · PVG 15:42 · LAX 00:42 · JFK 03:42
    ♥ Do have faith in what you're doing.