5 releases
0.2.2 | Oct 13, 2020 |
---|---|
0.2.1 | Oct 12, 2020 |
0.2.0 | Oct 12, 2020 |
0.1.1 | Oct 12, 2020 |
0.1.0 | Oct 12, 2020 |
#12 in #higher
24 downloads per month
24KB
279 lines
RsInetd
A port proxy, replacement of rinetd. Because async-std use epoll rather than select, RsInetd may handle higher throughput than rinetd.
Install
cargo install rsinetd
How to use
Usage of RsInetd is similiar to rinetd. We'll try to open the default configuration file in the following order.
Default conf's open order on unix
/etc/rsinetd.conf
./rsinetd.conf
/etc/rinetd.conf
./rinetd.conf
Default conf's open order on non-unix
./rsinetd.conf
./rinetd.conf
command line options
$ 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
Example of /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
Dependencies
~9–21MB
~249K SLoC