New answers tagged


I think the server firewall will sufficiently do this job but it's pretty risky: The problem is, if you block all traffic except from your IP address, what happens if your IP address changes? You're locked out from your machine. If you know you have 2 routes into the server both with static IP ...


Allow by specific port and IP address sudo ufw allow from <target> to <destination> port <port number> i got this from the UFW help page: you also need to block connections first and then allow a specific one.


Try something like this You wish to change ufw rules based on interface status. Nice place for this kind of action is in /etc/network/if-down.d/ and /etc/network/if-up.d/ You can in this folder put some script and make action. For example put this script in /etc/network/if-down.d/ to change ufw rules every time when tun0go down. Make script called ...


I have installed it today (2016.05.06) and everything works fine. I'm using GUFW version 16.04.1, Ubuntu 16.04 with kernel 4.4.0-21-generic. I already had the package python-gi installed at version 3.20.0-0ubuntu1

Top 50 recent answers are included