Ubuntu – Best way to Local PortForwarding.
1. Find out the name of ‘rinetd’ package.
#apt-cache search rinetd rinetd - Internet TCP redirection server socat - multipurpose relay for bidirectional data transfer
2. Install ‘rinetd’ Package.
#apt-get install rinetd
3. Configure Port-forward setting.
#vi /etc/rinetd.conf
ex)
1) Listen 10322 PORT.
2) Send All TCP packet to Local 22 PORT.
It is simple to configure.
#host port target target_port 0.0.0.0 10322 127.0.0.1 22
4. Adjust it.
#/etc/init.d/rinetd restart
로컬 포트포워딩 뿐만 아니라 리모트 포트포워딩도 됩니다.