summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Giese2022-06-11 11:45:49 +0200
committerMattias Giese2022-06-11 11:45:49 +0200
commit89e5115a4e8ab66c2e65aece756799507c01e870 (patch)
tree69b974b470729846be30aa30c6a3e559f83ba3fe
parent7ceb72cf6e035042168e4943703c185bb3e761b8 (diff)
downloadaur-jool.tar.gz
Add example conf for jool_siit
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
-rw-r--r--jool_siit.conf.example55
3 files changed, 66 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ddadbf11f9f..df73b317685 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,12 +7,16 @@ pkgbase = jool
license = GPL2
makedepends = libnl
optdepends = iptables
+ backup = etc/jool/jool_siit.conf
+ backup = etc/jool/jool.conf
source = https://github.com/NICMx/Jool/releases/download/v4.1.7/jool-4.1.7.tar.gz
source = jool.service
source = jool_siit.service
+ source = jool_siit.conf.example
sha256sums = 31fab9f9994e769b117354934742cfd8fc35a6a0aabcf4bab912bae4868c3778
sha256sums = 2d50ad60e284876f09051a4d44d4cc51da4b354cb4ff7acf85de864427d360b5
sha256sums = 0de3cc336ec9587bb3d62c81062977687a439403cc30d14d9798502d8626ce5f
+ sha256sums = 6a458bf27741f2bc82739a0feead31197f0d95e7fa39719dc090c4fafe056540
pkgname = jool-tools
pkgdesc = Open Source SIIT and NAT64 for Linux. - Userspace tools and libraries
diff --git a/PKGBUILD b/PKGBUILD
index 5059db41604..5f04e64d229 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,13 +10,18 @@ url="https://www.jool.mx"
license=('GPL2')
makedepends=('libnl')
optdepends=('iptables')
+backup=('etc/jool/jool_siit.conf'
+ 'etc/jool/jool.conf'
+ )
source=("https://github.com/NICMx/Jool/releases/download/v${pkgver}/jool-${pkgver}.tar.gz"
"jool.service"
"jool_siit.service"
+ "jool_siit.conf.example"
)
sha256sums=('31fab9f9994e769b117354934742cfd8fc35a6a0aabcf4bab912bae4868c3778'
'2d50ad60e284876f09051a4d44d4cc51da4b354cb4ff7acf85de864427d360b5'
- '0de3cc336ec9587bb3d62c81062977687a439403cc30d14d9798502d8626ce5f')
+ '0de3cc336ec9587bb3d62c81062977687a439403cc30d14d9798502d8626ce5f'
+ '6a458bf27741f2bc82739a0feead31197f0d95e7fa39719dc090c4fafe056540')
prepare() {
cp -a "${pkgbase}-${pkgver}" "${pkgbase}-${pkgver}-dkms"
@@ -35,6 +40,7 @@ package_jool-tools() {
make DESTDIR="${pkgdir}" install
install -D -m0644 "${srcdir}/jool.service" "${pkgdir}/usr/lib/systemd/system/jool.service"
install -D -m0644 "${srcdir}/jool_siit.service" "${pkgdir}/usr/lib/systemd/system/jool_siit.service"
+ install -D -m0644 "${srcdir}/jool_siit.conf.example" "${pkgdir}/etc/jool/jool_siit.conf"
}
package_jool-dkms() {
diff --git a/jool_siit.conf.example b/jool_siit.conf.example
new file mode 100644
index 00000000000..5c14dfdb0bf
--- /dev/null
+++ b/jool_siit.conf.example
@@ -0,0 +1,55 @@
+{
+ "comment": {
+ "description": "Sample full SIIT configuration.",
+ "notes": [
+ "192.0.2/24, 198.51.100/24 and 2001:db8::/32 are",
+ "documentation blocks (RFC 5737 and RFC 3849), and you",
+ "WILL need to change or remove them for your setup."
+ ],
+ "last update": "2022-02-09"
+ },
+
+ "instance": "sample-siit",
+ "framework": "netfilter",
+
+ "global": {
+ "manually-enabled": true,
+ "pool6": "2001:db8:0::/96",
+ "lowest-ipv6-mtu": 1280,
+ "logging-debug": false,
+ "zeroize-traffic-class": false,
+ "override-tos": false,
+ "tos": 0,
+ "mtu-plateaus": [
+ 65535, 32000, 17914, 8166,
+ 4352, 2002, 1492, 1006,
+ 508, 296, 68
+ ],
+ "amend-udp-checksum-zero": false,
+ "eam-hairpin-mode": "intrinsic",
+ "randomize-rfc6791-addresses": true,
+ "rfc6791v6-prefix": null,
+ "rfc6791v4-prefix": null
+ },
+
+ "eamt": [
+ {
+ "comment": "Comments allowed here too.",
+ "ipv6 prefix": "2001:db8:1::/128",
+ "ipv4 prefix": "192.0.2.0"
+ }, {
+ "ipv6 prefix": "2001:db8:2::",
+ "ipv4 prefix": "192.0.2.1/32"
+ }, {
+ "ipv6 prefix": "2001:db8:3::/124",
+ "ipv4 prefix": "192.0.2.16/28"
+ }
+ ],
+
+ "comment": "This comment is relevant to denylist4 maybe.",
+ "denylist4": [
+ "198.51.100.0",
+ "198.51.100.2/32",
+ "198.51.100.32/27"
+ ]
+}