Enable and disable ufw
ufw enable
ufw disable
Allow all incoming traffic from the specific IP:
ufw allow from 192.168.1.1
Delete rule
ufw delete allow from 192.168.1.1
Frontend for iptables.
ufw enable
ufw disable
ufw allow from 192.168.1.1
ufw delete allow from 192.168.1.1