RsInetd

Build Status GitHub license

A port proxy, replacement of rinetd. Because async-std use epoll rather than select, RsInetd may handle higher throughput than rinetd.

Install

bash 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.

Open order on unix

  1. /etc/rsinetd.conf
  2. ./rsinetd.conf
  3. /etc/rinetd.conf
  4. ./rinetd.conf

Open order on non-unix

  1. ./rsinetd.conf
  2. ./rinetd.conf

Current version we have only implemented socket to socket proxy, dns resolve haven't been implemented yet. For detail command line options, execute rsinetd -h.

``` rsinetd 0.1.1 劉安 liuan@sgcc.com.cn 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 read configuration from FILE ```

Example of /etc/rsinetd.conf

:: 9999 192.168.1.1 80

With this configuration file, rsinetd will listen on [::]:9999 and forward the port access to 192.168.1.1:80.