fix typo
This commit is contained in:
@@ -415,6 +415,14 @@ TCP window size: 85.0 KByte (default)
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -435,14 +443,6 @@ TCP window size: 85.0 KByte (default)
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -453,11 +453,11 @@ TCP window size: 85.0 KByte (default)
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
424
public/post/another-way-to-keep-ansible-log/index.html
Normal file
424
public/post/another-way-to-keep-ansible-log/index.html
Normal file
@@ -0,0 +1,424 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="tw">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="Eric Chang">
|
||||
<meta name="description" content="What’s the Worst That Could Happen?">
|
||||
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
|
||||
<meta name="generator" content="Hugo 0.50" />
|
||||
<title> [筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command | MCの飄狂山莊㊣</title>
|
||||
<meta name="description" content="[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command - What’s the Worst That Could Happen?">
|
||||
<meta itemprop="name" content="[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command">
|
||||
<meta itemprop="description" content="[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command - What’s the Worst That Could Happen?">
|
||||
<meta property="og:title" content="[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command">
|
||||
<meta property="og:description" content="[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command - What’s the Worst That Could Happen?">
|
||||
<meta property="og:image" content="https://h.cowbay.org/images/post-default-10.jpg">
|
||||
<meta property="og:url" content="https://h.cowbay.org/post/another-way-to-keep-ansible-log/">
|
||||
<meta property="og:site_name" content="MCの飄狂山莊㊣">
|
||||
<meta property="og:type" content="article">
|
||||
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
|
||||
|
||||
</head>
|
||||
<body class="bilberry-hugo-theme">
|
||||
|
||||
<nav class="permanentTopNav">
|
||||
|
||||
<div class="container">
|
||||
<ul class="topnav">
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div id="search-box" class="search">
|
||||
<i class="fa fa-search"></i>
|
||||
<input id="search" type="text" placeholder="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<a href="/" class="logo">
|
||||
|
||||
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
|
||||
|
||||
|
||||
<span class="overlay"><i class="fa fa-home"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="titles">
|
||||
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
|
||||
|
||||
<span class="subtitle">What’s the Worst That Could Happen?</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="toggler permanentTopNav">
|
||||
|
||||
<i class="fa fa-bars" aria-hidden="true"></i>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
<div class="main container">
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf single">
|
||||
|
||||
<a class="bubble" href="/post/another-way-to-keep-ansible-log/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/another-way-to-keep-ansible-log/">
|
||||
<img src="/images/post-default-10.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-08-05</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/ansible">ansible</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>之前為了能夠在執行完 ansible playbook 後,能有個log 可以看</p>
|
||||
|
||||
<p>所以在每次執行的時候,都要加入 tee 的指令</p>
|
||||
|
||||
<p>像是</p>
|
||||
|
||||
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
|
||||
</code></pre>
|
||||
|
||||
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
|
||||
|
||||
<p>反正也沒有人關心結果怎樣 (攤手</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
<p>後來發現有個指令叫 script 可以完整紀錄指令執行期間的console 畫面變化(包含了ansi color!)</p>
|
||||
|
||||
<p>剛剛測試了一下,發現的確是可以用,不過也沒感覺有特別好用的地方,就只是做個紀錄吧,說不定以後其他地方可以用得到</p>
|
||||
|
||||
<pre><code>sciprt -c 'make EXTRA_ARGS="-i inventory/production --limit hqpc074" user_client' -f hqpc074.out'
|
||||
</code></pre>
|
||||
|
||||
<p>結果長這樣
|
||||
<img src="https://i.imgur.com/F9KFAWV.png" alt="" /></p>
|
||||
|
||||
<p>就真的跟console 的畫面一樣</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/ansible">ansible</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="application/javascript">
|
||||
var disqus_config = function () {
|
||||
|
||||
|
||||
|
||||
};
|
||||
(function() {
|
||||
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
|
||||
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
|
||||
return;
|
||||
}
|
||||
var d = document, s = d.createElement('script'); s.async = true;
|
||||
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="recent-posts">
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&管理的好用系統 Meshcentral / Remote Management & control system Meshcentral</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="categories">
|
||||
<a href="/categories/"><strong></strong></a>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/linux">Linux (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/proxmox">Proxmox (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ps">Ps (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
|
||||
<div class="external-profiles">
|
||||
<strong></strong>
|
||||
|
||||
|
||||
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
|
||||
|
||||
|
||||
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
|
||||
|
||||
|
||||
|
||||
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<div class="credits">
|
||||
<div class="container">
|
||||
<div class="copyright">
|
||||
<a href="https://github.com/Lednerb" target="_blank">
|
||||
©
|
||||
|
||||
2017
|
||||
|
||||
by Lednerb
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="author">
|
||||
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="application/javascript">
|
||||
var doNotTrack = false;
|
||||
if (!doNotTrack) {
|
||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||
ga('create', 'UA-138954876-1', 'auto');
|
||||
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
</script>
|
||||
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR+EOJB6uKUez/iGAnFcg=="></script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
|
||||
|
||||
<script>
|
||||
$(".moment").each(function() {
|
||||
$(this).text(
|
||||
moment( $(this).text() )
|
||||
.locale( "tw" )
|
||||
.format('LL')
|
||||
);
|
||||
});
|
||||
|
||||
$(".footnote-return sup").html("");
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
|
||||
var index = client.initIndex("h_cowbay_org");
|
||||
|
||||
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
|
||||
[
|
||||
{
|
||||
|
||||
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
|
||||
|
||||
displayKey: function(suggestion) {
|
||||
return suggestion.title || suggestion.author
|
||||
},
|
||||
templates: {
|
||||
suggestion: function(suggestion) {
|
||||
return "<span class='entry " + suggestion.type + "'>"
|
||||
+ "<span class='title'>" + suggestion.title + "</span>"
|
||||
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
|
||||
+ "</span>"
|
||||
;
|
||||
},
|
||||
empty: function() {
|
||||
return "<span class='empty'></span>"
|
||||
},
|
||||
footer: function() {
|
||||
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
])
|
||||
.on('autocomplete:selected', function(event, suggestion, dataset) {
|
||||
window.location = (suggestion.url);
|
||||
})
|
||||
.keypress(function (event, suggestion) {
|
||||
if (event.which == 13) {
|
||||
window.location = (suggestion.url);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -297,6 +297,14 @@ hwaddress: f4:4d:30:45:ef:aa', host: pc120', ipv4: 192.168.1.120', user: [wany']
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -317,14 +325,6 @@ hwaddress: f4:4d:30:45:ef:aa', host: pc120', ipv4: 192.168.1.120', user: [wany']
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -335,11 +335,11 @@ hwaddress: f4:4d:30:45:ef:aa', host: pc120', ipv4: 192.168.1.120', user: [wany']
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -218,6 +218,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -238,14 +246,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -256,11 +256,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -273,6 +273,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -293,14 +301,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -311,11 +311,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -329,6 +329,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -349,14 +357,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -367,11 +367,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -284,6 +284,14 @@ b8d74048eba1 mysql:5.7.21 "docker-entrypoint.s…&qu
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -304,14 +312,6 @@ b8d74048eba1 mysql:5.7.21 "docker-entrypoint.s…&qu
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -322,11 +322,11 @@ b8d74048eba1 mysql:5.7.21 "docker-entrypoint.s…&qu
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -258,6 +258,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -278,14 +286,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -296,11 +296,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -321,6 +321,14 @@ Tue May 21 17:39:48 CST 2019
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -341,14 +349,6 @@ Tue May 21 17:39:48 CST 2019
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -359,11 +359,11 @@ Tue May 21 17:39:48 CST 2019
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -392,6 +392,14 @@ openssl s_client -showcerts -connect mail.example.com:465
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -412,14 +420,6 @@ openssl s_client -showcerts -connect mail.example.com:465
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -430,11 +430,11 @@ openssl s_client -showcerts -connect mail.example.com:465
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -216,6 +216,14 @@ GRANT a TO b;
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -236,14 +244,6 @@ GRANT a TO b;
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -254,11 +254,11 @@ GRANT a TO b;
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -229,6 +229,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -249,14 +257,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -267,11 +267,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -302,6 +302,14 @@ admin@storage:~$
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -322,14 +330,6 @@ admin@storage:~$
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -340,11 +340,11 @@ admin@storage:~$
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -249,6 +249,14 @@ root@pve:~#
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -269,14 +277,6 @@ root@pve:~#
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -287,11 +287,11 @@ root@pve:~#
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -272,6 +272,14 @@ unused devices: <none>
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -292,14 +300,6 @@ unused devices: <none>
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -310,11 +310,11 @@ unused devices: <none>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -90,6 +90,183 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
|
||||
<img src="/images/post-default-5.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-08-06</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
|
||||
|
||||
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
|
||||
|
||||
<p>config 看起來不是很難 (只是看起來)</p>
|
||||
|
||||
<p>但是實際上已經找不到當初的文件</p>
|
||||
|
||||
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
|
||||
|
||||
<p>後來採購了兩台edgerouter X 做測試</p>
|
||||
|
||||
<p>也用openvpn 成功的建立了 site to site VPN</p>
|
||||
|
||||
<p>本來想說 openvpn 已經夠簡單了</p>
|
||||
|
||||
<p>今天看到文章說用wireguard 可以更簡單</p>
|
||||
|
||||
<p>於是研究了一下,發現還真的很簡單!</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/vpn">vpn</a>
|
||||
|
||||
<a href="/tags/edgerouter">edgerouter</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/another-way-to-keep-ansible-log/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/another-way-to-keep-ansible-log/">
|
||||
<img src="/images/post-default-10.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-08-05</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/ansible">ansible</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>之前為了能夠在執行完 ansible playbook 後,能有個log 可以看</p>
|
||||
|
||||
<p>所以在每次執行的時候,都要加入 tee 的指令</p>
|
||||
|
||||
<p>像是</p>
|
||||
|
||||
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
|
||||
</code></pre>
|
||||
|
||||
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
|
||||
|
||||
<p>反正也沒有人關心結果怎樣 (攤手</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/another-way-to-keep-ansible-log/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/ansible">ansible</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/send-mail-to-notify-after-pxe-install/">
|
||||
@@ -733,162 +910,6 @@
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/log-all-bash-commands/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/log-all-bash-commands/">
|
||||
<img src="/images/post-default-11.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-04-23</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
|
||||
|
||||
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
|
||||
|
||||
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
|
||||
|
||||
<p>所以翻了一下網路,至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/log-all-bash-commands/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/log">log</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/fix-zpool-device-busy-using-dmsetup/">
|
||||
<img src="/images/post-default-11.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-04-01</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>今天把其中一台proxmox 加上10G 光纖網卡,準備和另一台proxmox 組成10G 環境進行測試</p>
|
||||
|
||||
<p>想說把本機的zpool 拆掉,重新建立一個raid0 的空間來做clone/migrate</p>
|
||||
|
||||
<p>可是一直出現device busy的錯誤訊息</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/zfs">zfs</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
@@ -919,6 +940,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -939,14 +968,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -957,11 +978,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -5,11 +5,62 @@
|
||||
<link>https://h.cowbay.org/post/</link>
|
||||
<description>Recent content in Posts on MCの飄狂山莊㊣</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Wed, 31 Jul 2019 11:06:33 +0800</lastBuildDate>
|
||||
<lastBuildDate>Tue, 06 Aug 2019 17:14:17 +0800</lastBuildDate>
|
||||
|
||||
<atom:link href="https://h.cowbay.org/post/index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
|
||||
<item>
|
||||
<title>[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</title>
|
||||
<link>https://h.cowbay.org/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/</link>
|
||||
<pubDate>Tue, 06 Aug 2019 17:14:17 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/</guid>
|
||||
<description><p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
|
||||
|
||||
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
|
||||
|
||||
<p>config 看起來不是很難 (只是看起來)</p>
|
||||
|
||||
<p>但是實際上已經找不到當初的文件</p>
|
||||
|
||||
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
|
||||
|
||||
<p>後來採購了兩台edgerouter X 做測試</p>
|
||||
|
||||
<p>也用openvpn 成功的建立了 site to site VPN</p>
|
||||
|
||||
<p>本來想說 openvpn 已經夠簡單了</p>
|
||||
|
||||
<p>今天看到文章說用wireguard 可以更簡單</p>
|
||||
|
||||
<p>於是研究了一下,發現還真的很簡單!</p>
|
||||
|
||||
<p></p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</title>
|
||||
<link>https://h.cowbay.org/post/another-way-to-keep-ansible-log/</link>
|
||||
<pubDate>Mon, 05 Aug 2019 16:24:40 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/post/another-way-to-keep-ansible-log/</guid>
|
||||
<description><p>之前為了能夠在執行完 ansible playbook 後,能有個log 可以看</p>
|
||||
|
||||
<p>所以在每次執行的時候,都要加入 tee 的指令</p>
|
||||
|
||||
<p>像是</p>
|
||||
|
||||
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
|
||||
</code></pre>
|
||||
|
||||
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
|
||||
|
||||
<p>反正也沒有人關心結果怎樣 (攤手</p>
|
||||
|
||||
<p></p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</title>
|
||||
<link>https://h.cowbay.org/post/send-mail-to-notify-after-pxe-install/</link>
|
||||
|
||||
@@ -310,6 +310,14 @@ root@pve:~#
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -330,14 +338,6 @@ root@pve:~#
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -348,11 +348,11 @@ root@pve:~#
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -774,6 +774,14 @@ sudo apt install joe-jupp
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -794,14 +802,6 @@ sudo apt install joe-jupp
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -812,11 +812,11 @@ sudo apt install joe-jupp
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -234,6 +234,14 @@ GRUB_CMDLINE_LINUX="rootdelay=90"
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -254,14 +262,6 @@ GRUB_CMDLINE_LINUX="rootdelay=90"
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -272,11 +272,11 @@ GRUB_CMDLINE_LINUX="rootdelay=90"
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -320,6 +320,14 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -340,14 +348,6 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -358,11 +358,11 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -253,6 +253,14 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -273,14 +281,6 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -291,11 +291,11 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -251,6 +251,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -271,14 +279,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -289,11 +289,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -90,6 +90,162 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/log-all-bash-commands/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/log-all-bash-commands/">
|
||||
<img src="/images/post-default-11.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-04-23</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案</p>
|
||||
|
||||
<p>居然不知為何自己產生了,在我記憶中沒有去執行過那個指令</p>
|
||||
|
||||
<p>翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)</p>
|
||||
|
||||
<p>所以翻了一下網路,至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/log-all-bash-commands/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/log">log</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/fix-zpool-device-busy-using-dmsetup/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/fix-zpool-device-busy-using-dmsetup/">
|
||||
<img src="/images/post-default-11.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-04-01</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>今天把其中一台proxmox 加上10G 光纖網卡,準備和另一台proxmox 組成10G 環境進行測試</p>
|
||||
|
||||
<p>想說把本機的zpool 拆掉,重新建立一個raid0 的空間來做clone/migrate</p>
|
||||
|
||||
<p>可是一直出現device busy的錯誤訊息</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/fix-zpool-device-busy-using-dmsetup/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/zfs">zfs</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/transfer-cent62-using-rsync/">
|
||||
@@ -692,190 +848,6 @@
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/synology-ds415-repair-cost/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/synology-ds415-repair-cost/">
|
||||
<img src="/images/post-default-11.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415+ 誇張的維修費用</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2018-12-04</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
|
||||
|
||||
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
|
||||
|
||||
<p>但是已經無法登入系統</p>
|
||||
|
||||
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
|
||||
|
||||
<p>底下的電源藍燈不斷的在閃爍</p>
|
||||
|
||||
<p>雖然我一再表示不希望送修了</p>
|
||||
|
||||
<p>一來是已經過保,二來是DS415+ 本身就有intel bug,三來是因為對synology的NAS 實在沒有愛…</p>
|
||||
|
||||
<p>不過主管還是希望能夠先問群暉維修的費用多少</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/synology-ds415-repair-cost/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/nas">NAS</a>
|
||||
|
||||
<a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
|
||||
|
||||
<a href="/tags/synology">synology</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
|
||||
<img src="/images/post-default-03.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox & Mellanox SFP 網卡土炮 10G LAB </a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2018-11-30</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
|
||||
|
||||
<p>只是礙於10G RJ45的卡太貴了,然後光纖的種類又太複雜</p>
|
||||
|
||||
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
|
||||
|
||||
<p>所以一直沒有付諸行動。</p>
|
||||
|
||||
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡,以在台灣的價格來說,算很便宜的 (550)</p>
|
||||
|
||||
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
|
||||
|
||||
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
|
||||
|
||||
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
|
||||
|
||||
<p>今天就花了點時間測試一下</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/10g">10G</a>
|
||||
|
||||
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
<a href="/tags/mellanox">mellanox</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
@@ -908,6 +880,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -928,14 +908,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -946,11 +918,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -90,6 +90,190 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/synology-ds415-repair-cost/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/synology-ds415-repair-cost/">
|
||||
<img src="/images/post-default-11.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415+ 誇張的維修費用</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2018-12-04</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
|
||||
|
||||
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
|
||||
|
||||
<p>但是已經無法登入系統</p>
|
||||
|
||||
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
|
||||
|
||||
<p>底下的電源藍燈不斷的在閃爍</p>
|
||||
|
||||
<p>雖然我一再表示不希望送修了</p>
|
||||
|
||||
<p>一來是已經過保,二來是DS415+ 本身就有intel bug,三來是因為對synology的NAS 實在沒有愛…</p>
|
||||
|
||||
<p>不過主管還是希望能夠先問群暉維修的費用多少</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/synology-ds415-repair-cost/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/nas">NAS</a>
|
||||
|
||||
<a href="/tags/%E7%BE%A4%E6%9A%89">群暉</a>
|
||||
|
||||
<a href="/tags/synology">synology</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
|
||||
<img src="/images/post-default-03.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox & Mellanox SFP 網卡土炮 10G LAB </a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2018-11-30</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
|
||||
|
||||
<p>只是礙於10G RJ45的卡太貴了,然後光纖的種類又太複雜</p>
|
||||
|
||||
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
|
||||
|
||||
<p>所以一直沒有付諸行動。</p>
|
||||
|
||||
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡,以在台灣的價格來說,算很便宜的 (550)</p>
|
||||
|
||||
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
|
||||
|
||||
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
|
||||
|
||||
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
|
||||
|
||||
<p>今天就花了點時間測試一下</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/10g">10G</a>
|
||||
|
||||
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
<a href="/tags/mellanox">mellanox</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/ansible-selectattr-filter/">
|
||||
@@ -820,6 +1004,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -840,14 +1032,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -858,11 +1042,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -314,6 +314,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -334,14 +342,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -352,11 +352,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -202,7 +202,7 @@ echo "#!/bin/sh -e\nexit 0" > /etc/rc.local
|
||||
|
||||
<p>因為我只需要它跑一次就好,所以就可以在最後面加入還原剛剛複製的備份檔案</p>
|
||||
|
||||
<p>簡單說就是這樣</p>
|
||||
<p>簡單說在preseed 檔案中 改成這樣</p>
|
||||
|
||||
<pre><code>d-i preseed/late_command \
|
||||
in-target apt-file update; \
|
||||
@@ -281,6 +281,14 @@ echo "#!/bin/sh -e\nexit 0" > /etc/rc.local
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -301,14 +309,6 @@ echo "#!/bin/sh -e\nexit 0" > /etc/rc.local
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -319,11 +319,11 @@ echo "#!/bin/sh -e\nexit 0" > /etc/rc.local
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -0,0 +1,619 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="tw">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="Eric Chang">
|
||||
<meta name="description" content="What’s the Worst That Could Happen?">
|
||||
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
|
||||
<meta name="generator" content="Hugo 0.50" />
|
||||
<title> [筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters | MCの飄狂山莊㊣</title>
|
||||
<meta name="description" content="[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters - What’s the Worst That Could Happen?">
|
||||
<meta itemprop="name" content="[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters">
|
||||
<meta itemprop="description" content="[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters - What’s the Worst That Could Happen?">
|
||||
<meta property="og:title" content="[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters">
|
||||
<meta property="og:description" content="[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters - What’s the Worst That Could Happen?">
|
||||
<meta property="og:image" content="https://h.cowbay.org/images/post-default-5.jpg">
|
||||
<meta property="og:url" content="https://h.cowbay.org/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
|
||||
<meta property="og:site_name" content="MCの飄狂山莊㊣">
|
||||
<meta property="og:type" content="article">
|
||||
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
|
||||
|
||||
</head>
|
||||
<body class="bilberry-hugo-theme">
|
||||
|
||||
<nav class="permanentTopNav">
|
||||
|
||||
<div class="container">
|
||||
<ul class="topnav">
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div id="search-box" class="search">
|
||||
<i class="fa fa-search"></i>
|
||||
<input id="search" type="text" placeholder="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<a href="/" class="logo">
|
||||
|
||||
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
|
||||
|
||||
|
||||
<span class="overlay"><i class="fa fa-home"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="titles">
|
||||
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
|
||||
|
||||
<span class="subtitle">What’s the Worst That Could Happen?</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="toggler permanentTopNav">
|
||||
|
||||
<i class="fa fa-bars" aria-hidden="true"></i>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
<div class="main container">
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf single">
|
||||
|
||||
<a class="bubble" href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">
|
||||
<img src="/images/post-default-5.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-08-06</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt</p>
|
||||
|
||||
<p>然後用strongswan 來打 IPSEC site to site VPN</p>
|
||||
|
||||
<p>config 看起來不是很難 (只是看起來)</p>
|
||||
|
||||
<p>但是實際上已經找不到當初的文件</p>
|
||||
|
||||
<p>所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)</p>
|
||||
|
||||
<p>後來採購了兩台edgerouter X 做測試</p>
|
||||
|
||||
<p>也用openvpn 成功的建立了 site to site VPN</p>
|
||||
|
||||
<p>本來想說 openvpn 已經夠簡單了</p>
|
||||
|
||||
<p>今天看到文章說用wireguard 可以更簡單</p>
|
||||
|
||||
<p>於是研究了一下,發現還真的很簡單!</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
<h3 id="download-deb-for-your-edgerouter">download deb for your edgerouter</h3>
|
||||
|
||||
<h4 id="go-check-https-github-com-lochnair-vyatta-wireguard-first">go check <a href="https://github.com/Lochnair/vyatta-wireguard">https://github.com/Lochnair/vyatta-wireguard</a> first</h4>
|
||||
|
||||
<pre><code>curl -L -O https://github.com/Lochnair/vyatta-wireguard/releases/download/0.0.20190702-1/wireguard-v2.0-e50-0.0.20190702-1.deb
|
||||
dpkg -i wireguard-v2.0-e50-0.0.20190702-1.deb
|
||||
</code></pre>
|
||||
|
||||
<p>process log</p>
|
||||
|
||||
<pre><code>root@ubnt112:~# dpkg -i wireguard-v2.0-e50-0.0.20190702-1.deb
|
||||
Selecting previously unselected package wireguard.
|
||||
(Reading database ... 37024 files and directories currently installed.)
|
||||
Preparing to unpack wireguard-v2.0-e50-0.0.20190702-1.deb ...
|
||||
Adding 'diversion of /opt/vyatta/share/perl5/Vyatta/Interface.pm to /opt/vyatta/share/perl5/Vyatta/Interface.pm.vyatta by wireguard'
|
||||
Adding 'diversion of /opt/vyatta/share/vyatta-cfg/templates/firewall/options/mss-clamp/interface-type/node.def to /opt/vyatta/share/vyatta-cfg/templates/firewall/options/mss-clamp/interface-type/node.def.vyatta by wireguard'
|
||||
Unpacking wireguard (0.0.20190702-1) ...
|
||||
Setting up wireguard (0.0.20190702-1) ...
|
||||
</code></pre>
|
||||
|
||||
<h4 id="generate-private-public-key-in-left-router">generate private/public key in left router</h4>
|
||||
|
||||
<pre><code>wg genkey | tee /dev/tty | wg pubkey
|
||||
</code></pre>
|
||||
|
||||
<p>first one in private key and the next one is public key of this router</p>
|
||||
|
||||
<pre><code>QGAUHJSDFAdkfjskdjo1DP8H1NuLTrXH6kue6kphaQk/iAkc=
|
||||
ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU=
|
||||
</code></pre>
|
||||
|
||||
<h4 id="configure-left-site-edgerouter">configure left site edgerouter</h4>
|
||||
|
||||
<pre><code>configure
|
||||
set interfaces wireguard wg0 address 192.168.99.1/24
|
||||
set interfaces wireguard wg0 listen-port 51820
|
||||
set interfaces wireguard wg0 route-allowed-ips true
|
||||
### paster your private key which was just been generate
|
||||
set interfaces wireguard wg0 private-key QGAUHJSDFAdkfjskdjo1DP8H1NuLTrXH6kue6kphaQk/iAkc=
|
||||
</code></pre>
|
||||
|
||||
<h4 id="generate-private-public-key-in-right-router">generate private/public key in right router</h4>
|
||||
|
||||
<pre><code>wg genkey | tee /dev/tty | wg pubkey
|
||||
</code></pre>
|
||||
|
||||
<p>first one in private key and the next one is public key of this router</p>
|
||||
|
||||
<pre><code>UBzmPabcdefghijklmnopqrlbi5tnsQqjoJ4+H4=
|
||||
tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk=
|
||||
</code></pre>
|
||||
|
||||
<h4 id="configure-right-site-edgerouter">configure right site edgerouter</h4>
|
||||
|
||||
<pre><code>configure
|
||||
set interfaces wireguard wg0 address 192.168.99.2/24
|
||||
set interfaces wireguard wg0 listen-port 51820
|
||||
set interfaces wireguard wg0 route-allowed-ips true
|
||||
### paster your private key which was just been generate
|
||||
set interfaces wireguard wg0 private-key UBzmPabcdefghijklmnopqrlbi5tnsQqjoJ4+H4=
|
||||
</code></pre>
|
||||
|
||||
<p>now , configure both router to talk to each other</p>
|
||||
|
||||
<h4 id="configure-in-left-router">configure in left router</h4>
|
||||
|
||||
<pre><code>### use the right router public key here
|
||||
set interfaces wireguard wg0 peer tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk= allowed-ips 192.168.99.0/16
|
||||
set interfaces wireguard wg0 peer tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk= endpoint 222.222.222.222:51820
|
||||
set interfaces wireguard wg0 peer tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk= persistent-keepalive 15
|
||||
</code></pre>
|
||||
|
||||
<h4 id="configre-in-right-router">configre in right router</h4>
|
||||
|
||||
<pre><code>### use the left router public key here
|
||||
set interfaces wireguard wg0 peer ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU= allowed-ips 192.168.99.0/16
|
||||
set interfaces wireguard wg0 peer ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU= endpoint 111.111.111.111:51280
|
||||
set interfaces wireguard wg0 peer ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU= persistent-keepalive 15
|
||||
</code></pre>
|
||||
|
||||
<h4 id="configure-firewall-policy-in-left-site-router">configure firewall policy in left site router</h4>
|
||||
|
||||
<pre><code>### change 40 to your own rule number
|
||||
set firewall name WAN_LOCAL rule 40 source port 51820
|
||||
set firewall name WAN_LOCAL rule 40 destination port 51820
|
||||
</code></pre>
|
||||
|
||||
<h4 id="configure-firewall-policy-in-right-site-router">configure firewall policy in right site router</h4>
|
||||
|
||||
<pre><code>### change 40 to your own rule number
|
||||
set firewall name WAN_LOCAL rule 40 source port 51820
|
||||
set firewall name WAN_LOCAL rule 40 destination port 51820
|
||||
</code></pre>
|
||||
|
||||
<p>then finally , commit these changes on both side router</p>
|
||||
|
||||
<pre><code>commit
|
||||
### and save if you want
|
||||
save
|
||||
</code></pre>
|
||||
|
||||
<h4 id="oops-one-more-step-add-static-route">oops , one more step , add static route</h4>
|
||||
|
||||
<h5 id="manually-add-static-route-in-left-router">manually add static route in left router</h5>
|
||||
|
||||
<pre><code>ip route add 192.168.111.0/24 dev wg0
|
||||
</code></pre>
|
||||
|
||||
<h5 id="manually-add-static-route-in-right-router">manually add static route in right router</h5>
|
||||
|
||||
<pre><code>ip route add 192.168.112.0/24 dev wg0
|
||||
</code></pre>
|
||||
|
||||
<h4 id="check-wireguard-status-in-both-router">check wireguard status in both router</h4>
|
||||
|
||||
<h5 id="left">left</h5>
|
||||
|
||||
<pre><code> root@ubnt112:~# sudo wg
|
||||
interface: wg0
|
||||
public key: ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU=
|
||||
private key: (hidden)
|
||||
listening port: 51820
|
||||
|
||||
peer: tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk=
|
||||
endpoint: 111.111.111.111:51820
|
||||
allowed ips: 192.168.99.0/16
|
||||
latest handshake: 1 minute, 19 seconds ago
|
||||
transfer: 7.49 MiB received, 195.86 MiB sent
|
||||
persistent keepalive: every 15 seconds
|
||||
root@ubnt112:~#
|
||||
</code></pre>
|
||||
|
||||
<h5 id="right">right</h5>
|
||||
|
||||
<pre><code>interface: wg0
|
||||
public key: tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk=
|
||||
private key: (hidden)
|
||||
listening port: 51820
|
||||
|
||||
peer: ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU=
|
||||
endpoint: 222.222.222.222:51820
|
||||
allowed ips: 192.168.99.0/16
|
||||
latest handshake: 1 minute, 48 seconds ago
|
||||
transfer: 195.60 MiB received, 8.07 MiB sent
|
||||
persistent keepalive: every 15 seconds
|
||||
root@ubnt111:~#
|
||||
</code></pre>
|
||||
|
||||
<h3 id="need-more-edgerouter-and-lease-line-to-try-multiple-site-to-site-vpn-using-wideguard">need more edgerouter and lease line to try multiple site to site VPN using wideguard</h3>
|
||||
|
||||
<h5 id="need-to-study-about-allowed-ips">need to study about allowed-ips</h5>
|
||||
|
||||
<h3 id="sort-out-scripts">sort out scripts</h3>
|
||||
|
||||
<h5 id="left-router">left router</h5>
|
||||
|
||||
<pre><code>wg genkey | tee /dev/tty | wg pubkey
|
||||
QGAUHJSDFAdkfjskdjo1DP8H1NuLTrXH6kue6kphaQk/iAkc=
|
||||
ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU=
|
||||
configure
|
||||
set interfaces wireguard wg0 address 192.168.99.1/24
|
||||
set interfaces wireguard wg0 listen-port 51820
|
||||
set interfaces wireguard wg0 route-allowed-ips true
|
||||
set interfaces wireguard wg0 private-key QGAUHJSDFAdkfjskdjo1DP8H1NuLTrXH6kue6kphaQk/iAkc=
|
||||
set interfaces wireguard wg0 peer tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk= allowed-ips 192.168.99.0/16
|
||||
set interfaces wireguard wg0 peer tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk= endpoint 222.222.222.222:51820
|
||||
set interfaces wireguard wg0 peer tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk= persistent-keepalive 15
|
||||
set firewall name WAN_LOCAL rule 40 action accept
|
||||
set firewall name WAN_LOCAL rule 40 protocol udp
|
||||
set firewall name WAN_LOCAL rule 40 source port 51820
|
||||
set firewall name WAN_LOCAL rule 40 destination port 51820
|
||||
commit
|
||||
save
|
||||
ip route add 192.168.111.0/24 dev wg0
|
||||
</code></pre>
|
||||
|
||||
<h5 id="right-router">right router</h5>
|
||||
|
||||
<pre><code>wg genkey | tee /dev/tty | wg pubkey
|
||||
UBzmPabcdefghijklmnopqrlbi5tnsQqjoJ4+H4=
|
||||
tmlrPSabcdefghijklmnopqrIb1Enzf+108yotkhdRmk=
|
||||
configure
|
||||
set interfaces wireguard wg0 address 192.168.99.2/24
|
||||
set interfaces wireguard wg0 listen-port 51820
|
||||
set interfaces wireguard wg0 route-allowed-ips true
|
||||
set interfaces wireguard wg0 private-key UBzmPabcdefghijklmnopqrlbi5tnsQqjoJ4+H4=
|
||||
set interfaces wireguard wg0 peer ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU= allowed-ips 192.168.99.0/16
|
||||
set interfaces wireguard wg0 peer ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU= endpoint 111.111.111.111:51280
|
||||
set interfaces wireguard wg0 peer ta+GJCWNUHJSDFAdkfjskdjnkppY5FpsIs3a8dc4oArtV8FU= persistent-keepalive 15
|
||||
set firewall name WAN_LOCAL rule 40 action accept
|
||||
set firewall name WAN_LOCAL rule 40 protocol udp
|
||||
set firewall name WAN_LOCAL rule 40 source port 51820
|
||||
set firewall name WAN_LOCAL rule 40 destination port 51820
|
||||
commit
|
||||
save
|
||||
ip route add 192.168.112.0/24 dev wg0
|
||||
</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/vpn">vpn</a>
|
||||
|
||||
<a href="/tags/edgerouter">edgerouter</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="application/javascript">
|
||||
var disqus_config = function () {
|
||||
|
||||
|
||||
|
||||
};
|
||||
(function() {
|
||||
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
|
||||
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
|
||||
return;
|
||||
}
|
||||
var d = document, s = d.createElement('script'); s.async = true;
|
||||
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="recent-posts">
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/remote-management-system-meshcentral/">linux底下遠端遙控&管理的好用系統 Meshcentral / Remote Management & control system Meshcentral</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="categories">
|
||||
<a href="/categories/"><strong></strong></a>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/linux">Linux (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/proxmox">Proxmox (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ps">Ps (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
|
||||
<div class="external-profiles">
|
||||
<strong></strong>
|
||||
|
||||
|
||||
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
|
||||
|
||||
|
||||
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
|
||||
|
||||
|
||||
|
||||
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<div class="credits">
|
||||
<div class="container">
|
||||
<div class="copyright">
|
||||
<a href="https://github.com/Lednerb" target="_blank">
|
||||
©
|
||||
|
||||
2017
|
||||
|
||||
by Lednerb
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="author">
|
||||
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="application/javascript">
|
||||
var doNotTrack = false;
|
||||
if (!doNotTrack) {
|
||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||
ga('create', 'UA-138954876-1', 'auto');
|
||||
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
</script>
|
||||
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR+EOJB6uKUez/iGAnFcg=="></script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
|
||||
|
||||
<script>
|
||||
$(".moment").each(function() {
|
||||
$(this).text(
|
||||
moment( $(this).text() )
|
||||
.locale( "tw" )
|
||||
.format('LL')
|
||||
);
|
||||
});
|
||||
|
||||
$(".footnote-return sup").html("");
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
|
||||
var index = client.initIndex("h_cowbay_org");
|
||||
|
||||
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
|
||||
[
|
||||
{
|
||||
|
||||
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
|
||||
|
||||
displayKey: function(suggestion) {
|
||||
return suggestion.title || suggestion.author
|
||||
},
|
||||
templates: {
|
||||
suggestion: function(suggestion) {
|
||||
return "<span class='entry " + suggestion.type + "'>"
|
||||
+ "<span class='title'>" + suggestion.title + "</span>"
|
||||
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
|
||||
+ "</span>"
|
||||
;
|
||||
},
|
||||
empty: function() {
|
||||
return "<span class='empty'></span>"
|
||||
},
|
||||
footer: function() {
|
||||
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
])
|
||||
.on('autocomplete:selected', function(event, suggestion, dataset) {
|
||||
window.location = (suggestion.url);
|
||||
})
|
||||
.keypress(function (event, suggestion) {
|
||||
if (event.which == 13) {
|
||||
window.location = (suggestion.url);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -214,6 +214,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -234,14 +242,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -252,11 +252,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -264,6 +264,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -284,14 +292,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -302,11 +302,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -579,6 +579,14 @@ df -h
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -599,14 +607,6 @@ df -h
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -617,11 +617,11 @@ df -h
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -263,6 +263,14 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -283,14 +291,6 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -301,11 +301,11 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -326,6 +326,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -346,14 +354,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -364,11 +364,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -295,6 +295,14 @@ acl CONNECT method CONNECT
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -315,14 +323,6 @@ acl CONNECT method CONNECT
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -333,11 +333,11 @@ acl CONNECT method CONNECT
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user