Centos Xinetd TCP端口映射

178次阅读
没有评论

Centos Xinetd TCP 端口映射

安装

yum install -y xinetd

新增配置

映射阿里云 KMS 服务

# vim /etc/xinetd.d/kms

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
}

代理 Gmail

# vim /etc/xinetd.d/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

正文完
 0
DRMCC
版权声明:本站原创文章,由 DRMCC 于2025-01-07发表,共计563字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)