You are not logged in.

#1 2014-01-21 16:03:20

rjn2309
Member
Registered: 2014-01-19
Posts: 3

IPTables can't initialize?

Hi all,
I'm trying to enable NAT on my Raspberry Pi for a project, I have been consulting the Arch Wiki page and have found that I need to use IPTables to enable masquerading.

So I execute the command as stated:

# iptables -t nat -A POSTROUTING -o internet0 -j MASQUERADE
# iptables -A FORWARD -i internet0 -o internal0 -j ACCEPT
# iptables -A FORWARD -i internal0 -o internet0 -j ACCEPT

However when I execute just the first command in that list it returns:

iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.21: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded. 

I am a bit of newbie but I think it has something to do with the kernel? can someone offer a dummed down explanation/fix?

Thanks big_smile

Offline

#2 2014-01-21 16:06:58

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: IPTables can't initialize?

I think you need to ask on the Arch Linux ARM forum.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB