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
- Remove all frozen messages from exim mail queue
- XFS Filesystem has duplicate UUID problem
- Passwordless sudo setup
- dropbear rsa key problem
- ssh X11 forwarding
- Calculating SHA Checksums
- Improving file system performance with noatime
- How to extract a deb package without installing
- Using lsof utility
- Scp resume
LAST ADDED
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary
- Evaluating expressions
- Using netstat
