IPFW IP and Ports

Hi
I want to open access by IP address AND port 4567.
If I have a rule specified in the file fwrules.conf
Code:
$cmd add 507 allow all from 10.0.0.44 to me
whether there is a need to additionally specify port 4567?
Code:
$cmd add 906 allow tcp from 10.0.0.44 to me 4567
for example
Code:
$cmd add 507 allow all from 10.0.0.44 to me
$cmd add 906 allow all from 10.0.0.44 to me 4567
Do I need to write two lines at a time or it is enough to write only the first line?
 
Code:
$cmd add 507 allow all from 10.0.0.44 to me
Rule allows connections from 10.0.0.44 to ALL ports on the host, both TCP and UDP (ICMP is allowed too).

Code:
$cmd add 906 allow tcp from 10.0.0.44 to me 4567
Rule only allows access from 10.0.0.44 to a specific TCP port on the host.

Code:
$cmd add 906 allow all from 10.0.0.44 to me 4567
Rule only allows access from 10.0.0.44 to a specific port (both UDP and TCP) on the host.
 
Back
Top