WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: iptables of piCore cannot work  (Read 4901 times)

Offline makoto

  • Newbie
  • *
  • Posts: 26
iptables of piCore cannot work
« on: June 21, 2013, 09:33:09 AM »
I want to use my RaspberryPi as a router. I installed dnsmasq and iptables. But when I execute:
Code: [Select]
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEit gives the error:
Code: [Select]
iptables v1.4.19.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
My piCore kernel version is 3.8.13. I noticed that the kernel modules in netfilter is different from those in my laptop tinycore. I modprobe these modules which contain 'iptable' and 'nat', but the error remains. In tinycore, related modules will be loaded after I execute iptables command. Any solutions?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #1 on: June 21, 2013, 11:21:35 AM »
Well, there are no nat related kernel moduls. Will check
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #2 on: June 21, 2013, 04:22:13 PM »
NAT is disabled in current kernel. I will meke a new release in trhe next days.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #3 on: June 26, 2013, 03:01:13 AM »
Update to recent piCore version released today.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline makoto

  • Newbie
  • *
  • Posts: 26
Re: iptables of piCore cannot work
« Reply #4 on: June 26, 2013, 10:37:36 AM »
Thank you for your work :D

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #5 on: June 26, 2013, 10:51:52 AM »
Thank you for your work :D

You are welcome. Does it work?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline makoto

  • Newbie
  • *
  • Posts: 26
Re: iptables of piCore cannot work
« Reply #6 on: June 27, 2013, 03:57:34 AM »
It works fine.