Project

General

Profile

Managing OpenWRT » History » Version 4

Nico Schottelius, 07/03/2020 12:09 PM

1 4 Nico Schottelius
{{toc}}
2
3 1 Nico Schottelius
h1. Managing OpenWRT
4
5
h2. Installing and configuring Jool
6
7
<pre>
8
opkg install kmod-jool
9
opkg install jool-tools
10 2 ll nu
11
# Load the kernel module
12
modprobe jool_siit
13
14
# The range which will be the target for the 2nd NAT (if needed to reach a v4 ip)
15
jool_siit -6 2a0a:e5c0:2:10::/96
16
17
# Pick a v6 range to translate TO and a v4 range to translate from
18
jool_siit -e -a 2a0a:e5c0:17:1::/96 192.168.61.0/24
19
20
# Accept Router Advertisements to keep the default address
21
sysctl -w net.ipv6.conf.all.accept_ra=2
22
sysctl -w net.ipv6.conf.default.accept_ra=2
23
sysctl -w net.ipv6.conf.eth0.accept_ra=2
24
25 1 Nico Schottelius
</pre>
26 3 Nico Schottelius
27
28
h2. Enabling routing with router advertisements
29
30
* By default ipv6 forwarding is on (good!)
31
* By default accept_ra is 0
32
** This does not set the route properly into the kernel -> routing is broken
33
* Need to modify accept_ra to 2