commands are:

iptables -I INPUT -p tcp --dport 3389 -j ACCEPT > to open only that tcp port

sudo ufw enable transmission > to open the whole program

being a newbie I’d say it’s safer to only open a determined port with iptables. What do you think?

  • boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    ufw or firewalld have presets and will automatically open the right ports and traffic types.

    Also these are different programs.