Ufw Ubuntu Firewall
Firewall non complicato installato di default su ubuntu, ecco i comandi che ho dato nell'ordine per non tagliarmi fuori sulle macchine remote
Status
ufw status
Status: inactive
#Se invece è attivo con la modalità verbose da le regole
ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
80/tcp ALLOW IN Anywhere
Cambiare le regole
# ufw default allow
Default incoming policy changed to 'allow'
(be sure to update your rules accordingly)
# ufw allow 80/tcp
Rules updated
# ufw allow 22/tcp
Rules updated
#ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
#ufw default deny
Abilitare una porta per un ip
ufw allow from 192.168.0.4 to any port 22
Eliminare una regola precedentemente inserita
ufw allow 22/tcp
ufw delete allow 22/tcp
Abilitarlo
ufw enable
Una bella guida in italiano è qui http://wiki.ubuntu-it.org/Sicurezza/Ufw
versione della pagina: 3, ultima modifica: 08 Oct 2012 15:54