Translations:KDEConnect/119/zh-hans: Difference between revisions

From KDE Wiki Sandbox
(Created page with "如果你使用 '''firewalld'''防火墙,你可以通过如下指令打开必要的端口: <syntaxhighlight lang="bash"> sudo iptables -I INPUT -i <yourinterface> -p udp -...")
 
No edit summary
 
Line 1: Line 1:
如果你使用 '''firewalld'''防火墙,你可以通过如下指令打开必要的端口:
如果你使用 '''firewalld''' 防火墙,你可以通过如下指令打开必要的端口:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo iptables -I INPUT -i <yourinterface> -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT -i <yourinterface> -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT -i <yourinterface> -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT -i <yourinterface> -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT

Latest revision as of 05:33, 25 June 2021

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (KDEConnect)
If your firewall is '''iptables''', you can open the necessary ports with:
 
<syntaxhighlight lang="bash">
sudo iptables -I INPUT -i <yourinterface> -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT -i <yourinterface> -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT

如果你使用 firewalld 防火墙,你可以通过如下指令打开必要的端口: <syntaxhighlight lang="bash"> sudo iptables -I INPUT -i <yourinterface> -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT sudo iptables -I INPUT -i <yourinterface> -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT