imq / linuximq

Pseudo-driver for the intermediate queue device.

Home Page:https://imq.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iptables-restore cannot work with imq

skywalker-nick opened this issue · comments

Some rules just like:
-t mangle -A POSTROUTING -d 192.168.5.0/24 -j IMQ --todev 0

iptables-restore cannot work properly and throw the exception:

iptables-restore v1.4.7: unknown option --todev' Tryiptables-restore -h' or 'iptables-restore --help' for more information.

Then I tried to use iptables to see what happened:

[root@vrouter ~]# sudo iptables -t mangle -A POSTROUTING -d 192.168.5.0/24 -j IMQ --todev 0
iptables v1.4.7: unknown option --todev' Tryiptables -h' or 'iptables --help' for more information.

But here, it is working.
[root@vrouter ~]# iptables -t mangle -A POSTROUTING -d 192.168.5.0/24 -j IMQ --todev 0

You should have two different versions of iptables installed (distro and imq-aware) somewhere under /usr/bin and /usr/local/bin.

Yes, you are totally right. I should remove distro package in advance. Thanks a lot.