Vikash, it will be very hard for me to help troubleshoot as there are so many reasons why it might not be working for you. First, try sudo nft list ruleset to see what rules nftables is actually using. Look for anything wrong there. Try sudo dmesg | grep nftables to check the log and look for any error messages. Try to access the web server locally with curl http://localhost . Make sure your web server is running with sudo systemctl status apache2 . If you're using nginx instead of Apache, replace apache2 with nginx in that command. Using some of the knowledge gained from those commands, try searching for a working solution. Good luck!