In a similar way, you can create the firewall rules for application servers for ingress and egress to access the application.