Open the Promiscuous mode of interface

作者: shaneZhang 分类: 互联网技术 发布时间: 2022-02-24 08:59

Toggling promiscuous mode will make a (wireless) NIC forward all traffic it receives to the OS for further processing. This is opposite to “normal mode” where a NIC will drop frames it is not intended to receive. It is most often used for advanced network troubleshooting and packet sniffing.

sudo vim /etc/systemd/system/promiscuous@.service

[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

If you want to enable promiscuous mode on interface enp2s0 run enable promiscuous@enp2s0.service.

sudo systemctl enable promiscuous@enp2s0.service

https://wiki.archlinux.org/title/Network_configuration_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E6%9B%B4%E6%94%B9%E6%8E%A5%E5%8F%A3%E5%90%8D%E7%A7%B0

本页面支持繁体中文友好显示:Open the Promiscuous mode of interface

如果觉得我的文章对您有用,请随意打赏。如果有其他问题请联系博主QQ(909491009)或者下方留言!

发表回复

您的电子邮箱地址不会被公开。