path: root/extensions
diff options
authorPablo Neira Ayuso <>2012-09-26 19:08:28 +0200
committerPablo Neira Ayuso <>2013-10-07 16:35:50 +0200
commit3aae811bac0a2a2d417c0e56b5fc906103ddb567 (patch)
tree7995c5165f5e627c0af061470023959b0b328f3c /extensions
parent3b2ae1cf7db6480b8f93ff7edb0799ba8859fd2b (diff)
extensions: libxt_physdev: add unit test
Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'extensions')
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/libxt_physdev.t b/extensions/libxt_physdev.t
new file mode 100644
index 00000000..1fab7e19
--- /dev/null
+++ b/extensions/libxt_physdev.t
@@ -0,0 +1,14 @@
+-m physdev --physdev-in lo;=;OK
+-m physdev --physdev-is-in --physdev-in lo;=;OK
+# xt_physdev: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
+# ERROR: should fail: iptables -A FORWARD -m physdev --physdev-out lo
+#-m physdev --physdev-out lo;;FAIL
+# ERROR: cannot load: iptables -A OUTPUT -m physdev --physdev-is-out --physdev-out lo
+#-m physdev --physdev-is-out --physdev-out lo;=;OK
+-m physdev --physdev-in lo --physdev-is-bridged;=;OK
+-m physdev --physdev-out lo --physdev-is-bridged;=;OK