Networking: CLI quick reference
I am taking a (Windows-centric) networking class this week, and some of my classmates expressed an interest in GNU/Linux. I wrote up a little reference sheet for them; it occurred to me that since I went to that trouble I should at least share it here on my favorite forum.
Linux networking / CLI quick reference
Displaying configuration details
Display active interfaces:
Display routing tables:
Display packet filtering (netfilter) rules:
See the manpages for ifconfig(8), netstat(8), resolv.conf(5), and iptables(8) for more details.
Basic monitoring and discovery
Display all listening tcp and udp services, suppressing name resolution:
Display all active tcp and udp connnections:
Determine daemon for all listening tcp and udp services (for ipv4 and ipv6):
Display active entries in stateful firewall (netfilter):
Perform fast tcp syn scan on remote host:
Scan entire subnet for any listening http service:
Perform OS detection on remote host, in verbose mode:
Perform three-way tcp handshake with remote service (i.e. connect to tcp service):
Send tcp syn packets using spoofed ip address to remote host's port 21:
Capture all outbound http traffic and print ascii to screen:
See the manpages for netstat(8), lsof(8) , iptstate(1), nmap(1), nc(1), hping2(8), and tcpdump(8) for more details.
Kill your t.v.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Quick Ant Question||disappearedng||FreeBSD General||0||27th October 2008 06:20 AM|
|Quick question about PHP script||18Googol2||Programming||2||21st September 2008 05:33 AM|
|quick question about optimizations in /etc/make.conf||thevirtuesofxen||FreeBSD Installation and Upgrading||7||15th July 2008 10:29 AM|
|NetBSD reference card||Oliver_H||NetBSD General||0||8th May 2008 06:20 PM|
|BBcode tags used to reference manpages||ocicat||Feedback and Suggestions||3||2nd May 2008 12:05 PM|