Skip to main content

RARP server that responds to RARP requests with a configured MAC-to-IP mapping

Project description

rarpy

RARP server implemented in Python that responds to RARP requests with a configured MAC-to-IP mapping.

Installation

pip install rarpy

Usage

The server is started via the rarpy executable whose usage in the command line can be accessed via rarpy --help. Sudo must be used when running rarpy so the server has the permissions to work with the network interfaces.

The network interface that the server listens to must be specified, for example:

sudo rarpd en0

starts a server listening on interface en0.

The MAC-to-IP mapping can be configured via the command line with the --mapping (-m) option:

sudo rarpy -m 02:0d:db:a1:15:10 192.168.10.201 en0

and multiple mappings can be specified if desired:

sudo rarpy -m 02:0d:db:a1:15:10 192.168.10.201 -m 02:0d:db:a1:15:11 192.168.10.201 en0

Mappings can be also be configured in a file structured like:

02:0d:db:a1:15:10 192.168.10.201
02:0d:db:a1:15:11 192.168.10.201

and then picked up by rarpy with the --mapping-file (-f) option:

sudo rarpy -f /path/to/mapping/file en0

Mappings from a file and command line can be used simultaneously, and where there are conflicts, the command line mapping overrides the file.

If no --mapping-file is specified, rarpy will look to see if /etc/ethers exists (default file from older RARP daemon tools), and if it does, it will use that file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rarpy-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rarpy-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file rarpy-0.1.2.tar.gz.

File metadata

  • Download URL: rarpy-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rarpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 717204403fb1fb253d893f927fb5c8c1d426ad025cfc95ddb77100dd43d3eb82
MD5 67a4fa0e982dc8ceb899036dba01247a
BLAKE2b-256 e5edc385bee2aa01f822bad2fb45a7a2d813a16d4dc5c0586b80e08b0b15c1a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for rarpy-0.1.2.tar.gz:

Publisher: publish-to-pypi.yml on Charlotte-Knight/rarpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rarpy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rarpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rarpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98bb7c38c74c09bc3592d0c70f3fcf52cb85d80a33d3faf70567865f6fbb1b6b
MD5 33ed407822c767c5965a3ea037fbfaef
BLAKE2b-256 b4104dd5dd25356ea118e980fbae9a78b2ca8bc1bc347ecba7927466c65eabb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for rarpy-0.1.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Charlotte-Knight/rarpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page