Friday 4 April 2014

UBUNTU FIREWALL COMMANDS

UBUNTU FIREWALL COMMANDS


ufw enable                       – turn on the firewall
ufw disable                       – turn off the firewall
ufw default allow             – allow all connections by default
ufw default deny              – drop all connections by default
ufw status                         – current status and rules
ufw allow port                  – allow traffic on port
ufw deny port                  – block port
ufw deny from ip             – block ip adress

UBUNTU NETWORK COMMANDS

UBUNTU NETWORK COMMANDS


  CMDS                                                               Detail

ifconfig                                                   – show network information
iwconfig                                                  – show wireless information
sudo iwlist scan                                      – scan for wireless networks
sudo /etc/init.d/networking restart        – reset network for manual configurations
(file) /etc/network/interfaces                 – manual configuration
ifup interface                                          – bring interface online
ifdown interface                                     – disable interface