1. i create a python script to insert the NAT rules into /etc/ufw/before.rules
2. i create a pyGTK gui to manipulate this script
3. user profits
will UFW and therefore GUFW undo those NAT rules i inserted into /etc/ufw/before.rules
Ideally you would be better off just implementing a /etc/ufw/nat.rules file instead of making us sed or grep through another file which changes all the time.
Ok let me simplify this :
1. i create a python script to insert the NAT rules into /etc/ufw/ before. rules
2. i create a pyGTK gui to manipulate this script
3. user profits
will UFW and therefore GUFW undo those NAT rules i inserted into /etc/ufw/ before. rules
Ideally you would be better off just implementing a /etc/ufw/nat.rules file instead of making us sed or grep through another file which changes all the time.