APF – allow_hosts.rules – 端口范围

我遇到了一个问题,试图指定webmin只能从我的私人IP访问。 但是我可以使端口范围正确工作。 我在allow_hosts.rules文件中使用了这个。

tcp:in:d=10000:s={IP HIDDEN} tcp:in:d=30000_35000:s={IP HIDDEN} udp:in:d=30000_35000:s={IP HIDDEN} 

我有这些设置时得到的错误是

 apf(21256): {trust} allow inbound tcp {IP HIDDEN} to port 10000 apf(21256): {trust} allow inbound tcp {IP HIDDEN} to port 30000-35000 iptables v1.4.7: invalid port/service `30000-35000' specified Try `iptables -h' or 'iptables --help' for more information. apf(21256): {trust} allow inbound udp 10.16.149.68 to port 3000-35000 iptables v1.4.7: invalid port/service `3000-35000' specified 

使所有知识产权工作但允许的变化是。

 # Common inbound (ingress) TCP ports IG_TCP_CPORTS="10000,30000_35000" # Common inbound (ingress) UDP ports IG_UDP_CPORTS="30000_35000" 

谢谢你的帮助。

根据我的经验,我一直无法获取端口范围在allow_hosts.rules文件中工作,只有apf.conf文件。 但是,我还没有find任何certificate这一点的文件。