Start Ebtables service

Asked by Jevin gala

Hi,

How can I start ebtables service on an Ubuntu 20 node ?

Failed to start ebtables.service: Unit ebtables.service not found.

I have few rules added and I want them to be loaded on node reboot.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ebtables Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

How did you install and setup the service, please? What steps did you take?

Is this Ubuntu 20.04 (The LTS version) or 20.10? There is no "Ubuntu 20". It's not a thing. You can check by running:

lsb_release -a

Thanks

Revision history for this message
Jevin gala (whatshouldiusethen) said :
#2

Hi,

Sorry, its Ubuntu 20.04.3 LTS and I installed it using ' apt install ebtables ' command but service file does not shows up; though rules list when using ebtables -L.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

ebtables.service was removed between versions 2.10 and 2.11 of ebtables and thus does not exist any more on Ubuntu 20.04 and later.

Revision history for this message
Jevin gala (whatshouldiusethen) said :
#4

Hi,

I have : ebtables v2.0.11
May I know how can I add the service file or any workaround ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Sorry for mistyping the version numbers, my previous message should read:

ebtables.service was removed between versions 2.0.10 and 2.0.11 of ebtables and thus does not exist any more on Ubuntu 20.04 and later.

There is no ebtables service available in version 2.0.11.

Revision history for this message
Jevin gala (whatshouldiusethen) said :
#6

Hi,

So there is no workaround for it ?

Revision history for this message
Bernard Stafford (bernard010) said :
#7
Revision history for this message
Jevin gala (whatshouldiusethen) said :
#8

Hi,

I don't want a link to download, I want to load the service on reboot so that ebtables rules are applied automatically.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Is there a file in /etc/init.d for the service? Is it set to run at startup? If you reboot and run:

ps -ef | grep -i ebtables | grep -v grep

Is there any output?

Revision history for this message
Jevin gala (whatshouldiusethen) said :
#10

Hi,

No process found.

Since the service file itself was removed, I doubt it would be present under /etc/init.d directory (and it doesn't)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

what is the output of:

sudo updatedb
locate ebtables*
apt-cache policy ebtables

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Hmm, I have seen this
https://ubuntu.pkgs.org/20.04/ubuntu-main-amd64/ebtables_2.0.11-3build1_amd64.deb.html

Which doesn't have the service file in. But....
https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/ebtables_2.0.10.4-3.5ubuntu2_amd64.deb.html

This does, you could download the one from Bionic, extract the deb using the "ar" command, then extract the data file inside it to get the service file, then add it to the system as you expect.

I don't know if the different in version means it runs differently and I suggest you do all of this sat at the system or using the local console rather than SSH in case you get blocked out. Worth a try.

Can you help with this problem?

Provide an answer of your own, or ask Jevin gala for more information if necessary.

To post a message you must log in.