From 3d285a1da2046f43e599bb449586bf26cb842493 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Tue, 5 May 2026 05:07:46 +0000 Subject: add sysctl --- install.sh | 3 +++ sysctld.autopeer | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 sysctld.autopeer diff --git a/install.sh b/install.sh index e13c5fe..5dd65f9 100755 --- a/install.sh +++ b/install.sh @@ -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 -- cgit v1.3.1-10-gc9f91