Essential Firewall Filter Rules

Network firewalls keep outside threats away from sensitive data available inside the network. Whenever different networks are joined together, there is always a threat that someone from outside of your network will break into your LAN. Such break-ins may result in private data being stolen and distributed, valuable data being altered or destroyed, or entire hard drives being erased. Firewalls are used as a means of preventing or minimizing the security risks inherent in connecting to other networks. Properly configured firewall plays a key role in efficient and secure network infrastructure deployment.

Here is the script for the essential Firewall rules that will help to protect your router. Just open a new terminal and paste the script below, then press enter.

If you are getting an error when loading the script change the interface name in the script to the name that is assign to your router’s WAN interface.