Raspberry pi

iptables

Si vous avez le message d’erreur suivant quand vous voulez utiliser iptables

libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.6.11+/modules.dep.bin'
iptables v1.4.14: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Installez rpi-update et lancez le

apt-get install rpi-update

Cela va mettre à jour le firmware de votre raspberry pi et un reboot sera nécessaire.

Le 13-03-2015

# rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8107  100  8107    0     0  16467      0 --:--:-- --:--:-- --:--:-- 22395
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    217      0 --:--:-- --:--:-- --:--:--   296
100 43.5M  100 43.5M    0     0   120k      0  0:06:11  0:06:11 --:--:-- 95974
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 3.18.9+
 *** depmod 3.18.9-v7+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 1431f38b47ca42cac467a36242b713bba3c40fbc
 *** A reboot is needed to activate the new firmware

Le 06-06-2017

# rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13403  100 13403    0     0  22545      0 --:--:-- --:--:-- --:--:-- 29328
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
#############################################################
This update bumps to rpi-4.9.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=167934
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    204      0 --:--:-- --:--:-- --:--:--   268
100 53.9M  100 53.9M    0     0   198k      0  0:04:38  0:04:38 --:--:-- 53119
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.9.30+
 *** depmod 4.9.30-v7+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 684be4bc8cc343f60fdc3240c6d55d41d0a5b56c
 *** A reboot is needed to activate the new firmware