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 vpn_routes script for Alpine 3.19 #83

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

bfritz
Copy link
Owner

@bfritz bfritz commented Apr 28, 2024

After PR #81 to upgrade from Alpine 3.18 to 3.19, the vpn_routes script would fail with:

rpi-fw:~# /usr/local/bin/vpn_routes add k8s_net 118 "10.201.196.2"
grep: /etc/iproute2/rt_tables: No such file or directory
/usr/local/bin/vpn_routes: line 12: can't create /etc/iproute2/rt_tables: nonexistent directory

Likely caused by this change in 3.19:

  • iptables-nft is now the default iptables backend.

Tweak the script to eliminate the rt_tables reference that broke.

After PR #81 to upgrade from Alpine 3.18 to 3.19, the `vpn_routes`
script would fail with:

    rpi-fw:~# /usr/local/bin/vpn_routes add k8s_net 118 "10.201.196.2"
    grep: /etc/iproute2/rt_tables: No such file or directory
    /usr/local/bin/vpn_routes: line 12: can't create /etc/iproute2/rt_tables: nonexistent directory

Likely caused by this change in 3.19:

* iptables-nft is now the [default] iptables backend.

Tweak the script to eliminate the `rt_tables` reference that broke.

[default]: https://gitlab.alpinelinux.org/alpine/aports/-/commit/f87a191922955bcf5c5f3fc66a425263a4588d48
@bfritz bfritz merged commit 69d1226 into main Apr 29, 2024
9 checks passed
@bfritz bfritz deleted the fix_wireguard_tunnels branch April 29, 2024 23:10
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.

1 participant