Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#6523 - Dns search path and pre-up ifconfig in netcfg

Attached to Project: Arch Linux
Opened by Joel Kaasinen (opqdonut) - Sunday, 04 March 2007, 12:04 GMT
Last edited by James Rayner (iphitus) - Sunday, 01 April 2007, 07:54 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To James Rayner (iphitus)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The following patch adds two variables into net profiles: SEARCH defines a dns search path and PRE_IFOPTS defines an ifconfig command line to be run before bringing the interface up. Useful for example for setting the mac.
This task depends upon

Closed by  James Rayner (iphitus)
Sunday, 01 April 2007, 07:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in network scripts git
http://wiki.archlinux.org/index.php/Netw ork_Scripts
Comment by Joel Kaasinen (opqdonut) - Sunday, 04 March 2007, 12:09 GMT
err sorry the version is 0.8 not 0.7.2.... guess it applies to both anyways
Comment by Toni Spets (hifi) - Sunday, 04 March 2007, 12:17 GMT
Taking pre_ifopts further: dynamic MAC adresses.

MAC="ff:ff:ff:ff:ff:ff"
or as I would use it:
MAC="`/usr/local/bin/genmac`"

This would change the MAC address before bringing the interface up (as this patch does) BUT it would be much better if the original MAC is saved somewhere and restored again when bringing the interface down again.

I use this behavior with public hotspots to be more anonymous and to prevent MAC tracking.

So the script would do something like this:
-- get the MAC from interface and save somewhere --
ifconfig $ETH down # it's important that the interface is down before changing MAC or it will fail
ifconfig $ETH hw ether $MAC
-- continue bringing the interface up --

and when bringing it down:
-- get the MAC from saved location --
ifconfig $ETH down
ifconfig $ETH hw ether $ORIGMAC

Loading...