WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline awabimakoto

  • WikiUser
  • *
  • Posts: 26
iptables of piCore cannot work
« on: June 21, 2013, 05: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?

Online bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6912
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #1 on: June 21, 2013, 07: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."

Online bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6912
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #2 on: June 21, 2013, 12: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."

Online bmarkus

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

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

Offline awabimakoto

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

Online bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6912
    • My Community Forum
Re: iptables of piCore cannot work
« Reply #5 on: June 26, 2013, 06: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 awabimakoto

  • WikiUser
  • *
  • Posts: 26
Re: iptables of piCore cannot work
« Reply #6 on: June 26, 2013, 11:57:34 PM »
It works fine.