关闭

Tools - rinetd - port forwarding/redirection

585人阅读 评论(0) 收藏 举报
分类:

Install rinetd

Port forwarding/redirection is the simplest traffic manipulation technique we will examine. It involves accepting traffic on a given IP address and port and then simply redirecting it to a different IP address and port . A simple port-forwarding tool such as rinetd is convenient and easy to configure.

root:~ /# apt-get install rinetd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libafpclient0 libcrypt-passwdmd5-perl
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  rinetd
0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
Need to get 22.9 kB of archives.
After this operation, 143 kB of additional disk space will be used.
Get:1 http://repo.kali.org/kali/ kali/main rinetd i386 0.62-5.1 [22.9 kB]
Fetched 22.9 kB in 1s (18.4 kB/s)
Selecting previously unselected package rinetd.
(Reading database ... 356615 files and directories currently installed.)
Unpacking rinetd (from .../rinetd_0.62-5.1_i386.deb) ...
Processing triggers for man-db ...
Setting up rinetd (0.62-5.1) ...
update-rc.d: We have no instructions for the rinetd init script.
update-rc.d: It looks like a non-network service, we enable it.
insserv: warning: script 'redis' missing LSB tags and overrides
insserv: warning: script 'dnsmasq' missing LSB tags and overrides
Starting internet redirection server: rinetd.

rinetd service

root:~ /# service rinetd restart 
Stopping internet redirection server: rinetd.
Starting internet redirection server: rinetd.

Configuration file

root:~ /# cat /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.168.2.*
# 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  8080  127.0.0.1 80

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

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

You can connect to port 8080, and traffic will be redirected to port 80.

0
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

SSH的端口转发:本地转发Local Forward和远程转发Remote Forward

http://zhumeng8337797.blog.163.com/blog/static/100768914201172125444948/ 实战 SSH 端口转发 https://www.ibm.com/developerworks/cn/linux/l-cn-sshf...
  • a351945755
  • a351945755
  • 2014-03-22 11:23
  • 46774

scp port forwarding的完整解决方案

场景: 目标: 利用scp将远程主机SERVER2上的某文件FILE拉至本地主机SERVER1上, 脚本为 #!/bin/bash scp user2@SERVER2:/PATH_OF_FILE  . 限制: 由于安全因素,SERVER2和SERVER1之间不能建立连接。另...
  • linzhiqi07
  • linzhiqi07
  • 2013-01-09 05:07
  • 550

Centos7下Rinetd安装与应用

引言   小编公司都是基于阿里云服务器开发的,一些基本的服务像redis、mysql等等都是直接使用的阿里的服务,但是今天测试环境突然不能使用了,在跟踪日志的时候发现是redis不能正常连接了,我们都知道阿里的redis是内网服务的,我们是不能直接连接redis,所以我们用ecs...
  • u013045437
  • u013045437
  • 2017-11-02 00:22
  • 545

如何设置OpenShift的端口转发(Port Forwarding)

如何设置OpenShift的端口转发(Port Forwarding) 2012 年 8 月 14 日nswish原帖地址http://www.jiani.info/2012/08/%E5%A6%82%E4%BD%95%E8%AE%BE%E7%BD%AEopenshift%E7%9A%84%E...
  • spaceship20008
  • spaceship20008
  • 2013-03-10 01:21
  • 1535

OpenSSH高级功能之端口转发(Port Forwarding)

在RedHat提供的系统管理员指南中提到OpenSSH不止是一个安全shell,它还具有X11转发(X11 Forwarding)和端口转发(Port Forwarding)的功能。X11功能一般用于通过ssh连接到服务器端的图形界面,像远程桌面一样使用Linux服务器主机,客户端只要能访问服务器端...
  • foreverfriends
  • foreverfriends
  • 2017-04-18 14:08
  • 211

【阿里云】 ECS Linux 云服务器中安装 rinetd 进行转发实现本地通过公网访问云数据库 Redis

转载请注明出处:http://blog.csdn.net/qq_26525215 本文源自【大学之旅_谙忆的博客】 今天在阿里云买了一个月的云数据库Redis试试水,一开始因为我选择的云数据库Redis是经典网络,所以搭建好之后,设置键值对会超时。 (注意ECS服务器和Redis数据库在一个地区!...
  • qq_26525215
  • qq_26525215
  • 2017-03-20 23:07
  • 2242

WebRTC第四步:depot_tools 配置

windows 参考文章:http://blog.csdn.net/wpc320/article/details/44918321 下载: 注意:解压的时候解压到xx文件夹,免得弄得当前文件夹一身臊 1.下载地址: https://storage.googleapis.com/chrom...
  • cabbage2008
  • cabbage2008
  • 2016-10-14 15:10
  • 3960

centos在安装配置redmine

为了在centos在安装redmine,最近在网上找各种资料,为了加深记忆将安装过程保存下来, 第一步、安装相关软件的环境依赖yum -y install zip unzip libyaml-devel zlib-devel curl-devel openssl-devel httpd-devel...
  • w13295350321
  • w13295350321
  • 2016-03-23 22:58
  • 170

SDN控制器Floodlight源码学习(八)--转发模块(Forwarding)

很久没更新了,今天来学习下Forwarding模块,先看看官网上对这个模块的说明: Description Forwarding will forward packets between two devices. The source and destination devices wil...
  • crystonesc
  • crystonesc
  • 2017-08-04 14:19
  • 222

最近工作里遇到的一些问题,记录下来

最近在工作里,遇到了几个问题,记录下来 1、首先是转发程序rinetd 下载安装: wget http://www.boutell.com/rinetd/http/rinetd.tar.gz tar -zxvf rinetd.tar.gz make make install ...
  • eeeeelin
  • eeeeelin
  • 2016-05-13 11:36
  • 1066
    安全书籍