<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vpn &#8211; 编程技术记录</title>
	<atom:link href="https://blog.z6z8.cn/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.z6z8.cn</link>
	<description>世界你好!</description>
	<lastBuildDate>Sat, 22 Feb 2020 08:32:35 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>从源码编译WireGuard for iOS and macOS</title>
		<link>https://blog.z6z8.cn/2020/02/22/%e4%bb%8e%e6%ba%90%e7%a0%81%e7%bc%96%e8%af%91wireguard-for-ios-and-macos/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Sat, 22 Feb 2020 08:32:35 +0000</pubDate>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[安全运维]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=811</guid>

					<description><![CDATA[1、下载源码 #克隆git仓库 我在gitee上上传了一份代码https://gitee.com/gm958s [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>1、下载源码</p>
<pre><code class="language-shell">#克隆git仓库 我在gitee上上传了一份代码https://gitee.com/gm958spanda/wireguard-apple.git
git clone https://git.zx2c4.com/wireguard-apple
#进入git仓库文件夹
cd wireguard-apple</code></pre>
<p>2、设置 apple team ID :</p>
<pre><code class="language-shell">#将开发者模版文件复制一份
cp
WireGuard/WireGuard/Config/Developer.xcconfig.template WireGuard/WireGuard/Config/Developer.xcconfig
#编辑开发者文件（这步骤其实最好用Xcode打开工程文件编辑）
$ vim WireGuard/WireGuard/Config/Developer.xcconfig</code></pre>
<p>3、安装swiftlint 和 go </p>
<pre><code class="language-shell">#先更改文件的访问权限（安装时需要写权限）
sudo chown -R $(whoami) /usr/local/lib /usr/local/lib/pkgconfig /usr/local/lib/python3.7/site-packages
#安装
brew install swiftlint go</code></pre>
<p>4、用Xcode编译打包<br />
用Xcode打开工程文件<br />
open ./WireGuard/WireGuard.xcodeproj<br />
然后就是常规的编译打包动作了</p>
<p>文章参考https://git.zx2c4.com/wireguard-apple/about/<br />
其他平台的客户端参考https://www.wireguard.com/repositories/</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>【转】一键安装wireguard的脚本</title>
		<link>https://blog.z6z8.cn/2020/02/22/%e3%80%90%e8%bd%ac%e3%80%91%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85wireguard%e7%9a%84%e8%84%9a%e6%9c%ac/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Sat, 22 Feb 2020 02:20:25 +0000</pubDate>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[安全运维]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=808</guid>

					<description><![CDATA[wireguard是一款vpn服务 wireguard.com是官方 脚本连接如下 可用一：https://g [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>wireguard是一款vpn服务<br />
wireguard.com是官方<br />
脚本连接如下<br />
可用一：<a href="https://github.com/angristan/wireguard-install">https://github.com/angristan/wireguard-install</a><br />
可用二：<a href="https://github.com/teddysun/across/blob/master/wireguard.sh">https://github.com/teddysun/across/blob/master/wireguard.sh</a></p>
<p>客户端安装<br />
客户端参考https://www.wireguard.com/repositories/</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[转]linux上的openvpn server的管理脚本</title>
		<link>https://blog.z6z8.cn/2020/02/22/%e8%bd%aclinux%e4%b8%8a%e7%9a%84openvpn-server%e7%9a%84%e7%ae%a1%e7%90%86%e8%84%9a%e6%9c%ac/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Fri, 21 Feb 2020 17:12:46 +0000</pubDate>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[安全运维]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=806</guid>

					<description><![CDATA[找个地方记录，有备无患 wget https://git.io/vpn -O openvpn-install. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>找个地方记录，有备无患</p>
<pre><code class="language-shell">wget https://git.io/vpn -O openvpn-install.sh &amp;&amp; bash openvpn-install.sh</code></pre>
<p>转自https://github.com/Nyr/openvpn-install</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>在centos7上安装pritunl&#8211;基于OpenVPN协议构建的服务器</title>
		<link>https://blog.z6z8.cn/2020/02/22/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85pritunl-%e5%9f%ba%e4%ba%8eopenvpn%e5%8d%8f%e8%ae%ae%e6%9e%84%e5%bb%ba%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Fri, 21 Feb 2020 16:21:39 +0000</pubDate>
				<category><![CDATA[安全运维]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=799</guid>

					<description><![CDATA[我是为了解决访问github越来越不稳定问题。 详细参考https://github.com/pritunl/ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>我是为了解决访问github越来越不稳定问题。<br />
详细参考https://github.com/pritunl/pritunl</p>
<h1>安装</h1>
<h2>使用包管理器安装</h2>
<pre><code class="language-shell">#mongodb源
sudo tee /etc/yum.repos.d/mongodb-org-4.2.repo &lt;&lt; EOF
[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc
EOF
#pritunl源
sudo tee /etc/yum.repos.d/pritunl.repo &lt;&lt; EOF
[pritunl]
name=Pritunl Repository
baseurl=https://repo.pritunl.com/stable/yum/centos/7/
gpgcheck=1
enabled=1
EOF

#安装
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A &gt; key.tmp; sudo rpm --import key.tmp; rm -f key.tmp
sudo yum -y install pritunl mongodb-org

#启动父亲
sudo systemctl start mongod pritunl
sudo systemctl enable mongod pritunl</code></pre>
<h2>从源码安装</h2>
<p>如果已经安装了pip，建议先升级pip</p>
<pre><code class="language-shell">pip install --upgrade pip</code></pre>
<p>按照下面的命令一行行敲。</p>
<pre><code class="language-shell">
# 设置pritunl的版本，我用的是1.29.2276.91
export VERSION=X.XX.XX.XX 

#安装必要基础环境与编译器
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install git bzr python2 python-devel python-pip net-tools openvpn bridge-utils psmisc gcc-c++

#下载go语言组件
wget https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xf go1.12.1.linux-amd64.tar.gz
rm -f go1.12.1.linux-amd64.tar.gz
#将go写入环境变量
tee -a ~/.bashrc &lt;&lt; EOF
export GOPATH=\$HOME/go
export PATH=/usr/local/go/bin:\$PATH
EOF
source ~/.bashrc

#下载dns，web服务组件
go get -u github.com/pritunl/pritunl-dns
go get -u github.com/pritunl/pritunl-web
sudo ln -s ~/go/bin/pritunl-dns /usr/bin/pritunl-dns
sudo ln -s ~/go/bin/pritunl-web /usr/bin/pritunl-web

#下载源码并编译安装
wget https://github.com/pritunl/pritunl/archive/$VERSION.tar.gz
tar xf $VERSION.tar.gz
cd pritunl-$VERSION
python2 setup.py build
pip install -r requirements.txt
sudo python2 setup.py install

#以系统服务形式启动
sudo systemctl daemon-reload
sudo systemctl start mongod pritunl
sudo systemctl enable mongod pritunl</code></pre>
<h1>配置</h1>
<h2>增加打开文件的上限</h2>
<pre><code class="language-shell">#查看上限
sudo lsof -p &lt;code&gt;pgrep pritunl-web&lt;/code&gt; | wc -l`
#修改
sudo sh -c 'echo "* hard nofile 64000" &gt;&gt; /etc/security/limits.conf'
sudo sh -c 'echo "* soft nofile 64000" &gt;&gt; /etc/security/limits.conf'
sudo sh -c 'echo "root hard nofile 64000" &gt;&gt; /etc/security/limits.conf'
sudo sh -c 'echo "root soft nofile 64000" &gt;&gt; /etc/security/limits.conf'</code></pre>
<h2>修改web服务端口为943</h2>
<p>修改pritunl web服务的端口为943（其他没有被占用的端口都行）,并将943端口添加到防火墙白名单中</p>
<pre><code class="language-shell">#修改下面文件中的port字段
nano /etc/pritunl.conf

#添加到防火墙白名单中 943端口/tcp协议
firewall-cmd --permanent --add-port=943/tcp
#重启防火墙(修改配置后要重启防火墙)
firewall-cmd --reload</code></pre>
<h2>访问pritunl web服务</h2>
<p>需要填写mongdb的地址和setup key，其中mongdb的地址默认填写好的。setup key使用如下命令获取</p>
<pre><code class="language-shell">pritunl setup-key</code></pre>
<p>填好后，保存。</p>
<h2>pritunl web服务的默认用户和密码</h2>
<p>默认用户 pritunl<br />
默认密码 使用<code>sudo pritunl default-password</code>获取</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>翻译: 介绍pptp 、l2tp、sstp、openvpn</title>
		<link>https://blog.z6z8.cn/2020/01/08/%e7%bf%bb%e8%af%91-%e4%bb%8b%e7%bb%8dpptp-%e3%80%81l2tp%e3%80%81sstp%e3%80%81openvpn/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Wed, 08 Jan 2020 02:34:44 +0000</pubDate>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[安全运维]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=765</guid>

					<description><![CDATA[文章内容为谷歌翻译 源址http://www.earthvpn.com/faq-items/what-is-t [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>文章内容为谷歌翻译<br />
源址http://www.earthvpn.com/faq-items/what-is-the-difference-between-pptp-l2tp-sstp-and-openvpn/</p>
<h2>PPTP</h2>
<p>点对点隧道协议（PPTP）是Microsoft的一项发明，用于在拨号网络上创建VPN，因此多年来一直是内部业务VPN的标准协议。 它仅是一个VPN协议，并依靠各种身份验证方法来提供安全性。 它几乎在所有支持VPN的平台和设备上均作为标准配置提供，因此无需安装其他软件即可轻松设置，对于企业和个人使用而言，它仍然是一种流行的选择。 它还具有实现所需的低计算开销的优点。</p>
<p>EarthVPN通过MPPE 128位密码（带有或不带有压缩功能以及MS-CHAPv2身份验证）实施PPTP加密。</p>
<h2>L2TP / IPSec</h2>
<p>第2层隧道协议（L2TP）是通过Cisco和Microsoft之间的合作关系而产生的，其目的是提供更安全的VPN协议。 与PPTP相比，L2TP被认为是一种更安全的选择，因为结合使用了拥有更多安全加密算法的IPSec协议。 它还需要预共享的证书或密钥。</p>
<p>EarthVPN通过具有AES加密算法的标准化IPSec协议实现L2TP加密。 256位密钥将用于加密。</p>
<h2>SSTP</h2>
<p>安全套接字隧道协议（SSTP）在大多数VPN连接将被阻塞的情况下起作用。 其中包括禁止使用VPN技术的国家和某些阻止VPN连接的公司。 它使用TCP端口443，与安全套接字层（SSL）传输使用的端口相同。 这与特殊方法结合以形成数据包，以允许SSTP传输通过大多数代理和防火墙。 它被认为是VPN隧道协议中最安全的，因为它使用SSL，身份验证证书和2048位加密。</p>
<p>SSTP的主要缺点是它仅由Microsoft创建，仅在Windows Vista SP 1和Windows 7/8上运行。 由于它是专有软件，因此尚无计划将其正式提供给Mac OS，Linux和较旧版本的Windows用户。</p>
<p>如果您无法使用PPTP或L2TP协议进行连接，并且可以浏览https网站，则SSTP最有可能为您工作。</p>
<h2>OpenVPN</h2>
<p>OpenVPN是一种相当新的开源技术，它使用OpenSSL库和SSLv3 / TLSv1协议以及其他技术来提供强大而可靠的VPN解决方案。 它的主要优点之一是高度可配置，尽管它在UDP端口上运行最好，但可以将其设置为在任何端口上运行，包括TCP端口443。这使得它的流量无法区分，除了使用SSL上的标准HTTP，因此很难阻止。</p>
<p>EarthVPN实施具有AES密码，128位和256位（可选）加密的OpenVPN协议，哈希算法为160位SHA1，控制通道为TLSv1 / SSLv3 DHE-RSA-AES256-SHA和2048位RSA。</p>
<p>EarthVPN在TCP端口80（http），443（https），992、1194、8888和UDP端口53（dns），80、992、1194和8888上提供OpenVPN / SSL VPN协议。</p>
<p>如果无法使用PPTP或L2TP协议进行连接，则可以尝试使用具有不同tcp和udp端口的OpenVPN进行连接。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
