首页 > 其他分享 >To enable inbound and outbound TCP traffic specifically for port 18917 using `ufw` on Debian 12

To enable inbound and outbound TCP traffic specifically for port 18917 using `ufw` on Debian 12

时间:2024-09-07 14:52:36浏览次数:7  
标签:enable outbound inbound sudo TCP -- traffic 18917 port


To enable inbound and outbound TCP traffic specifically for port 18917 using ufw on Debian 12, follow these steps:

  1. Allow inbound TCP traffic on port 18917:
sudo ufw allow 18917/tcp
  1. Allow outbound TCP traffic on port 18917 (if you have restricted outgoing traffic):
sudo ufw allow out to any port 18917 proto tcp
  1. Check the UFW status to confirm the rules have been applied:
sudo ufw status verbose

If you’re using firewalld instead of ufw, the equivalent commands are:

  1. Allow inbound TCP traffic on port 18917:
sudo firewall-cmd --zone=public --add-port=18917/tcp --permanent
  1. Allow outbound TCP traffic on port 18917:
sudo firewall-cmd --zone=public --add-forward-port=port=18917:proto=tcp:toport=18917 --permanent
  1. Reload firewalld to apply the changes:
sudo firewall-cmd --reload
  1. Verify the settings:
sudo firewall-cmd --list-all

This should allow TCP traffic on port 18917 in both directions.


标签:enable,outbound,inbound,sudo,TCP,--,traffic,18917,port
From: https://blog.51cto.com/u_11658127/11945027

相关文章

  • SCKG:Reliable Semantic Communication System Enabled by Knowledge Graph——智能化
    1.语义通信的背景和重要性1.1.传统通信vs.语义通信        传统的通信技术关注的是比特和符号的准确传输,即如何在不丢失信息的前提下将数据从发送端传输到接收端。然而,随着数据量的爆炸性增长和对通信带宽的需求增加,传统通信方式逐渐接近香农容量的上限,难以满足......
  • 解决Git异常 Access denied your account has 2FA enabled
    摘要:解决Git双因子身份验证问题。问题背景  在使用账号和密码的方式拉取公司GitLab代码时,遇到了以下错误提示问题:remote:HTTPBasic:Accessdenied.Theprovidedpasswordortokenisincorrectoryouraccounthas2FAenabledandyoumustuseapersonalaccesstok......
  • [1049] Configuring an S3 bucket with public access and enable public listing of
    ToconfigureanS3bucketwithpublicaccessandenablepubliclistingofallfiles,followthesesteps:Step-by-StepGuideOpentheS3Console:SignintotheAWSManagementConsoleandopentheAmazonS3console.SelectYourBucket:Clickonthe......
  • S4 供应商主数据扩建公司代码,采购组织数据(CVI_EI_INBOUND_MAIN)
    参考:https://blog.csdn.net/DeveloperMrMeng/article/details/131331147以模板数据为基础直接扩充对应的公司代码和采购组织数据: reportZED1_TEST1.tables:sscrfields.data:gt_uploadtypealsmex_tablineoccurs0withheaderline.field-symbols:<fs_upload>likeli......
  • Oracle 12c后enable_ddl_logging的日志位置变化
     Oracle12c后enable_ddl_logging的日志位置变化 先吐个槽,enable_ddl_logging功能是OracleChangeManagementPack的一部分,需要作为单独的许可证购买,要单独花钱......开启enable_ddl_logging功能,在11g中,ddl操作将以XML格式被记录在ADR_HOME/trade/alert_<SID>.log文件中......
  • dockker部署redis报错(报:WARNING Memory overcommit must be enabled! Without it, a b
    转载博客(机翻):https://ourcodeworld.com/articles/read/2083/how-to-remove-redis-warning-on-docker-memory-overcommit-must-be-enabledHowtoremoveRediswarningonDocker:Memoryovercommitmustbeenabled如何删除Docker上的Redis警告:必须启用内存过量使用Carlos......
  • 在Windows Server上启用MIC (Enable microphone on VPS with Windows Server)
    在WindowsServer上启用MICEnablemicrophoneonVPSwithWindowsServer我有一台云主机,装有WindowsServer2012R2系统。现有个需求是需要通过本地电脑的麦克风录制音频。找了好多方法,未果,包括微软社区的回答和园内的博客。但下午脑瓜一转弯,更换了下关键词,找到了这篇文章,问......
  • Tenable Nessus 10.8.0 (macOS, Linux, Windows) 发布,新增功能概览
    TenableNessus10.8.0(macOS,Linux,Windows)下载-#1漏洞评估解决方案TenableNessus10.8.0(2024-07-30)发布Nessus试用版自动化安装程序,支持macOSSonoma、RHEL9和Ubuntu24.04请访问原文链接:https://sysin.org/blog/nessus-10/,查看最新版。原创作品,转载请保留......
  • train_test_split 导致 xgboost 忽略“enable_categorical”
    我正在使用xgboost版本2.1.0当使用xgboost.DMatrix()和'enable_categorical'=True将包含类别列的pandas数据帧转换为DMatrix时,所有行为均按预期运行,除非数据帧是sklearntrain_test_split()返回的数据帧,尽管所有列的数据类型仍属于类别。以下代码产生预期的......
  • 【github】使用KeepassXC 解决github Enable two-factor authentication (2FA) 第二因
    下载https://github.com/keepassxreboot/keepassxc/releases/download/2.7.9/KeePassXC-2.7.9-Win64.msi代理地址https://dgithub.xyz/keepassxreboot/keepassxc/releases/download/2.7.9/KeePassXC-2.7.9-Win64.msi由于该软件不允许截图,以下操作参考官网创建数据库 Kee......