python-ebtables icon indicating copy to clipboard operation
python-ebtables copied to clipboard

Ebtables fails immediately

Open hheennrryy21 opened this issue 7 years ago • 1 comments

Hi, I am trying to get ebtables to work and I have encountered a strange bug.


import ebtables
ebtables.filter("-L")

EbtablesException: ebt_get_kernel_table() failed Bad table name 'filter'

python-ebtables: latest from master ebtables: v2.0.10-4 python: 2.7.14 Kernel: 4.13.0-39-generic

hheennrryy21 avatar May 30 '18 20:05 hheennrryy21

Works for me:


Bridge chain: INPUT, entries: 0, policy: ACCEPT

Bridge chain: FORWARD, entries: 0, policy: ACCEPT

Bridge chain: OUTPUT, entries: 0, policy: ACCEPT

Python 2.7.13 ebtables v2.0.10-4 (December 2011) Linux x1 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

  1. Are you running via sudo?
  2. Are the necessary kernel modules loaded?

ldx avatar Mar 02 '19 00:03 ldx