How to block all incoming and outgoing traffic except outgoing of 80 port and 443 in ufw?

How to block all incoming and outgoing traffic except outgoing of 80 port and 443 in ufw? 图片 1

I need to unlock only outgoing 443 and 80 port, only for navigate through internet, actually im using the rules:

But unfortunally ufw blocks all internet, and the pages does not load.
Do you have any solution to my problem or another alternative?

Note: With CSF config server firewall, is not necessary the incoming traffic in the 443 and 80 ports for connect to internet only the outgoing 443 and 80, but in ufw how i can do it?

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论