Re: [問題] ipfw防火牆設定的問題
謝謝chinsan大~
試了許久終於把防火牆試成功了~
不過NAT還是不行,如果我把XP放在FreeBSD底下
只是要能讓XP上網,且外面可以遠端的到XP,其他外面會進不到XP
設定如下,這樣哪裡錯了~?
========================
/etc/rc.conf
#===對外網卡===
ifconfig_rl0="inet 140.115.67.92 netmask 255.255.255.0"
#===對內網卡===
ifconfig_rl1="inet 192.168.1.254 netmask 255.255.255.0"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
firewall_quiet="YES"
firewall_logging_enable="YES"
natd_enable="YES"
natd_interface="rl0"
natd_flags="-f /etc/natd.conf"
=========================
/etc/natd.conf
redirect_port tcp 192.168.1.1:3389 3389
=========================
/etc/rc.firewall
#!/bin/sh
fwcmd="/sbin/ipfw -q"
#delete all rule
/sbin/ipfw -f flush
${fwcmd} add divert natd all from any to any via rl0
${fwcmd} add pass all from 192.168.1.1/24 to 192.168.1.254
${fwcmd} add pass all from any to any
==========================
XP IP 192.168.1.1
gateway 192.168.1.254
mask 255.255.255.0
==========================
防火牆不擋任何東西,全部都通過
可是這樣設定還是不行~~
不知道哪裡有錯誤?
請指導一下~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.205.139
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章