Useful network tools on FreeBSD 7

Prerequisites:

FreeBSD (Base + Autoconf, Automake, Bash and GCC)

Some nice command line network utilities that come in handy!  Keep these in your tool box!

# nmap is a powerful network scanning tool that should be a standard item in your tool box
cd /usr/ports/security/nmap
make install clean
# Example:
# nmap v sV -O -p 21,135,139,445,5800,5900 www.netjunkies.net

# nmapfe is a frontend GUI for nmap to make life simpler
# cd /usr/ports/security/nmapfe
# make install clean

# Example:
# nmapfe &

# dnstracer determines where a given Domain Name Server (DNS) gets its information
cd /usr/ports/dns/dnstracer
make install clean
# Example:
# dnstracer www.netjunkies.net


# dhcping sends a DHCP request to DHCP server to see if it's up and running
cd /usr/ports/net/dhcping
make install clean
# Example:
# dhcping -v 172.28.0.10


# echoping tests performances of a remote host by sending it TCP "echo" (or other protocol) packets
cd /usr/ports/net/echoping
make install clean
# Example:
# echoping -h / www.netjunkies.net:80


# fping is meant to be used in scripts and its output is easy to parse
cd /usr/ports/net/fping
make install clean
# Examples:
# fping -g 172.28.0.0/24
# fping -a -g 172.28.0.0/24


# hping is a command-line oriented TCP/IP packet assembler/analyzer
cd /usr/ports/net/hping
make install clean
# Example:
# hping --scan 1-1024 -S 172.28.0.10


# ngrep can be used to debug various plain text protocols like HTTP and FTP etc.
cd /usr/ports/net/ngrep
make install clean
# Example:
# ngrep port 80

# netcat is the tcp/ip "Swiss Army knife"
cd /usr/ports/net/netcat
make install clean
# Examples:
# nc -v www.netjunkies.net 80 (and type: GET / HTTP/1.0)
# nc -v www.netjunkies.net 80 < get.txt

# wget is for retrieving files using HTTP, HTTPS and FTP mostly used by scripts or at the command line
cd /usr/ports/ftp/wget
make install clean
# Example:
# wget http://members.netjunkies.net/n3ncy/FreeBSD61/Useful-Network-Tools.htm

# ipmitools for a simple command-line interface to Baseboard Management Controller (BMC)
cd /usr/ports/sysutils/ipmitool
make install clean
# Example:
# ipmitool -I lan -H 172.28.0.12 -f passfile chassis power status

# tcpview a tcpdump front end GUI
cd /usr/ports/net/tcpview
make install clean
# Example:
# tcpview &

# trafshow
cd /usr/ports/net/trafshow
make install clean
# Example:
# trafshow

# Putty
cd /usr/ports/security/putty
make install clean

# Pancho
cd /usr/ports/net-mgmt/pancho/
make install clean

# Rancid - Cisci "diff" tool
cd /usr/ports/net-mgmt/rancid/
make install clean
#Notes: http://www.joe-ma.co.za/page.php?9

# Switchmap
cd /usr/src
fetch http://superb-east.dl.sourceforge.net/sourceforge/switchmap/switchmap-10.18.tar.gz
tar xvfz switchmap-10.18.tar.gz

# WireShark
cd /usr/ports/net/wireshark
make install clean

# Lynx
cd /usr/ports/www/lynx
make install clean
 

 

cd # wgetpro is also for retrieving files, but has advanced capabilities like pulling a file out of a stream
# v1.3 has vulnerabilities and should not be on a production server
# cd /usr/ports/ftp/wgetpro/
# make install clean
# Example:
# wpro mms://win30ny.audiovideoweb.com/avwebdsnywin3147/bush.wmv