CheckPoint Firewall Troubleshooting using tcpdump Commands

Capture host

tcpdump –i interface-name host host-ip-address
Capture Host

No Domain lookup

tcpdump –i interface-name -n host host-ip-address
No Domain Lookup

No Domain & protocol lookup

tcpdump –i interface-name -nn host host-ip-address
No Domain Protocol

Restrict the captured packets

tcpdump –i interface-name -nn host host-ip-address -c number-of-pkts-to-captured
Restrict Packets

Capture service

tcpdump –i interface-name -nn port port-number -c number-of-pkts-to-captured
Capture Service

Capture host & service

tcpdump –i interface-name -nn host host-ip and port port-number -c number-of-pkts-to-captured
Host and Service

Capture host & protocol

tcpdump –i interface-name -nn host host-ip and protocol -c number-of-pkts-to-captured
Host and Protocol

Negate Filter

tcpdump –i interface-name -nn host host-ip and not protocol -c number-of-pkts-to-captured
Negate Filter

Capture Source/Destination

tcpdump –i interface-name -nn dst destination-host-ip and not protocol -c number-of-pkts-to-captured
Source Destination

Complex Combination

tcpdump -i eth3 -nn "dst 216.58.197.36 or dst 216.58.196.99" and port 443 -c 10
Complex Combination

Capture MAC address

MAC Capture
tcpdump -i eth3 -nn -e host 8.8.8.8 and icmp -c 5

SecureXL (0N) – Be Careful

tcpdump -i eth0 -nn -e host 192.168.130.167 and port 80 -c 5
SecureXL On

SecureXL (0FF)

tcpdump -i eth0 -nn -e host 192.168.130.167 and port 80 -c 5
SecureXL Off

ClusterXL

tcpdump -i eth3 -nn host 0.0.0.0 -c 50
ClusterXL