question about ipfw syntax

Tom Cruickshank tcruicksh at gmail.com
Mon Apr 24 01:40:13 UTC 2006


Hello,

     I’m running Freebsd 6.0 and trying to do port forwarding on port 5000
using ipfw.

 

Here is what I currently have.

Cmd = “ipfw –q add ”  

 

 

$cmd 00530 accept all from any any to <external ip> 5000 in via fxp0

$cmd 00535 accept all from any any to <internal ip of computer> 5000 out via
fxp0

/sbin/natd -n fxp0 redirect_port tcp <internal ip>:5000 5000

 

 

Would this be the correct method to have port 5000 open on my firewall?

 

Please let me know. Thanks.

 

Tom

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.5/322 - Release Date: 4/22/2006
 


More information about the freebsd-ipfw mailing list