Use virtual machines to implement port forwarding and virtual machine port forwarding

Source: Internet
Author: User
Tags kali linux

Use virtual machines to implement port forwarding and virtual machine port forwarding

1. application scenarios

  • Break through the Internet restrictions (for example, restrict access to external networks within the company, but open some ports, you can use some open ports to achieve port redirection)
  • Remote Desktop redirection
  • NC redirection to get Shell

2. experiment environment

  • Virtualbox Virtual Machine
  • Windows XP (as a firewall subnet client, Host-Only, ip: 1.1.1.10)
  • Firewall (two virtual network cards, one connected to the physical network using the bridge, one using the Host-Only, ip: 1.1.1.1)
  • Kali Linux (install rinetd as a traffic forwarding station, bridge network, ip: 192.168.43.164)
  • Windows 2003 (as Server, bridging network, ip: 192.168.43.149)

3. Experiment Process

  • Configure fire prevention policies

Enter the IP address http: // 1.1.1.1 In the XP browser to manage the firewall and set the firewall rule to only port 53 for communication.

  • Install and configure rinetd on the card (use the rinetd command to manually enable rinetd before use, and pkill rientd to end the process at the end)

Installation command: apt-get install rinetd

Configuration: Open the configuration file/etc/rinetd. conf and find # bindadress bindport connectaddress connectport. Set these four parameters to use rinetd.

Bindadress: Bind Address (here refers to the address of kali)

Bindport: bind Port

Connectaddress: the address to which traffic is forwarded (windows 2003)

Connectport (forwarding to port 80 beyond the Internet restrictions, and Remote Desktop to port 3389)

    

  • Access

Enter http: // 192.168.43.164: 53 in the address bar of XP Liu Anqi to access the Windows 2003 page.

    

  • Remote Desktop Management

Run the mstsc command on the XP Terminal to open the Remote Desktop Management Tool and enter 192.168.43.164: 53.

    

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.