top of page

Linux Networking Commands

Updated: Feb 14

Find out your Public IP

dig +short

List the processes listening on which port

netstat -plunt                             -


List routing table in Linux

ip route

Add and Remove Route

sudo ip route add via dev wlp3s0
sudo ip route del via dev wlp3s0

Flush/Clear all Iptable rules

iptables -F

Packet Capturing using tcpdump

List of interface could be found by using the following command:

tcpdump -i eth0 net
tcpdump -i eth0 src net
tcpdump -i eth0 port 53

13 views0 comments


bottom of page