LocalSend is a free, open-source app that allows you to securely share files and messages with nearby devices over your local network without needing an internet connection.
在 EndeavourOS 下使用 LocalSend 的时候发现,能正常发现局域网内的其他设备进行文件传输,但是其他设备看不到本机。原因是 EndeavourOS 默认开启的防火墙规则是宽进严出的,需要增加开放 LocalSend 的端口规则才可以。
EndeavourOS 默认是使用 Firewalld 作为防火墙,使用 firewall-cmd 命令可以很方便的设置防火墙规则, LocalSend 默认使用 53317 端口,使用 TCP 和 UDP 协议。
firewall-cmd --get-active-zones # 查看当前网口对应的区域,一般使用的区域是 public
sudo firewall-cmd --zone=public --add-port=53317/tcp # 如果要添加永久规则需要添加 --permanent 参数
sudo firewall-cmd --zone=public --add-port=53317/udp
sudo firewall-cmd --reload # 添加永久规则时需要重载规则,或者是重启防火墙
firewall-cmd --list-ports # 查看当前开放的端口规则
完成这些规则设置,本机 LocalSend 就可以与其他设备互通了。
Related
打包百度网盘 AppImage
百度网盘官方只提供了 Linux 下的 deb 和 rpm 格式包文件,在 Arch 或者 SUSE 等发行版上使用不太方便。
Arch Linux 配置 MPD
Music Player Daemon (MPD) is a flexible, powerful, server-side application for playing music.
KDE 启用 Plasma Login Manager
Plasma Login provides a display manager for KDE Plasma, forked from SDDM and with a new frontend providing a greeter, wallpaper plugin integration and System Settings module (KCM).