Centos Xinetd TCP端口映射

一、安装Xinetd
yum install -y xinetd

二、新增配置
1.映射KMS服务"kms.cloud.aliyuncs.com" 1688到0.0.0.0 1688
service kms-1688 { type = UNLISTED port = 1688 bind = 0.0.0.0 socket_type = stream wait = no user = nobody redirect = kms.cloud.aliyuncs.com 1688 per_source = UNLIMITED cps = 100 2 }

2.代理Gmail
service imap-993 { type = UNLISTED port = 993 bind = 0.0.0.0 socket_type = stream wait = no user = nobody redirect = imap.gmail.com 993 per_source = UNLIMITED cps = 100 2 } service smtp-465 { type = UNLISTED port = 465 bind = 0.0.0.0 socket_type = stream wait = no user = nobody redirect = smtp.gmail.com 465 per_source = UNLIMITED cps = 100 2 }

三、启动服务
systemctl start xinetd

四、自启动
systemctl enable xinetd

posted @ 2020-12-07 21:44  DRMCC  阅读(202)  评论(0编辑  收藏  举报