Skip to content

Local Environment

Requirements

  • Rust Toolchain
  • Valkey or compatible KV datastore
  • mkdocs dependencies (see docs/requirements.txt)

Running IXpect

$ cargo build && doas ./target/debug/ixpect --interface 2
  • IXpect requires CAP_NET_RAW and CAP_NET_ADMIN capabilities(7) to capture packets using BPF
  • the interface parameter represents the interface index which is located before the interface name in ip address:
    $ ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host noprefixroute
           valid_lft forever preferred_lft forever
    

Executing Tests

$ cargo test