Skip to content

Instantly share code, notes, and snippets.

@awidegreen
Created July 16, 2013 13:21
Show Gist options
  • Save awidegreen/6008629 to your computer and use it in GitHub Desktop.
Save awidegreen/6008629 to your computer and use it in GitHub Desktop.
systemd service for promiscuous mode. On archlinux, store it under /etc/systemd/system/[email protected] enable it with: systemctl enable [email protected] Difference between file from archwiki: add "After" and changed path from "/usr/sbin/ip" to "/usr/bin/ip" since every executable is now located there
[Unit]
Description=Set %i interface in promiscuous mode
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set dev %i promisc on
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment