Skip to content

Interface names must start with tun or tap on BSD and Darwin #4049

Open
@mbUSC

Description

@mbUSC

Brief description

The tun interfaces on my Mac are all named "utun0", "utun1", etc.
How can I make scapy work with that?

Scapy version

2.5

Python version

3.10

Operating system

MacOS Ventura

Additional environment information

No response

How to reproduce

from scapy.layers.tuntap import TunTapInterface

if __name__ == "__main__":
    t = TunTapInterface("utun3", mode_tun=True)

Actual result

ValueError: Interface names must start with tun or tap on BSD and Darwin

Expected result

No error

Related resources

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions