New answers tagged

0

I think the server firewall will sufficiently do this job but it's pretty risky: https://help.ubuntu.com/12.04/serverguide/firewall.html 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 ...


0

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: https://help.ubuntu.com/community/UFW you also need to block connections first and then allow a specific one.


2

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 ...


0

If you are using any type of firewall, the only way to allow connections is by opening up that port. If your app allows it, you can change the port it uses. There really is no problem with that port being open, technically. Because it's the default port for the service, an attacker may bulk scan hosts to see if that port is open, but that's only an issue if ...


0

In Ubuntu 16.04, user defined rules are stored in /etc/ufw/user.rules. Therefore, you can see the rules with: sudo cat /etc/ufw/user.rules



Top 50 recent answers are included