Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipstick
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipstick
Commits
e94ebad5
Commit
e94ebad5
authored
3 years ago
by
Richard Zameitat
Browse files
Options
Downloads
Patches
Plain Diff
mask non-vendor part of mac adresses in LIPNSA
parent
73748bed
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
preseed/lipnsa.hook.sh
+5
-2
5 additions, 2 deletions
preseed/lipnsa.hook.sh
with
5 additions
and
2 deletions
preseed/lipnsa.hook.sh
+
5
−
2
View file @
e94ebad5
...
...
@@ -153,7 +153,10 @@ else
log_success_msg
"> saved architecture"
fi
ip
link
>
"
${
DIR
}
/ip-link"
2>&1
# regexp replaces the last half of MAC adresses with :xx:xx:xx
# -> we still get the OUI and should be able to infer vendor stats, without saving
# the NIC specific part (that could be misused for identification/spoofing)
ip
link
|
sed
's/^\( *link\/[^ ]* \)\([0-9a-fA-F:]*\)\(:[0-9a-fA-F:]\{8\}\)\( .*\)/\1\2:xx:xx:xx\4/'
>
"
${
DIR
}
/ip-link"
2>&1
if
[
$?
!=
0
]
;
then
log_failure_msg
"> could not save ip devices"
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment