Make a Port Redirector
May 28, 2018

#https://tutorials.ubuntu.com/tutorial/install-and-configure-samba#3

sudo apt-get install rinetd
# Configure
sudo vi /etc/rinetd.conf
#
# this is the configuration file for rinetd, the internet redirection server
#
# you may specify global allow and deny rules here
# only ip addresses are matched, hostnames cannot be specified here
# the wildcards you may use are * and ?
#
allow 192.*
# deny 192.168.2.1?


#
# forwarding rules come here
#
# you may specify allow and deny rules after a specific forwarding rule
# to apply to only that forwarding rule
#
# bindadress    bindport  connectaddress  connectport
0.0.0.0 1601 192.168.178.16 1601
# AFP
0.0.0.0 548 192.168.178.16 548
0.0.0.0 427 192.168.178.16 427

# logging information
logfile /var/log/rinetd.log

# uncomment the following line if you want web-server style logfile format
# logcommon