I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
Theory:
your git repository can have more than one remote server; In this case we want to have two:
origin
)upstream
)How to make a private fork from github to gitlab