I think I have this firewall ICMP rule configured correctly but want to ask others before I deploy it. I would like to do the following -
- Allow ICMP requests originating from any host on my LAN to any other host on my LAN.
- Allow ICMP requests originating from any host on my LAN out to the internet and back.
- Drop all ICMP requests not originating from my LAN (for example entering through the gateway)
Firewall rules are as follows -
0 chain=input action=accept protocol=icmp src-address-list=LAN log=no
log-prefix=“”
1 ;;; Drop Invalid Input Connections
chain=input action=drop connection-state=invalid log=no log-prefix=“”
2 ;;; Drop Invalid Forward Connections
chain=forward action=drop connection-state=invalid log=no log-prefix=“”
3 ;;; Accept Input From LAN
chain=input action=accept src-address-list=LAN log=no log-prefix=“”
4 ;;; Accept Established Connections
chain=input action=accept connection-state=established log=no
log-prefix=“”
5 ;;; Drop Everything Else
chain=input action=drop log=no log-prefix=“”
6 ;;; Accept New Connections From LAN
chain=forward action=accept connection-state=new src-address-list=LAN
log=no log-prefix=“”
7 ;;; Accept Related Conncetions
chain=forward action=accept connection-state=related log=no log-prefix=“”
8 ;;; Accept Established Conncetions
chain=forward action=accept connection-state=established log=no
log-prefix=“”
9 ;;; Drop All Other Forward Traffic
chain=forward action=drop log=no log-prefix=“”
So My questions are as follows -
- Given the firewall rules I have in place does this seem like the best way to implement my ICMP rule?
- Should any of my firewall rules be placed in a different order?