Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
Forked from drAlberT/CS_ufw.md
Last active March 7, 2018 17:49
Show Gist options
  • Select an option

  • Save carlessanagustin/84e0a334a6c9bae4b12e9919ce64f63d to your computer and use it in GitHub Desktop.

Select an option

Save carlessanagustin/84e0a334a6c9bae4b12e9919ce64f63d to your computer and use it in GitHub Desktop.

Revisions

  1. carlessanagustin revised this gist Mar 7, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ufw_cs.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ ufw [--dry-run] app list|info|default|update
    ```
    ufw allow ssh | 22
    ufw allow proto tcp to 0.0.0.0/0 port 22
    ufw allow from 15.15.15.0/24 to any port 22
    ufw allow from 15.15.15.0/24 to any port 22
    ufw deny from 15.15.15.51
    ufw deny in on eth0 from 15.15.15.51
  2. carlessanagustin revised this gist Mar 7, 2018. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions ufw_cs.md
    Original file line number Diff line number Diff line change
    @@ -22,10 +22,12 @@ ufw [--dry-run] app list|info|default|update
    ## Examples

    ```
    ufw deny from 15.15.15.51
    ufw deny in on eth0 from 15.15.15.51
    ufw allow ssh | 22
    ufw allow proto tcp to 0.0.0.0/0 port 22
    ufw allow from 15.15.15.0/24 to any port 22
    ufw deny from 15.15.15.51
    ufw deny in on eth0 from 15.15.15.51
    ufw allow proto tcp from any to any port 80,443
    ufw deny out 25
    ufw status <numbered>
  3. carlessanagustin revised this gist Jan 16, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion ufw_cs.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,8 @@ ufw [--dry-run] reset
    ufw [--dry-run] status [verbose|numbered]
    ufw [--dry-run] show REPORT
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out] [log|log-all] PORT[/protocol]
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all] [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all]
    [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    ufw [--dry-run] delete NUM
    ufw [--dry-run] app list|info|default|update
    ```
    @@ -31,6 +32,7 @@ ufw status <numbered>
    ufw delete <rule_number>
    ufw insert 1 <your_rule>
    ufw status verbose
    ufw status numbered verbose
    ufw app list
    ufw allow in on eth0 log from any to any app SSH-22022
    ufw [delete] allow in proto udp from 193.204.114.105 to 12.34.56.78 port 123
  4. carlessanagustin revised this gist Sep 8, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions ufw_cs.md
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,7 @@ ufw [--dry-run] reset
    ufw [--dry-run] status [verbose|numbered]
    ufw [--dry-run] show REPORT
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out] [log|log-all] PORT[/protocol]
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all]
    [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all] [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    ufw [--dry-run] delete NUM
    ufw [--dry-run] app list|info|default|update
    ```
  5. carlessanagustin renamed this gist Sep 8, 2017. 1 changed file with 20 additions and 10 deletions.
    30 changes: 20 additions & 10 deletions CS_ufw.md → ufw_cs.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@
    UFW cheat sheet
    ===
    # UFW cheat sheet

    ## Usage

    Usage
    ---
    ```
    ufw [--dry-run] enable|disable|reload
    ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
    @@ -20,9 +19,20 @@ ufw [--dry-run] delete NUM
    ufw [--dry-run] app list|info|default|update
    ```

    Examples
    ---
    - `ufw status verbose`
    - `ufw app list`
    - `ufw allow in on eth0 log from any to any app SSH-22022`
    - `ufw [delete] allow in proto udp from 193.204.114.105 to 12.34.56.78 port 123`
    ## Examples

    ```
    ufw deny from 15.15.15.51
    ufw deny in on eth0 from 15.15.15.51
    ufw allow ssh | 22
    ufw allow from 15.15.15.0/24 to any port 22
    ufw allow proto tcp from any to any port 80,443
    ufw deny out 25
    ufw status <numbered>
    ufw delete <rule_number>
    ufw insert 1 <your_rule>
    ufw status verbose
    ufw app list
    ufw allow in on eth0 log from any to any app SSH-22022
    ufw [delete] allow in proto udp from 193.204.114.105 to 12.34.56.78 port 123
    ```
  6. @drAlberT drAlberT revised this gist Sep 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion CS_ufw.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    UFW chect sheet
    UFW cheat sheet
    ===

    Usage
  7. @drAlberT drAlberT revised this gist Feb 3, 2016. 1 changed file with 13 additions and 12 deletions.
    25 changes: 13 additions & 12 deletions CS_ufw.md
    Original file line number Diff line number Diff line change
    @@ -3,21 +3,22 @@ UFW chect sheet

    Usage
    ---
    - ufw [--dry-run] enable|disable|reload
    - ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
    - ufw [--dry-run] logging on|off|LEVEL
    ```
    ufw [--dry-run] enable|disable|reload
    ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
    ufw [--dry-run] logging on|off|LEVEL
    toggle logging. Logged packets use the LOG_KERN syslog facility. Systems configured for rsyslog
    support may also log to /var/log/ufw.log. Specifying a LEVEL turns logging on for the specified LEVEL.
    The default log level is 'low'.
    - ufw [--dry-run] reset
    - ufw [--dry-run] status [verbose|numbered]
    - ufw [--dry-run] show REPORT
    - ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out] [log|log-all] PORT[/protocol]
    - ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all]
    [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    - ufw [--dry-run] delete NUM
    - ufw [--dry-run] app list|info|default|update
    ufw [--dry-run] reset
    ufw [--dry-run] status [verbose|numbered]
    ufw [--dry-run] show REPORT
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out] [log|log-all] PORT[/protocol]
    ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all]
    [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    ufw [--dry-run] delete NUM
    ufw [--dry-run] app list|info|default|update
    ```

    Examples
    ---
  8. @drAlberT drAlberT revised this gist Feb 3, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions CS_ufw.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ Usage
    - ufw [--dry-run] enable|disable|reload
    - ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
    - ufw [--dry-run] logging on|off|LEVEL

    toggle logging. Logged packets use the LOG_KERN syslog facility. Systems configured for rsyslog
    support may also log to /var/log/ufw.log. Specifying a LEVEL turns logging on for the specified LEVEL.
    The default log level is 'low'.
  9. @drAlberT drAlberT created this gist Feb 3, 2016.
    26 changes: 26 additions & 0 deletions CS_ufw.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    UFW chect sheet
    ===

    Usage
    ---
    - ufw [--dry-run] enable|disable|reload
    - ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
    - ufw [--dry-run] logging on|off|LEVEL
    toggle logging. Logged packets use the LOG_KERN syslog facility. Systems configured for rsyslog
    support may also log to /var/log/ufw.log. Specifying a LEVEL turns logging on for the specified LEVEL.
    The default log level is 'low'.
    - ufw [--dry-run] reset
    - ufw [--dry-run] status [verbose|numbered]
    - ufw [--dry-run] show REPORT
    - ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out] [log|log-all] PORT[/protocol]
    - ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out on INTERFACE] [log|log-all]
    [proto protocol] [from ADDRESS [port PORT]] [to ADDRESS [port PORT]]
    - ufw [--dry-run] delete NUM
    - ufw [--dry-run] app list|info|default|update

    Examples
    ---
    - `ufw status verbose`
    - `ufw app list`
    - `ufw allow in on eth0 log from any to any app SSH-22022`
    - `ufw [delete] allow in proto udp from 193.204.114.105 to 12.34.56.78 port 123`