|
网关服务器是FreeBSD 4.9+IPFW+NATD,想port map一台内网的POP3服务器,以便在外网收内网的信件.具体配置如下:
192.168.0.10 ==>内网的POP3服务器
61.172.13.113 ==>网关外网网卡IP
/etc/rc.conf(关于IPFW+NATD部分):
gateway_enable="YES"
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
firewall_type="open"
firewall_quiet="YES"
firewall_logging_enable="YES"
natd_enable="YES"
natd_interface="fxp1"
natd_flags="-f /etc/natd.conf"
/etc/natd.conf
log yes
redirect_port tcp 192.168.0.10:110 61.172.13.113:110
#ipfw show
00050 28022 20855525 divert 8668 ip from any to any via fxp1
00100 0 0 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 54858 41581092 allow ip from any to any
65535 0 0 allow ip from any to any
请问这样的配置有错误吗?为什么不能够做port map,telnet 61.172.13.113:110 提示无法连接服务器?
PS:内核部分(IPFW):
options IPFIREWALL
options IPDIVERT
options IPFIREWALL_FORWARD
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPSTEALTH
options ICMP_BANDLIM
options IPFIREWALL_DEFAULT_TO_ACCEPT |
|