Difference between revisions of "Ubuntu"

Jump to navigation Jump to search
340 bytes added ,  09:41, 19 October 2011
→‎Firewall: Added delete rule and example
(→‎Random Settings: Added "Hostname Change")
(→‎Firewall: Added delete rule and example)
Line 252: Line 252:
|-
|-
| <code> ufw status </code>            || Shows the firewall status and existing filters
| <code> ufw status </code>            || Shows the firewall status and existing filters
|-
| <code> ufw status numbered </code>    || Shows the firewall status and numbered existing filters (easier to delete)
|-
|-
| <code> ufw allow from 192.168.1.10 </code> || Allow all traffic from 192.168.1.10
| <code> ufw allow from 192.168.1.10 </code> || Allow all traffic from 192.168.1.10
Line 258: Line 260:
|-
|-
| <code> ufw allow proto tcp from 192.168.1.10 to any port 22 </code> || Allow TCP 22 (SSH) from 192.168.1.10
| <code> ufw allow proto tcp from 192.168.1.10 to any port 22 </code> || Allow TCP 22 (SSH) from 192.168.1.10
|-
| <code> ufw delete 2 </code>          || Delete rule 2
|}
|}
     
 
So, for example, to create a couple of rules and enable...
ufw allow proto tcp from 192.168.10.0/24 to any port 22
ufw allow proto tcp to any port 443
ufw enable
 
== SNMP ==
== SNMP ==
=== Setup (Pre v10) ===
=== Setup (Pre v10) ===

Navigation menu