-
iptables端口转发
发布于:2017-08-03 作者:Garany 评论(1) 引用(0) 浏览(1299) 分类:破万卷书
clinet eth0: 192.168.100.22/24 gateway:192.168.100.1 宿主机 eth0:192.168.100.223/24 gateway:192.168.100.1 eth1: 172.16.0.1/24 gateway:none 虚机 eth0: 172.16.0.2/24 gateway:172.16.0.1 要求: 把虚机的22端口转发给宿主的2020端口,让clinet可以访问 # vim iptables.sh #!/bin/bash # 转发内网地址172.16.0.2:22到外网192.168.100.223:2020 # 内网gateway 172.16.0.1 Lan_IP=172.16.0.2 Wan_IP=192.168.100.223 iptables -F # 开启转发 echo "1" > /...
-
使用 Let’s Encrypt 为 nginx+tomcat 开启 https
发布于:2016-12-20 作者:Garany 评论(0) 引用(0) 浏览(1567) 分类:破万卷书
有关 Let’s Encrypt 详细请参看本站另一篇博文 一、生成证书 # git clone https://github.com/letsencrypt/letsencrypt # cd letsencrypt/ # ./letsencrypt-auto --debug certonly --email gxxxxy@163.com --standalone -d ssl.xxxxx.com # echo $? 二、修改tomcat server.xm # vim /tomcat_PATH/conf/server.xml <Service name="Catalina"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redire...
-
使用Let’s Encrypt为nginx开启https
发布于:2016-12-20 作者:Garany 评论(0) 引用(0) 浏览(1449) 分类:破万卷书
一、首次生成证书 # git clone https://github.com/letsencrypt/letsencrypt # cd letsencrypt/ 二、域名认证 # ./letsencrypt-auto --debug certonly --webroot --email garany@qq.com -d ssl.junc.wang -w /var/www/wordpress/ 说明: --webroot 用web服务根目录方式认证 ./letsencrypt-auto --debug certonly --email you.email --webroot -w /var/www/example -d example.com -w /var/www/thing -d thing.net -d m.thing.net --apache web服务是apache的使...
最新微语
最新文章
链接
最新评论
- EdwardSoype 说:
十字路口,我们分着走。你走我的泪,... - 热搜 说:
文章还不错支持一下 - 头条 说:
文章非常好超喜欢 - 新闻头条 说:
文章非常好超喜欢 - 今日头条新闻 说:
文章还不错支持一下