Forum
[SOLVED] iptables masquerading no longer seems to work - Missing module in kernel? - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [SOLVED] iptables masquerading no longer seems to work - Missing module in kernel? (/thread-2729.html)



iptables masquerading no longer seems to work - Missing module in kernel? - marky - 11th Feb, 2015 01:36 AM

Hi all,

Since last night my iptables masquerading seems to throw an error. I did indeed perform an update yesterday, but I couldn't fix the issue by rolling back.

Today I set up a completely fresh installation of xbian and am still getting the same error.
When I try setting up masquerading with iptables for my VPN using this command:
Code:
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -i eth0 -j MASQUERADE

my raspi returns this error message:
iptables v1.4.14: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

i am currently running this configuration:
Code:
root@xbian ~ # uname -a
Linux xbian 3.17.7-ck2+ #3 PREEMPT Sat Jan 17 15:08:48 CET 2015 armv6l GNU/Linux
root@xbian ~ # lsmod
Module                  Size  Used by
tun                    16763  2
iptable_filter           980  0
ip_tables               9958  1 iptable_filter
x_tables               10250  2 ip_tables,iptable_filter
cdc_acm                14899  2
frandom                 3547  1
vchiq                 195204  2

I'd be happy to give more info, but for now I don't know what else to do, I loaded a dozen modules so far and couldn't find a viable solution googling around.. Sad

Anyone having the same problem?
Or does anyone have a solution?

Thanks a lot!


RE: iptables masquerading no longer seems to work - Missing module in kernel? - menakite - 11th Feb, 2015 02:11 AM

Mind to report it here? https://github.com/xbianonpi/xbian/issues - please report your previous kernel version (check the last entries in /var/log/apt/history.log if unsure).
I think the relevant kernel module has just been disabled by mistake.


RE: iptables masquerading no longer seems to work - Missing module in kernel? - marky - 11th Feb, 2015 02:20 AM

done, thank you.

I'm afraid it'll take a while till this is passed down and ends up fixed in one of the next releases if it's the case that the module is missing Sad


RE: iptables masquerading no longer seems to work - Missing module in kernel? - marky - 11th Feb, 2015 04:23 AM

Kernel module was missing, quick fix for everyone having the same problem with kernel 3.17.7-ck2+ is to downgrade to xbian-package-kernel_3.16.5-ck2+-1420117998 (available in the staging repo).

Looks like the setting will be changed in future versions.
See https://github.com/xbianonpi/xbian/issues/672


RE: iptables masquerading no longer seems to work - Missing module in kernel? - rikardo1979 - 11th Feb, 2015 04:28 AM


Thanks. Would you mind edit prefix of your thread to [Solved]?



RE: iptables masquerading no longer seems to work - Missing module in kernel? - todovale80 - 12th Feb, 2015 07:38 PM

Hello there,

I'm new to Xbian and I just did a fresh new installation, Can you explain me how to downgrade the kernel?

Thanks.

(11th Feb, 2015 04:23 AM)marky Wrote:  Kernel module was missing, quick fix for everyone having the same problem with kernel 3.17.7-ck2+ is to downgrade to xbian-package-kernel_3.16.5-ck2+-1420117998 (available in the staging repo).

Looks like the setting will be changed in future versions.
See https://github.com/xbianonpi/xbian/issues/672



RE: iptables masquerading no longer seems to work - Missing module in kernel? - marky - 12th Feb, 2015 08:39 PM

(12th Feb, 2015 07:38 PM)todovale80 Wrote:  Hello there,

I'm new to Xbian and I just did a fresh new installation, Can you explain me how to downgrade the kernel?

Thanks.

(11th Feb, 2015 04:23 AM)marky Wrote:  Kernel module was missing, quick fix for everyone having the same problem with kernel 3.17.7-ck2+ is to downgrade to xbian-package-kernel_3.16.5-ck2+-1420117998 (available in the staging repo).

Looks like the setting will be changed in future versions.
See https://github.com/xbianonpi/xbian/issues/672


The new kernel should already be out there and should be fixed. I haven't tried it yet, so here's what I did to move back to an older version:

Code:
wget http://apt.xbian.org/pool/staging/rpi-wheezy/x/xbian-package-kernel/xbian-package-kernel_3.16.5-ck2+-1420117998_armhf.deb
dpkg -i xbian-package-kernel_3.16.5-ck2+-1420117998_armhf.deb
reboot

after the reboot, you should have moved back to version 3.16.5.


RE: iptables masquerading no longer seems to work - Missing module in kernel? - todovale80 - 13th Feb, 2015 06:19 PM

Thank you marky, I did what you suggested, but now I cant get my wlan0 to work! did we miss something?

Thanks

(12th Feb, 2015 08:39 PM)marky Wrote:  
(12th Feb, 2015 07:38 PM)todovale80 Wrote:  Hello there,

I'm new to Xbian and I just did a fresh new installation, Can you explain me how to downgrade the kernel?

Thanks.

(11th Feb, 2015 04:23 AM)marky Wrote:  Kernel module was missing, quick fix for everyone having the same problem with kernel 3.17.7-ck2+ is to downgrade to xbian-package-kernel_3.16.5-ck2+-1420117998 (available in the staging repo).

Looks like the setting will be changed in future versions.
See https://github.com/xbianonpi/xbian/issues/672


The new kernel should already be out there and should be fixed. I haven't tried it yet, so here's what I did to move back to an older version:

Code:
wget http://apt.xbian.org/pool/staging/rpi-wheezy/x/xbian-package-kernel/xbian-package-kernel_3.16.5-ck2+-1420117998_armhf.deb
dpkg -i xbian-package-kernel_3.16.5-ck2+-1420117998_armhf.deb
reboot

after the reboot, you should have moved back to version 3.16.5.