Project

General

Profile

Managing OpenWRT » History » Version 3

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

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