2026-03-23 14:28:00 +01:00
2026-03-23 11:31:21 +01:00
2023-11-13 17:01:25 +01:00
2024-03-20 14:58:31 +01:00

UdpSocketServer

This program listen on an ip for UDP message and print them. You can configure it to forward a message from an address to another, or blacklist a list of address.

Build

Use this command

cargo build

Or for a release version

cargo build --release

Run

Use this command, it will compile the source code to an executable

cargo run

Installation

Go to release and download the .exe file, then run it. A version for linux will be available soon.

Configuration

You have a config.json file, like this:

{
  "serverAddr": "127.0.0.1:12345",
  "forwarding": [
    {
      "from": "127.0.0.1:58545",
      "to": "127.0.0.1:12346",
      "doReverse": true
    }
  ],
  "blacklist": [
    "127.0.0.1:11111",
    "127.0.0.1:55527"
  ]
}

The serverAddr field is for the address of the server. The blacklist field is simple: all addresses written are ignored by the server. The forwarding field is a list of object indicating that if the server receive a message from the address at "from" field it should send it back to "to" address. The doReverse field, if set to true, will permit that when we a message from "to" address, it is sent to "from" address.

Authors

Namularbre

Description
No description provided
Readme 69 KiB
Languages
Rust 100%