Hallo,
ich hab mein erstelltes Skript, was auf dem einen Rechner ganz gut gelaufen ist, nun auf einem anderen Ubuntu Rechner installieren wollen. Auf diesem läuft Ubuntu 12.04 Server.
Wenn ich das Skript ausführe kommen nun folgende Fehler.
iptables v1.4.12: 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.12: 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.12: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.12: 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.12: 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.12: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
.....
Existieren diese Tabellen noch nicht?
Tabea schrieb:
Existieren diese Tabellen noch nicht?
Poste mal die Ausgaben von:
sudo iptables -L -n -v -x
sudo iptables -L -n -v -x -t nat
ls -la /lib/modules/*/kernel/net/*/netfilter/
lsmod | grep ip
sudo iptables -L -n -v -x
Chain INPUT (policy ACCEPT 533821 packets, 754094071 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 143900 packets, 11882667 bytes)
pkts bytes target prot opt in out source destination sudo iptables -L -n -v -x -t nat
Chain PREROUTING (policy ACCEPT 3376 packets, 365770 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 3376 packets, 365770 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 6205 packets, 994867 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 6205 packets, 994867 bytes)
pkts bytes target prot opt in out source destinationls -la /lib/modules/*/kernel/net/*/netfilter/
/lib/modules ist leer
lsmod | grep ip
Opening /proc/modules: No such file or directory
Tabea schrieb:
ls -la /lib/modules/*/kernel/net/*/netfilter/
/lib/modules ist leer
lsmod | grep ip
Opening /proc/modules: No such file or directory
Hmm, ich kenne jetzt Ubuntu 12.04 nicht. Schau mal mit find, ob die Module sich evtl. in einem anderen Verzeichnis befinden:
sudo find /lib -iname 'ip*.ko'
Evtl. kann dir jemand helfen, die/der weiß was mit iptables in Ubuntu 12.04 los ist.
EDIT:
Zumindest wird hier der traffic von iptables erfasst. Z. B.:
Chain OUTPUT (policy ACCEPT 143900 packets, 11882667 bytes)
sudo find /lib -iname 'ip*.ko'
Findet nichts
Ich hab mal beim Hoster nachgefragt und als Antwort bekommen: "Der Standard Kernel den OVH ausliefert besitzt keinen Module Support. Du musst dir dann schon einen Kernel selbst backen."
Ok, das habe ich bisher noch nicht gemacht. So, falls keiner eine Alternativlösung weiß, werd ich wohl ins kalte Wasser springen und mich mal am Kernel kompilieren versuchen. Warum auch nicht, so schwer wirds schon nicht sein. Ich werde mal http://wiki.ubuntuusers.de/Kernel/Kompilierung inhalieren 