Difference between revisions of "Configuration (Ubuntu)"

Jump to navigation Jump to search
m
→‎Firewall: Added NTP example
(→‎Firewall: Added "Deny a Specific Host")
m (→‎Firewall: Added NTP example)
Line 53: Line 53:
|-
|-
| <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 allow proto udp from any to any port 123 </code> || Allow UDP 123 (NTP) from any host
|-
|-
| <code> ufw delete 2 </code>          || Delete rule 2
| <code> ufw delete 2 </code>          || Delete rule 2
Line 63: Line 65:


Be aware that '''rules are processed in order''', despite the fact that there is no easy way to alter the order of your rules using <code>ufw</code> or insert rules above existing ones.  Therefore you need to think about the order of your rules carefully.
Be aware that '''rules are processed in order''', despite the fact that there is no easy way to alter the order of your rules using <code>ufw</code> or insert rules above existing ones.  Therefore you need to think about the order of your rules carefully.
See [[TCP UDP Ports]] for further info on common ports.


=== Deny a Specific Host ===
=== Deny a Specific Host ===

Navigation menu