请教一个 firewalld 的规则问题

2016-02-06 10:49:29 +08:00
 iX
CentOS7 的服务器,用 firewalld 做 snat ,规则如下:
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --permanent --add-service=ipsec
firewall-cmd --permanent --add-port=443/udp
firewall-cmd --permanent --add-port=500/udp
firewall-cmd --permanent --add-port=4500/udp
firewall-cmd --permanent --add-masquerade

定义了地址池 100.0.0.0/24
用 IKEv2 或者 SSTP 连上服务器时,可以通过公网 IP 访问服务器。
用 AnyConnect 连接上以后,只能通过 100.0.0.1 内网地址访问服务器。

服务器上还有几个 web 服务,怎样设置 firewalld 使 AnyConnect 连接的时候能通过公网 IP 访问服务器呢?
1641 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/255623

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX