Tools - rinetd - port forwarding/redirection
来源:互联网 发布:淘宝如何看自己的等级 编辑:程序博客网 时间:2024/05/19 07:43
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 rinetdReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: libafpclient0 libcrypt-passwdmd5-perlUse 'apt-get autoremove' to remove them.The following NEW packages will be installed: rinetd0 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 overridesinsserv: warning: script 'dnsmasq' missing LSB tags and overridesStarting 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 connectport0.0.0.0 8080 127.0.0.1 80# logging informationlogfile /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
- Tools - rinetd - port forwarding/redirection
- port forwarding
- Port Forwarding & Port Triggering
- Port Forwarding & Port Triggering
- NAT&Port Forwarding&Port Triggering
- SSH Port Forwarding
- What is Port Forwarding?
- ssh port forwarding
- What is Port-Forwarding ?
- iptables remote port forwarding
- ssh端口转发(port forwarding)
- Configure port forwarding with NAT
- Netsh Port Forwarding in Windows
- 使用port forwarding 连接 TimesTen
- NAT技术中的Port Forwarding & Port Triggering
- rinetd
- VirtualBox NAT Port Forwarding Settings(Windows XP)
- Windows 2008 端口代理 转发 Port forwarding
- Ubuntu安装OracleJDK
- 高性能、高流量互联网应用架构设计实战原则
- 【MVC学习】【01】【MVC简介】MVC架构模式分析与设计
- 嵌入式文件系统之UBIFS移植
- Design Pattern Explained 读书笔记二——设计模式序言
- Tools - rinetd - port forwarding/redirection
- Xcode左侧工程下文件为灰色
- Ubuntu安装VSCode
- 在CMD下用java命令出现“找不到或无法加载主类”的问题
- 嵌入式Linux 挂载完根文件系统后,自动执行的文件分析
- UBI系统原理分析
- Ruby Profiler详解之stackprof
- iOS:hidesBottomBarWhenPushed的正确用法
- Leetcode 之 Jump Game