View previous topic :: View next topic |
Author |
Message |
hwix n00b
Joined: 08 Jul 2024 Posts: 20
|
Posted: Sun Aug 25, 2024 3:30 pm Post subject: [SOLVED] IP6 tables error for Wireguard VPN |
|
|
When I run my Wireguard VPN script on gentoo-kernel-bin I don't get any errors, but on a custom kernel I get the following error:
Code: | [#] ip link add us-atl-wg-001 type wireguard
[#] wg setconf us-atl-wg-001 /dev/fd/63
[#] ip -4 address add {removed for privacy reasons} dev us-atl-wg-001
[#] ip -6 address add {removed for privacy reasons} dev us-atl-wg-001
[#] ip link set mtu 1420 up dev us-atl-wg-001
[#] resolvconf -a us-atl-wg-001 -m 0 -x
[#] wg set us-atl-wg-001 fwmark 51820
[#] ip -6 route add ::/0 dev us-atl-wg-001 table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] ip6tables-restore -n
ip6tables-restore v1.8.10 (legacy): ip6tables-restore: unable to initialize table 'mangle'
Error occurred at line: 4
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
[#] resolvconf -d us-atl-wg-001 -f
[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev us-atl-wg-001 |
Here is my kernel .config:
Link: https://pastebin.com/dYFcXDgB
Pass: hZ2r2b9kgF
Last edited by hwix on Sun Aug 25, 2024 3:44 pm; edited 1 time in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22619
|
Posted: Sun Aug 25, 2024 3:34 pm Post subject: |
|
|
The error says it failed to initialize the mangle table. Does your kernel have that table? |
|
Back to top |
|
|
hwix n00b
Joined: 08 Jul 2024 Posts: 20
|
Posted: Sun Aug 25, 2024 3:44 pm Post subject: |
|
|
Hu wrote: | The error says it failed to initialize the mangle table. Does your kernel have that table? |
I just checked my .config file and I realized that it didn't have that enabled. I built it into my kernel and now I have no errors.
Thanks! |
|
Back to top |
|
|
|