Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] iptables nat geht nicht mit kernel 2.6.16-gentoo-r3
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ixo
Guru
Guru


Joined: 09 Jul 2005
Posts: 375

PostPosted: Sun Apr 30, 2006 2:46 pm    Post subject: [solved] iptables nat geht nicht mit kernel 2.6.16-gentoo-r3 Reply with quote

Hallo,

ich habe folgendes seltsame Problem nach Übersetzen von 2.6.16:

Code:
# modprobe ip_nat
FATAL: Error inserting ip_nat (/lib/modules/2.6.16-gentoo-r3/kernel/net/ipv4/netfilter/ip_nat.ko): Unknown symbol in module, or unknown parameter (see dmesg)


dmesg sagt:
Code:
ip_nat: Unknown symbol ip_conntrack_tcp_update


Code:
# grep -i conntrack /usr/src/linux/.config
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
CONFIG_IP_NF_CONNTRACK=y
CONFIG_IP_NF_CONNTRACK_MARK=y
CONFIG_IP_NF_CONNTRACK_EVENTS=y
CONFIG_IP_NF_CONNTRACK_NETLINK=m


Kann mir jemand einen Tipp geben?


Last edited by ixo on Sun Apr 30, 2006 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Sun Apr 30, 2006 3:35 pm    Post subject: Reply with quote

Ähm könnte es sein, dass du deinen GCC gewechselst hast und das Modul mit ner anderen GCC Version gebaut hast?
Dann würde ich dir empfehlen, dass du nochmal den Kernel mit seinen Modulen neubaust mit dem neuen GCC. :)

Bye.
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
ixo
Guru
Guru


Joined: 09 Jul 2005
Posts: 375

PostPosted: Sun Apr 30, 2006 4:02 pm    Post subject: Reply with quote

Ich habe den gcc nicht gewechselt und das iptables Modul (vorsichtshalber) neu übersetzt. Hat aber nichts geholfen.

Nachdem ich die .config vom 2.6.15er Kernel in den 2.6.16er reinkopiert hatte und anschließend 'make xconfig' (ich weiß, Warmduscher, Saunauntensitzer, Fußföhner, etc.) gestartet hatte, war die gesamte Konfiguration von iptables erst 'mal futsch. Ich habe die dann nachgearbeitet - inzwischen habe ich so ziemlich alles angewählt.

(Momentan läuft wieder der alte Kernel, damit ich überhaupt eine vernünftige Anbindung habe.)
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 30, 2006 4:04 pm    Post subject: Reply with quote

du musst, nachdem du die .config kopiert hast, ein make oldconfig machen, damit er die alte configuration übernimmt.
Dabei fragt er dich auch nach neuen optionen wenn es welche gibt.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Sun Apr 30, 2006 4:19 pm    Post subject: Reply with quote

firefly wrote:
du musst, nachdem du die .config kopiert hast, ein make oldconfig machen, damit er die alte configuration übernimmt.
Dabei fragt er dich auch nach neuen optionen wenn es welche gibt.


Super, das wird dein Problem wahrscheinlich lösen. :)

Bye.
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Sun Apr 30, 2006 4:38 pm    Post subject: Reply with quote

Hhm, hilft dies ?
Code:
tfoerste@n22 ~ $ grep -i -e nat -e conntrack /usr/src/linux/.config  | grep -v '^#'
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_NAT_IRC=m
CONFIG_IP_NF_NAT_FTP=m
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 30, 2006 4:49 pm    Post subject: Reply with quote

smg: klar wird es eventuell sein problem lösen, da ja bei seinem 2.6.15er kernel iptables ja funktioniert.

Wenn er nu die .config datei vom 2.6.15er kernel ins 2.6.16er kernel-verzeichniss kopiert und dann dort ein make oldconfig macht, dann sollte es auch mit dem 2.6.16er funktionieren.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
ixo
Guru
Guru


Joined: 09 Jul 2005
Posts: 375

PostPosted: Sun Apr 30, 2006 5:13 pm    Post subject: Reply with quote

Das menuoldconfig war's. Jetzt backe ich schon seit > 5 Jahren Linux kernel (wenn man SunOS 4.x dazunimmet, na ja), und da muss ich das wohl irgendwie vergessen haben.

Jedenfalls war's das. Vielen Dank!
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Sun Apr 30, 2006 5:13 pm    Post subject: Reply with quote

Wenn beim "make oldconfig" die Option "Netfilter Xtables support (required for ip_tables)" erscheint, musst du "Y" oder "M" auswählen. Die Standard-Antwort, die beim Drücken von <Enter> angenommen wird, ist "N". Und damit sind alle Netfilter-Optionen abgeschaltet, also auch NAT.

EDIT: Da war ich wohl zu spät... Aber schön, dass es jetzt wieder funktioniert. :D
_________________
Do your part to beautify the web! Turn off link underlining!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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