Score:2

ifup eth0 - /etc/network/if-pre-up.d/iptables exec format error

cn flag

I am currently unable to bring eth0 up again at my Debian 10 vServer after my hosting provider was fixing some issues and restarted my container.

sudo service networking status will output:

ifup[378]: run-parts: failed to exec /etc/network/if-pre-up.d/iptables: Exec format error
ifup[378]: run-parts: /etc/network/if-pre-up.d/iptables exited with return code 1
ifup[378]: ifup: pre-up script failed

which is the same output provided by ifup eth0, supplemented by

ifup: failed to bring up eth0

In /etc/network/if-pre-up.d/iptables, there is:

#!/bin/sh
/sbin/iptables-restore < /etc/iptables.up.rules

The iptables-file is stored with the following permissions: -rwxr-xr-x

Running /sbin/iptables-restore < /etc/iptables.up.rules manually does not provide any output and commenting that line out doesn't do the trick, either. However, the routes have been loaded.

/etc/iptables.up.rules has -rw-r--r-- and has the following content:

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -s 45.142.120.0/24 -j DROP 
COMMIT

Any ideas how to further deal with this?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.