Another tip when it comes to security.
Many modems/routers have a build in (hardware) firewall.
Have a look at the settings.
With any firewall (software/hardware) it is best to close ALL ports first and then open only those ones who you really need.