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.

License

Installation

Sudo must be used when installing and running rarpy so that it can access the network interfaces.

sudo pip install rarpy

Usage

The server is started via the rarpy executable whose usage in the command line can be accessed via sudo rarpy --help.

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.3.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.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rarpy-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0855572e35bb2049cccd1beb4aa56453a8a576109a18d50b5e3f7c4ff1d34fb7
MD5 3c1cdec900817cedf74a65395883f777
BLAKE2b-256 321dff470dd0cf545b8cdbce3aeb2f7f8076f8d15dc23cd6fd4456c119884df0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rarpy-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: rarpy-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0301b63070097b7a27c216f560f67d0beedc1f298817264e8c1c6adeb4b02ff3
MD5 628dc7ea855d65671afe20ba0446de28
BLAKE2b-256 f334d87481f1f73063c8e45602ecfa97f1a12e98e7e5a520cbcc4e3684f58774

See more details on using hashes here.

Provenance

The following attestation bundles were made for rarpy-0.1.3-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