Custom chain and rules for ufw-framework

Job ID: 30991861

Budget: $10 – $30 AUD

A 10 min project for those who know what they are doing - we will pay $30 for it.

Basically we are trying to setup a whitelist filter as a manual entry in /etc/ufw/before.rules that would allow us to only allow traffic from a specific IP address. What we need:

- to create a new user defined chain which gets parsed and displayed correctly when running iptables -S. Call it whitelist
- to create a couple of rules which would allow traffic from a single IP address, say 120.20.20.1, in that chain
- this rule will need to be run before any rules listed in /etc/ufw/user.rules, and in fact prevent those /etc/ufw/user.rules from executing if the packet is not from the above IP. I.e. we need to DROP the chain before it reaches user.rules
- the rules to be persistent after reboot
- we do not want to migrate to either iptables or firewalld, the solution will need to be using ufw-framework

The project:
- spawn your own Debian 10 VM on your own infrastructure
- write a bash script that accomplishes the above
- the payment is made when we can replicate your solution on our own VM
- we are short on time, so if your script does not work after 2x attempts on our end, we are gonna reward the project to the next bidder

Happy bidding!