
安装
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
正文完