Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NAT support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SolarJonh2023
n00b
n00b


Joined: 23 Apr 2025
Posts: 1

PostPosted: Wed Apr 23, 2025 3:51 pm    Post subject: NAT support Reply with quote

I can't enable nat support the linux kernel.
I tried to do it according to this instruction, but it doesn't work.
https://tewarid.github.io/2014/09/03/linux-nat-routing-on-raspberry-pi-with-buildroot.html
Can you tell me the working settings for linux kernel?
Kernel config and error logs in attachments
Errors:
iptables -t nat -L
nf_conntrack: Unknown symbol nf_nat_hook (err -2)
nf_conntrack: Unknown symbol nf_ct_zone_dflt (err -2)
nf_conntrack: Unknown symbol nf_nat_hook (err -2)
nf_conntrack: Unknown symbol nf_ct_zone_dflt (err -2)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55234
Location: 56N 3W

PostPosted: Wed Apr 23, 2025 4:13 pm    Post subject: Reply with quote

SolarJonh2023,

Welcome to Gentoo

Code:
Unknown symbol
errors point to mismatched kernel and modules.

Occasionally, it means that you have selected something without selectind something else that that first something requires.
You are not supposed to be able to do that. It may be a kernel bug.

Trying
Code:
cd /usr/src/linux
roy@neddy_static /usr/src/linux $ grep nf_nat_hook -R ./
shows that the symbod is defined in
by
Code:
./include/linux/netfilter.h:struct nf_nat_hook {


Have you been editing the kernel .config with $EDITOR ?
Don't do that. Some settings turn on as many an nine other settings. You will miss those.
If you have edited the .config by hand, throw it away and start again with one of the tools like menuconfig.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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