Use the tool called “socat”, it is great tool for such things and it is already packaged
in many linux distribution. Read about it here : http://www.dest-unreach.org/socat/doc/README
Port forwarding example with socat :
socat TCP4-LISTEN:80,fork TCP4:www.yourdomain.org:8080
This redirect all TCP connections on port 80 to www.yourdomain.org port 8080 TCP.
Related Contents:
- How can I port forward with iptables?
- How to do the port forwarding from one ip to another ip in same network?
- iptables port redirect not working for localhost
- How to forward port 80 to another port on the samemachine?
- Forward SSH through SSH tunnel
- Can I use ufw to setup a port forward?
- Why can’t I access my CouchDB instance externally on Ubuntu 9.04 server?
- What does “opt” mean (as in the “opt” directory)? Is it an abbreviation? [closed]
- How to write multiple line string using Bash with variables?
- How to generate a core dump in Linux on a segmentation fault?
- How to create a hex dump of file containing only the hex characters without spaces in bash?
- How to merge images in command line? [closed]
- How to substitute shell variables in complex text files
- Recursively find files with a specific extension
- How can I sort du -h output by size
- What exactly do the colors in htop status bars mean?
- Showing total progress in rsync: is it possible?
- Why is “chmod -R 777 /” destructive?
- Environment variables of a running process on Unix?
- Meaning of the buffers/cache line in the output of free
- How to cd into a directory with this name “-2” (starting with the hyphen)?
- how to disable SSH login with password for some users?
- Unusually high dentry cache usage
- How to enable PowerTools repository in CentOS 8?
- Readahead Settings for LVM, Device-Mapper, Software Raid and Block Devices – what wins?
- Why su to root instead of logging in as root?
- How To Backup “crontab -e” Files?
- How to set the preferred network interface in linux
- What does %st mean in top?
- Is it possible to influence the way CPUs are enumerated under Linux?
- How to create a symbolic link without using ln?
- How to track superuser activities
- how to use du to see files greater than a threshold size
- Best way to prevent the root system filling up when a mount fails?
- When would ssh -t not be appropriate instead of ssh?
- Linux hard drive serial number as non-root
- How to ‘re-balance’ data in zfs? (Make sure the data is spread amongst all striped mirrors)
- Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?
- rsync –iconv option on Mac not working (sync from remote Linux server to local Mac)
- What creates CPU I/O wait but no disk operations?
- How to properly shutdown or reboot a Unix/Linux server
- Difference between PID and TID
- How do I setup Public-Key Authentication? [closed]
- How to fix “[SEVERE]: bind() failed: Cannot assign requested address (99)” while starting chromedriver
- “Unexplainable” core dump
- Set max_execution_time in PHP CLI
- Bash capturing output of awk into array
- Deleting a folder from svn repository
- How to send list of file in a folder to a txt file in Linux
- svn over HTTP proxy [closed]