ipfw 與 nat 外部ip 重導的問題 - BBS
By Heather
at 2008-01-31T18:00
at 2008-01-31T18:00
Table of Contents
※ 引述《starlition ()》之銘言:
: ※ 引述《rightflow (交大再見,畢業了...)》之銘言:
: : ${fwcmd} add 1020 divert natd ip from any to 10.0.0.1 via fxp0
: : ${fwcmd} add 1040 divert natd ip from 192.168.0.0/16 to any
: 這兩行改成下面這一行試試看
: ${fwcmd} add 1020 divert natd ip from 192.168.0.0/16 to any via fxp0
長輩 我試了 還是不通...
這是內部 ip 連出去時 就卡在 SYN 回不來XD...
tcp4 0 0 192.168.0.97.51484 10.0.0.1.25 SYN_SENT
: : ${fwcmd} add 30030 pass ip from 10.0.0.1 to any keep-state
: : ${fwcmd} add 30030 pass ip from 192.168.0.0/16 to any keep-state
: : ${fwcmd} allow tcp from any to me 25
--
: ※ 引述《rightflow (交大再見,畢業了...)》之銘言:
: : ${fwcmd} add 1020 divert natd ip from any to 10.0.0.1 via fxp0
: : ${fwcmd} add 1040 divert natd ip from 192.168.0.0/16 to any
: 這兩行改成下面這一行試試看
: ${fwcmd} add 1020 divert natd ip from 192.168.0.0/16 to any via fxp0
長輩 我試了 還是不通...
這是內部 ip 連出去時 就卡在 SYN 回不來XD...
tcp4 0 0 192.168.0.97.51484 10.0.0.1.25 SYN_SENT
: : ${fwcmd} add 30030 pass ip from 10.0.0.1 to any keep-state
: : ${fwcmd} add 30030 pass ip from 192.168.0.0/16 to any keep-state
: : ${fwcmd} allow tcp from any to me 25
--
Tags:
BBS
All Comments
Related Posts
FreeBSD的squid error
By Selena
at 2008-01-31T16:22
at 2008-01-31T16:22
FreeBSD的squid error
By Rebecca
at 2008-01-31T11:32
at 2008-01-31T11:32
FreeBSD的squid error
By Edwina
at 2008-01-31T11:30
at 2008-01-31T11:30
ipfw 與 nat 外部ip 重導的問題
By Audriana
at 2008-01-31T11:17
at 2008-01-31T11:17
FreeBSD的squid error
By Charlie
at 2008-01-31T10:43
at 2008-01-31T10:43