ipfw防火牆設定的問題 - BBS
By Eartha
at 2008-07-29T12:05
at 2008-07-29T12:05
Table of Contents
謝謝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
==========================
防火牆不擋任何東西,全部都通過
可是這樣設定還是不行~~
不知道哪裡有錯誤?
請指導一下~
--
試了許久終於把防火牆試成功了~
不過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
==========================
防火牆不擋任何東西,全部都通過
可是這樣設定還是不行~~
不知道哪裡有錯誤?
請指導一下~
--
Tags:
BBS
All Comments
Related Posts
無法關機或重開機
By Cara
at 2008-07-28T21:33
at 2008-07-28T21:33
無法關機或重開機
By Megan
at 2008-07-28T17:20
at 2008-07-28T17:20
ipfw防火牆設定的問題
By Xanthe
at 2008-07-28T16:57
at 2008-07-28T16:57
連結檔與提示符號%~
By Queena
at 2008-07-27T03:37
at 2008-07-27T03:37
連結檔與提示符號%~
By Annie
at 2008-07-27T01:37
at 2008-07-27T01:37