Sample Header Ad - 728x90

How to add multiple user.rules in ufw?

4 votes
1 answer
3490 views
I know you can add rules one by one. But is there a way to add rules in one go - For instance, this is how you add rules in ufw in Debian - $ sudo ufw allow 80/tcp $ sudo ufw allow 443/tcp $ sudo ufw allow 22/udp Now instead of doing it 1 by 1, is there a way to do it all at once ? I did try - $ sudo ufw allow 80/tcp 443/tcp 22/udp but that didn't work, any ideas ?
Asked by shirish (12954 rep)
Jan 22, 2017, 11:23 AM
Last activity: Jun 17, 2025, 10:01 AM