IPFW Port-range forwarding

Hello,
i'm trying to forward a range of ports via ipfw, as the man states the syntax should be:
Code:
            With the TCP and UDP protocols, optional ports may be specified
             as:

                   {port|port-port|port:mask}[,port[,...]]
So i've set the following rule:
Code:
add 018500 fwd 192.168.251.250,5060-5081 tcp from any to me via igb0 dst-port 5060-5081
Then if i use ipfw list command i get the following output:
Code:
18500 fwd 192.168.251.250,5060 tcp from any to me via igb0 dst-port 5060-5081

What am I doing wrong?
Any help is apprecieted. Thanks
 
The dst-port can be specified as port1-port2, not the fwd port:
Code:
     fwd | forward ipaddr | tablearg[,port]
Note that it says port not ports.

Code:
     dst-port ports
             Matches IP packets whose destination port is one of the port(s)
             specified as argument.

ports is defined as :
Code:
     ports: {port | port-port}[,ports]
 
Back
Top