diff options
| author | 2026-05-05 05:07:46 +0000 | |
|---|---|---|
| committer | 2026-05-05 05:10:04 +0000 | |
| commit | 3d285a1da2046f43e599bb449586bf26cb842493 (patch) | |
| tree | 2b251dda9c8ab2fac27f032d47425ba70a4eaf5f | |
| parent | use fqdn everywhere (diff) | |
add sysctl
| -rwxr-xr-x | install.sh | 3 | ||||
| -rw-r--r-- | sysctld.autopeer | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -17,6 +17,9 @@ git -C /opt/autopeer/dn42-registry config core.sshCommand "ssh -i /opt/autopeer ln -s /opt/autopeer/crond.autopeer /etc/cron.d/autopeer +ln -s /opt/autopeer/sysctld.autopeer /etc/sysctl.d/99-dn42.conf +systemctl restart systemd-sysctl + umask 0007 mkdir /opt/autopeer/db echo 'CREATE TABLE peers (name, asn, ipll, endpoint, port, pubkey, creator_ip, creator_name, creator_date, deleted, primary key (name, asn));' | python3 -m sqlite3 /opt/autopeer/db/sqlite3.db diff --git a/sysctld.autopeer b/sysctld.autopeer new file mode 100644 index 0000000..7205f00 --- /dev/null +++ b/sysctld.autopeer @@ -0,0 +1,5 @@ +net.ipv4.conf.all.forwarding=1 +net.ipv6.conf.all.forwarding=1 +net.ipv4.conf.all.rp_filter=0 +net.ipv4.conf.default.rp_filter=0 +net.ipv4.conf.*.rp_filter=0 |
