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)
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.