Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #248057

Re: macchanger - is it still working?

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: macchanger - is it still working?
Date 2022-05-10 01:20 +0200
Message-ID <ElkPw-eqeN-3@gated-at.bofh.it> (permalink)
References <EfJGV-aRTy-11@gated-at.bofh.it> <El5x7-egPc-1@gated-at.bofh.it> <ElfmN-emQS-3@gated-at.bofh.it> <ElfG9-emXQ-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 09 May 2022 at 19:49:11 (+0200), Hans wrote:
> > I don't know what you searched for.
> > 
> I searched for all files below /etc of a string "IFACE", then looked at something like "IFACE=all" 
> or "IFACE=--all" or similar. 

It's always worth searching for the parts separately, even though a
lot of false hits can result.

But I googled   iface=--all network

(adding network to avoid phone cases), and that hit   man interfaces,
wherein I find (selected lines):

--✄✄✄✄--

ENVIRONMENT VARIABLES
       All  hook  scripts,  and  the commands executed by pre-up, up, post-up,
       pre-down, down and post-down have access to the  following  environment
       variables:

       IFACE  The  physical  name of the interface being processed, or "--all"
              (see below).

 [ … ]

       Additionally, all options given in an interface definition  stanza  are
       exported to the environment in upper case with "IF_" prepended and with
       hyphens converted to underscores and non-alphanumeric  characters  dis‐
       carded.

       When  ifupdown is being called with the --all option, before doing any‐
       thing to interfaces, it calls all the hook  scripts  (pre-up  or  down)
       with  IFACE set to "--all", LOGICAL set to the current value of --allow
       parameter  (or  "auto"   if   it's   not   set),   ADDRFAM="meta"   and
       METHOD="none".   After all the interfaces have been brought up or taken
       down, the appropriate scripts (up or post-down) are executed.

--✄✄✄✄--

So now the search might be for   ifup or down, other options perhaps,
and somewhere or other, --all. A lot of alternatives. So best search
for just '\--all' (noting the escaped hyphen). Nowadays I tend to
check /etc/, /var/lib/dpkg/info/, and /lib/systemd/ for your
configuration, Debian's, and systemd's. So

# grep -r '\--all' /etc/ /var/lib/dpkg/info/ /lib/systemd/

and you'll know it's working as you'll hit some --allow strings.

> > What does your /etc/network/interfaces (and subdirectories) contain?
> > 
> 
> Only this:
> 
> --------------------
> 
> auto lo wlp5s0 enp0s10 
> 
> iface lo inet loopback 
> address 127.0.0.1 
> netmask 255.0.0.0
> 
> --------------------
> Everything else is commented out, as network-manager recommends this.

Does NM really want "auto lo wlp5s0 enp0s10" in /e/n/i? That surprises
me. Another (pre-bullseye) package that avoided interfaces in /e/n/i,
wicd, would expect no mention of its interfaces in /e/n/i, leaving just:

  auto lo
  iface lo inet loopback

I would try that.

> > A workaround for your problem might be to set IFACE appropriately
> > in /etc/default/macchanger.
> 
> Yes, that is a good idea, I will do so.

You could then unwind this, and just set ENABLE_INTERFACES in
/etc/default/macchanger as appropriate (and if required).

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-04-24 14:40 +0200
  Re: macchanger - is it still working? Reco <recoverym4n@enotuniq.net> - 2022-04-24 15:20 +0200
    Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-04-24 15:30 +0200
      Re: macchanger - is it still working? "Andrew M.A. Cater" <amacater@einval.com> - 2022-04-24 16:20 +0200
        Re: macchanger - is it still working? "tv.debian" <tv.debian@googlemail.com> - 2022-04-24 16:30 +0200
        Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-04-24 16:50 +0200
      Re: macchanger - is it still working? David Wright <deblis@lionunicorn.co.uk> - 2022-04-24 17:00 +0200
        Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-04-24 17:10 +0200
          Re: macchanger - is it still working? David Wright <deblis@lionunicorn.co.uk> - 2022-04-24 18:10 +0200
            Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-04-24 19:10 +0200
      Re: macchanger - is it still working? Reco <recoverym4n@enotuniq.net> - 2022-04-24 19:10 +0200
        Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-04-24 19:30 +0200
        Re: macchanger - is it still working? David Wright <deblis@lionunicorn.co.uk> - 2022-04-24 20:50 +0200
        Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-05-09 09:00 +0200
          Re: macchanger - is it still working? David Wright <deblis@lionunicorn.co.uk> - 2022-05-09 19:30 +0200
            Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-05-09 19:50 +0200
              Re: macchanger - is it still working? David Wright <deblis@lionunicorn.co.uk> - 2022-05-10 01:20 +0200
          Re: macchanger - is it still working? Stefan Krusche <linux@stefan-krusche.de> - 2022-05-13 13:20 +0200
            Re: macchanger - is it still working? Stefan Krusche <linux@stefan-krusche.de> - 2022-05-13 13:40 +0200
          Re: macchanger - is it still working? Stefan Krusche <linux@stefan-krusche.de> - 2022-05-13 13:30 +0200
            Re: macchanger - is it still working? Hans <hans.ullrich@loop.de> - 2022-05-13 16:30 +0200
              Re: macchanger - is it still working? Stefan Krusche <linux@stefan-krusche.de> - 2022-05-13 16:50 +0200
              Re: macchanger - is it still working? David Wright <deblis@lionunicorn.co.uk> - 2022-05-13 17:20 +0200

csiph-web