literate-dotfiles/docs/router.html
2021-10-25 14:37:10 +02:00

148 lines
4.6 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Open-WRT Router (Netgear R7000)</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content" class="content">
<h1 class="title">Open-WRT Router (Netgear R7000)</h1>
<div id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#org94a53fe">Installation</a>
<ul>
<li><a href="#org160d543">Freebox - Bridge mode</a></li>
<li><a href="#org99fb9c5">Enable SSL</a></li>
<li><a href="#org68a11a8">Install useful packages</a></li>
</ul>
</li>
<li><a href="#orgf6a31ea">Update</a></li>
<li><a href="#orgf2ed597">Configuration</a></li>
</ul>
</div>
</div>
<div id="outline-container-org94a53fe" class="outline-2">
<h2 id="org94a53fe">Installation</h2>
<div class="outline-text-2" id="text-org94a53fe">
</div>
<div id="outline-container-org160d543" class="outline-3">
<h3 id="org160d543">Freebox - Bridge mode</h3>
<div class="outline-text-3" id="text-org160d543">
<p>
<a href="https://blog.kulakowski.fr/post/openwrt-derriere-une-freebox-ipv6-dmz-et-bridge">https://blog.kulakowski.fr/post/openwrt-derriere-une-freebox-ipv6-dmz-et-bridge</a>
</p>
</div>
</div>
<div id="outline-container-org99fb9c5" class="outline-3">
<h3 id="org99fb9c5">Enable SSL</h3>
<div class="outline-text-3" id="text-org99fb9c5">
<p>
How can I enable SSL for the web admin gui?
In an SSH-command line, run opkg update, then install the package opkg install luci-ssl, then restart the router. Then you can access <a href="https://192.168.1.1">https://192.168.1.1</a> or <a href="https://openwrt">https://openwrt</a> with your favorite web browser
</p>
</div>
</div>
<div id="outline-container-org68a11a8" class="outline-3">
<h3 id="org68a11a8">Install useful packages</h3>
<div class="outline-text-3" id="text-org68a11a8">
<div class="org-src-container">
<pre class="src src-bash">opkg update &amp;&amp; opkg install luci-ssl-openssl luci-theme-material ipset <span class="org-type">curl</span> diffutils speedtest-netperf kmod-ipt-nat6
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgf6a31ea" class="outline-2">
<h2 id="orgf6a31ea">Update</h2>
<div class="outline-text-2" id="text-orgf6a31ea">
<div class="org-src-container">
<pre class="src src-bash">opkg list-upgradable | cut -f <span class="org-highlight-numbers-number">1</span> -d <span class="org-string">' '</span> | xargs -r opkg upgrade
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf2ed597" class="outline-2">
<h2 id="orgf2ed597">Configuration</h2>
<div class="outline-text-2" id="text-orgf2ed597">
<p>
<a href="https://openwrt.org/docs/guide-user/base-system/uci#common_principles">https://openwrt.org/docs/guide-user/base-system/uci#common_principles</a>
</p>
<p>
Configuration files are in <code>/etc/config</code>.
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left"><b>File</b></th>
<th scope="col" class="org-left"><b>Description</b></th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>/etc/config/dhcp</code></td>
<td class="org-left">Dnsmasq and odhcpd settings: DNS, DHCP, DHCPv6</td>
</tr>
<tr>
<td class="org-left"><code>/etc/config/dropbear</code></td>
<td class="org-left">SSH server options</td>
</tr>
<tr>
<td class="org-left"><code>/etc/config/firewall</code></td>
<td class="org-left">NAT, packet filter, port forwarding, etc.</td>
</tr>
<tr>
<td class="org-left"><code>/etc/config/network</code></td>
<td class="org-left">Switch, interface and route configuration:</td>
</tr>
<tr>
<td class="org-left"><code>/etc/config/system</code></td>
<td class="org-left">Misc. system settings, NTP, RNG, Watchcat</td>
</tr>
<tr>
<td class="org-left"><code>/etc/config/wireless</code></td>
<td class="org-left">Wireless settings and wifi network definition</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-10-25 lun. 14:33</p>
</div>
</body>
</html>