Skip to content

Add support for Debian/Ubuntu - #384

Open
sbivol wants to merge 2 commits into
lynxthecat:masterfrom
sbivol:feature/debian
Open

Add support for Debian/Ubuntu#384
sbivol wants to merge 2 commits into
lynxthecat:masterfrom
sbivol:feature/debian

Conversation

@sbivol

@sbivol sbivol commented Jun 29, 2026

Copy link
Copy Markdown

This adds support for running cake-autorate on Debian and related distributions.

I have been running cake-autorate on Ubuntu Server for a year and am willing to maintain support for this OS family going forward.

@lynxthecat

lynxthecat commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Nice to add support for more use cases, but cake-autorate itself should not instantiate cake instances. That should be taken care of independently of cake-autorate. cake-autorate should just change the bandwidth of existing cake instances.

@sbivol

sbivol commented Jun 30, 2026

Copy link
Copy Markdown
Author

The challenge is in there not being an easy way to get cake set up outside router-oriented distributions.
I can move ifb-setup.sh to a separate repo and reference it in the documentation.
What are your thoughts?

@lynxthecat

Copy link
Copy Markdown
Owner

Sounds good. I think that was also just recently done for another such PR.

@lynxthecat

Copy link
Copy Markdown
Owner

@sbivol shall I keep this PR open?

Comment thread cake-autorate@.service Outdated
@sbivol

sbivol commented Jul 21, 2026

Copy link
Copy Markdown
Author

Please keep this PR open, I have split ifb-setup.sh into its own repo at https://github.com/sbivol/cake-on-wan and am still testing it.
The next steps are to add documentation to that repo and update this PR accordingly.

@sbivol

sbivol commented Aug 10, 2026

Copy link
Copy Markdown
Author

The changes are now in place, please review again.

@rany2

rany2 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

This is what I am using:

[Unit]
Description=cake-autorate for %I
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device

[Service]
AmbientCapabilities=CAP_NET_ADMIN
AmbientCapabilities=CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_ADMIN
CapabilityBoundingSet=CAP_NET_RAW
ExecStart=%%PREFIX/cake-autorate %%CONFIG/config.%I.sh
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
Restart=on-failure
RestartSec=5
RestrictAddressFamilies=AF_INET
RestrictAddressFamilies=AF_INET6
RestrictAddressFamilies=AF_NETLINK
RestrictAddressFamilies=AF_UNIX
RuntimeDirectory=cake-autorate

[Install]
WantedBy=multi-user.target

I would avoid using the launcher.

@rany2

rany2 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

I also added d2ff9aa which should better accommodate systemd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants