Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add ufw rule from

sudo ufw allow from 203.0.113.4 to any port 22
Comment

Ufw rules

- name: Install UFW.
  apt:
    name: ufw
    state: present
    
- name: Setup default firewall rules.
  command: "ufw {{ item }}"
  with_items: 
    - default deny incoming on eth0
    - default allow outgoing on eth0
    - default allow incoming on eth1
    - default allow outgoin on eth1
    - default allow FORWARD
    - allow ssh

- name: Set up custom firewall rules.
  command: "ufw {{ item }}"
  with_items: firewall_rules

- name: Start UFW.
  command: ufw --force enable # Force flag used to skip `are you sure` query.
Comment

PREVIOUS NEXT
Code Example
Shell :: git copy remote branch to local 
Shell :: switching branch in git 
Shell :: github clone 
Shell :: npm global package not found 
Shell :: composer install twig 
Shell :: remove quotes from parameter batch 
Shell :: lldb for mac 
Shell :: mysql password inline cli 
Shell :: get android device version emulator adb 
Shell :: install openwhisk 
Shell :: ubuntu 2022 theme 
Shell :: ubuntu bash zip 
Shell :: commandAndExit cts 
Shell :: What does maven clean install -U do? 
Shell :: split command in linux 
Shell :: How to run test with very_good_cli in flutter 
Shell :: sort files 
Shell :: how to make kali linux faster - To change swappiness value 
Shell :: github action and netlify deploy 
Shell :: Install GIMP Ubuntu 18.04 terminal 
Shell :: firebase hosting deploy with message 
Shell :: grep on result of curl 
Shell :: grep -R exlude directory 
Shell :: How do I check my graphics card size in Linux? 
Shell :: how to find inode of a file in linux 
Shell :: how to check apt upgradable size 
Shell :: threshold 
Shell :: powershell start exe hidden 
Shell :: windows powershell the operation requires elevation 
Shell :: hide npm fund 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =