Just learned a command line tool ufw for configure the firewall. It seems easy to use, but the server guide didn't teach how to setup rule on specific interface.
Lucky I found the solution, to configure ufw for specific interface, use the following syntax:
sudo ufw allow in on eth0
sudo ufw deny out on eth0
sudo ufw deny in on eth0 to any from any port 80 proto tcp
No comments:
Post a Comment