Crates.io | rsinetd |
lib.rs | rsinetd |
version | 0.2.2 |
source | src |
created_at | 2020-10-12 13:25:47.024285 |
updated_at | 2020-10-13 03:21:37.713908 |
description | A port proxy, replacement of rinetd. Because async-std use epoll rather than select, RsInetd may handle higher throughput than rinetd. |
homepage | https://github.com/SuperHacker-liuan/rsinetd |
repository | https://github.com/SuperHacker-liuan/rsinetd |
max_upload_size | |
id | 298719 |
size | 69,102 |
A port proxy, replacement of rinetd. Because async-std use epoll rather than select, RsInetd may handle higher throughput than rinetd.
cargo install rsinetd
Usage of RsInetd is similiar to rinetd. We'll try to open the default configuration file in the following order.
/etc/rsinetd.conf
./rsinetd.conf
/etc/rinetd.conf
./rinetd.conf
./rsinetd.conf
./rinetd.conf
$ rsinetd -h
rsinetd 0.2.0
A port proxy, replacement of rinetd. Because async-std use epoll rather than select, RsInetd may handle higher
throughput than rinetd.
USAGE:
rsinetd [FLAGS] [OPTIONS]
FLAGS:
-f, --foreground do not run in the background
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-c, --conf-file <FILE> read configuration from FILE
/etc/rsinetd.conf
:: 80 crates.io 80
0.0.0.0 443 crates.io 443
With this configuration file, rsinetd will listen on [::]:80
and forward the
port access to crates.io:80
, at the same time listenon 0.0.0.0:443
and forward the port access to crates.io:443