Redirecting TCP ports with redir
To redirect TCP connections with redir utility, Simply type the
command such as below
redir --laddr=<listen_address> --lport=<listen_port> --caddr=<connect_address> --cport=<connect_port>
Suppose that the ip address of our system is 60.50.40.31 and we woud like to connect to 64.64.64.64 ip address and 3120 port over our system. Simply, we want redir utiliy to redirect connections coming to 60.50.40.31 on port 3120 to 64.64.64.64 port 3120. We have to run redir such as below to do so:
redir --laddr=60.50.40.31 --lport=3120 --caddr=64.64.64.64 --cport=3120
Local address specified with --laddr should be one of the ip addresses that we can access our redirecting system. Setting other ip addresses will make no sense. We can set various combinations using the parameters such as we can set local listening port to 80 and remote connect port to 3120 to make clients connect to 80 istead of 3120.
- 0 Comment
- Halil Demirezen
- 31 Jul 2008, 15:49
-
You must be login first or sign-up for an account to post comments.
USERBOX
CATEGORIES
MOST READ TODAY
- XFS Filesystem has duplicate UUID problem
- Fast process lookup and signaling
- Improving ext3 filesystem performance with directory indexing
- dropbear rsa key problem
- Java Runtime Environment on Mozilla Firefox
- How to extract a deb package without installing
- Superblock backups for ext2 and ext3 partitions
- Viewing specific message in exim mail queue
- Improving file system performance with noatime
- Enable syntax highlighting and colors in vim
LAST ADDED
- Auto directory spelling corrections
- Disabling emacs splash screen
- Getting a nice SELinux audit report
- Learning all of the available system calls
- Find out if a command is aliased to another command
- Fast process lookup and signaling
- Syntax highlighting in less
- Restricting root logins
- Improving file system performance with noatime
- Enabling laptops special keys under KDE
