Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Kubo IPFS used default config #500

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packaging/aleph-vm/etc/ipfs/KUBO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The IP range `86.84.0.0/16` is managed by `KPN Internet` is filtered out due to
an abuse letter sent to a node operator by Hetzner regarding "an attack" from the node.
The content of this "attack" appears as legit IPFS traffic
(TCP packets from port 4001 to port 4001 and UDP packets from port 4001 to port 46024).
16 changes: 16 additions & 0 deletions packaging/aleph-vm/etc/ipfs/kubo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"AutoNAT": {
"ServiceMode": "disabled"
},
"AddrFilters": [
],
"Reprovider": {
"Strategy": "roots"
},
"Swarm": {
"EnableHolePunching":false,
"RelayService": {
"Enabled": false
}
}
}
4 changes: 2 additions & 2 deletions packaging/aleph-vm/etc/systemd/system/ipfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ After=network.target

[Service]
# hardening
ReadOnlyPaths="/opt/kubo/"
ReadOnlyPaths="/opt/kubo/" "/etc/ipfs"
ReadWritePaths="/var/lib/ipfs/"
NoNewPrivileges=true
ProtectSystem=strict
Expand Down Expand Up @@ -72,7 +72,7 @@ Type=notify
User=ipfs
Group=ipfs
Environment=IPFS_PATH="/var/lib/ipfs"
ExecStart=/opt/kubo/ipfs daemon --init --migrate --init-profile=server
ExecStart=/opt/kubo/ipfs daemon --init --migrate --init-profile=server --config-file /etc/ipfs/kubo.json
Restart=on-failure
KillSignal=SIGINT

Expand Down