diff options
author | Silvino Silva <silvino@bk.ru> | 2016-09-28 00:07:13 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-09-28 00:11:14 +0100 |
commit | 57fbc5160c9a48b288974e0bc09ea72df949a1b3 (patch) | |
tree | 6762980fec3c184d92edcae798965ddc68eb0ddb /core/network.html | |
parent | d859a055c1a9165274efb8c726575e2521221303 (diff) | |
download | doc-57fbc5160c9a48b288974e0bc09ea72df949a1b3.tar.gz |
new core network configuration
Diffstat (limited to 'core/network.html')
-rw-r--r-- | core/network.html | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/core/network.html b/core/network.html index 04f1266..9f2477e 100644 --- a/core/network.html +++ b/core/network.html @@ -27,7 +27,41 @@ one of above described scripts then proceed to upgrade your system.</p> - <h2 id="iptables">2.1.1. Iptables</h2> + <h2 id="resolv">2.1.1. Resolver</h2> + + <p>Configure your resolver with a server that don't censorship there for + respect your freedom and privacy. Read + <a href="https://trac.torproject.org/projects/tor/wiki/doc/DnsResolver/PublicDnsResolvers#PublicDNSServers">Tor Dns Resolver</a> + for more information. This example will use + <a href="http://www.chaoscomputerclub.de/en/censorship/dns-howto">Chaos Computer Club</a> + server, edit /etc/resolv.conf and make it immutable;</p> + + <pre> + # /etc/resolv.conf.head can replace this line + nameserver 213.73.91.35 + # /etc/resolv.conf.tail can replace this line + </pre> + + <pre> + # chattr +i /etc/resolv.conf + </pre> + + <h2 id="static">2.1.2. Static IP</h2> + + <pre> + # ip link + # ip addr flush dev ${DEV} + # ip route flush dev ${DEV} + </pre> + + <pre> + # ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast + + # ip link set ${DEV} up + # ip route add default via ${GW} + </pre> + + + <h2 id="iptables">2.1.3. Iptables</h2> <p>For more information about iptables read <a href="https://wiki.archlinux.org/index.php/Iptables">arch wiki</a>. @@ -65,39 +99,6 @@ </pre> <p> - <h2 id="resolv">2.1.2. Resolver</h2> - - <p>Configure your resolver with a server that don't censorship there for - respect your freedom and privacy. Read - <a href="https://trac.torproject.org/projects/tor/wiki/doc/DnsResolver/PublicDnsResolvers#PublicDNSServers">Tor Dns Resolver</a> - for more information. This example will use - <a href="http://www.chaoscomputerclub.de/en/censorship/dns-howto">Chaos Computer Club</a> - server, edit /etc/resolv.conf and make it immutable;</p> - - <pre> - # /etc/resolv.conf.head can replace this line - nameserver 213.73.91.35 - # /etc/resolv.conf.tail can replace this line - </pre> - - <pre> - # chattr +i /etc/resolv.conf - </pre> - - <h2 id="static">2.1.3. Static IP</h2> - - <pre> - # ip link - # ip addr flush dev ${DEV} - # ip route flush dev ${DEV} - </pre> - - <pre> - # ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast + - # ip link set ${DEV} up - # ip route add default via ${GW} - </pre> - <h2 id="wpa">2.1.4. Wpa and dhcpd</h2> |