How to Create DNS Firewall Rule Group on Amazon Web Service(AWS).
A DNS Firewall firewall is a network security solution that prevents network users and systems from connecting to known malicious Internet locations.DNS Firewall works by employing DNS Response Policy Zones (RPZs) and actionable threat intelligence to prevent data exfiltration.
- Login to aws portal.
- Click on Services.
- Under Networking & Content Delivery select VPC.
- Click on Rule Groups.
- Click on Create rule group.
- Provide the rule group name & description.
- Click on Next.
- Click on Add rule.
- Provide Rule name.
- Select Domain list.
- Select Add my own domain list.
- Click on Choose or create a new domain list.
- Provide Domain list name. Enter a domain per line for example: example.com
- Click on Add rule.
- Click on Next.
- Click on Next.
- Set the rule priority.
- Click on Next.
- Provide the key name & value for DNS Firewall rule group.
- Click on Next.
- Review all the configurations.
- Click on Create rule group.
- After sometime DNS firewall rule group is ready.
- Click on New Rule group name .
- Select Associated VPCs.
- Click on Associate VPC.
- Select existing VPC,
- Click on Associate.
- After sometime VPC is successfully associated.
Create DNS firewall rule group using Shell
- Setup aws-cli on your system so click on link https://www.hackerxone.com/blog/how-install-configure-aws-cli-ubuntu-1804
- Run the following command:
create-firewall-rule –firewall-rule-group-id <value> –firewall-domain-list-id <value> –priority <value> –action <value>
TO associate VPC.
associate-firewall-rule-group –firewall-rule-group-id <value> –vpc-id <value> –priority <value> –name <value>