Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] iptables masquerading no longer seems to work - Missing module in kernel?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: iptables masquerading no longer seems to work - Missing module in kernel?
11th Feb, 2015, 01:36 AM
Post: #1
marky Offline
Registered
Posts: 4
Joined: Feb 2015
Reputation: 1
iptables masquerading no longer seems to work - Missing module in kernel?
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!
Find all posts by this user
Quote this message in a reply
11th Feb, 2015, 02:11 AM
Post: #2
menakite Offline
Management
******
Posts: 175
Joined: Apr 2014
Reputation: 27
RE: iptables masquerading no longer seems to work - Missing module in kernel?
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.
Find all posts by this user
Quote this message in a reply
11th Feb, 2015, 02:20 AM
Post: #3
marky Offline
Registered
Posts: 4
Joined: Feb 2015
Reputation: 1
RE: iptables masquerading no longer seems to work - Missing module in kernel?
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
Find all posts by this user
Quote this message in a reply
11th Feb, 2015, 04:23 AM
Post: #4
marky Offline
Registered
Posts: 4
Joined: Feb 2015
Reputation: 1
RE: iptables masquerading no longer seems to work - Missing module in kernel?
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
Find all posts by this user
Quote this message in a reply
11th Feb, 2015, 04:28 AM
Post: #5
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: iptables masquerading no longer seems to work - Missing module in kernel?

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

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
12th Feb, 2015, 07:38 PM
Post: #6
todovale80 Offline
Registered
Posts: 2
Joined: Feb 2015
Reputation: 0
RE: iptables masquerading no longer seems to work - Missing module in kernel?
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
Find all posts by this user
Quote this message in a reply
12th Feb, 2015, 08:39 PM
Post: #7
marky Offline
Registered
Posts: 4
Joined: Feb 2015
Reputation: 1
RE: iptables masquerading no longer seems to work - Missing module in kernel?
(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.
Find all posts by this user
Quote this message in a reply
13th Feb, 2015, 06:19 PM
Post: #8
todovale80 Offline
Registered
Posts: 2
Joined: Feb 2015
Reputation: 0
RE: iptables masquerading no longer seems to work - Missing module in kernel?
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.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 05:58 AM Powered By MyBB, © 2002-2025 MyBB Group.