Hi,
This should allow me to run a webserver and drop all other packets to 192.168.1.5. Allow all lan traffic to go out, while only allowing internally initiated traffic to come back.
I think there is something wrong! Please correct my mistake.
Code:
ipfw add ### check-state
ipfw add ### permit tcp from any to 192.168.1.5 80 setup keep-state
ipfw add ### permit tcp from 192.168.1.0/24 to any setup keep-state
ipfw add ### permit all from 192.168.1.0.24 to any keep-state
ipfw add ### deny log all from any to 192.168.1.0/24
This should allow me to run a webserver and drop all other packets to 192.168.1.5. Allow all lan traffic to go out, while only allowing internally initiated traffic to come back.
I think there is something wrong! Please correct my mistake.