AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 防火墙如何开启对外访问指定端口,如smtp25 |
|
---|---|
邓国华 |
邓国华 发表于 2015-04-28 00:04:54
AMNetwork 防火墙配置
需要访问外部 25 端口发邮件,规则该怎么写啊,是不是像下面的output一样,谢谢! -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT
点赞,加油! (0分)
2015-04-28 00:04:54 1
|
amysql |
是的。
回复
2015-04-28 17:11:16 2
AMH面板 - 好用高效低占用、安全可靠极稳定 |
诸葛御风 |
对的 支持
回复
2015-04-28 22:16:45 3
|
邓国华 |
但实际测试不成。。。用magento发邮件说socket不通
SMTP Pro Self Test Results Sending test email to your contact form address: [email]service@xxx.com[/email] from: [email]service@xxx.com[/email]. Unable to send test email. Exception message was: Could not open socket
回复
2015-04-29 17:02:00 4
|
邓国华 |
发个全amh network的规则如下,怎么才能访问外部 25端口啊
# Generated by iptables-save v1.4.7 on Wed Apr 29 17:04:35 2015 *filter :INPUT ACCEPT [72:3248] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1006799:1428430408] -A INPUT -p tcp -m tcp --dport 1723 -j ACCEPT -A INPUT -p tcp -m tcp --dport 143 -j ACCEPT -A INPUT -p tcp -m tcp --dport 110 -j ACCEPT -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT -A INPUT -p tcp -m tcp --dport 10100:10180 -j ACCEPT -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT -A INPUT -p tcp -m tcp --dport 20:22 -j ACCEPT -A INPUT -p tcp -m tcp --dport 9999 -j ACCEPT -A INPUT -p tcp -m tcp --dport 8888 -j ACCEPT -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT -A INPUT -p tcp -m tcp --dport 11211 -j ACCEPT -A INPUT -p icmp -m icmp --icmp-type any -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -s 172.16.36.0/24 -o eth0 -j ACCEPT -A FORWARD -s 172.16.36.0/24 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j TCPMSS --set-mss 1356 -A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT COMMIT # Completed on Wed Apr 29 17:04:35 2015 # Generated by iptables-save v1.4.7 on Wed Apr 29 17:04:35 2015 *nat :PREROUTING ACCEPT [29063:1698296] :POSTROUTING ACCEPT [15491:931813] :OUTPUT ACCEPT [15491:931813] COMMIT # Completed on Wed Apr 29 17:04:35 2015
回复
2015-04-29 17:06:13 5
|