Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] IP6 tables error for Wireguard VPN
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hwix
n00b
n00b


Joined: 08 Jul 2024
Posts: 20

PostPosted: Sun Aug 25, 2024 3:30 pm    Post subject: [SOLVED] IP6 tables error for Wireguard VPN Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22612

PostPosted: Sun Aug 25, 2024 3:34 pm    Post subject: Reply with quote

The error says it failed to initialize the mangle table. Does your kernel have that table?
Back to top
View user's profile Send private message
hwix
n00b
n00b


Joined: 08 Jul 2024
Posts: 20

PostPosted: Sun Aug 25, 2024 3:44 pm    Post subject: Reply with quote

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! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum