V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
lostarray
V2EX  ›  Linux

Firewalld 怎么还限制传出连接啊?

  •  
  •   lostarray ·
    lostarray · 2015-12-26 18:31:23 +08:00 · 3738 次点击
    这是一个创建于 3045 天前的主题,其中的信息可能已经有所发展或是发生改变。
    刚在 Vultr 开了一台 Centos 7 的机器,连接限制很严格,各种禁止访问。搜索学习了一下 firewalld ,能允许特定端口的传入连接了,但是又发现根本练不了外网啊( IPv4 都连不了, Google 的 IPv6 却能连)。把 firewalld 关了,或者把 eth0 加入 trusted zone 倒是可以连外网了,但是这样应该很不安全吧。 Google 搜索也没找到限制传出连接的相关内容,谁能教教我该怎么设置这东西啊
    4 条回复    2015-12-31 11:31:56 +08:00
    xuhaoyangx
        1
    xuhaoyangx  
       2015-12-26 18:54:57 +08:00
    reload 了吗
    lostarray
        2
    lostarray  
    OP
       2015-12-26 18:58:17 +08:00
    @xuhaoyangx 没有加--permanent ,都是即时生效的吧
    tinkerer
        3
    tinkerer  
       2015-12-27 11:44:43 +08:00 via iPhone
    就是个废品, 用回 iptables 吧
    anyran
        4
    anyran  
       2015-12-31 11:31:56 +08:00
    可以用 rich-rule 嘛
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2722 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:53 · PVG 18:53 · LAX 03:53 · JFK 06:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.