This article for everyone to share is the Node.js port forwarding implementation code for your reference, the specific contents are as follows
#!/sbin/node var net = require (' net ');
function ProxyPort (srcport,destserver,destport) {var server = Net.createserver (function (c) {//' connection ' listener
C.on (' End ', function () {console.log (' src disconnected ');
}); var client =
Iptables and network segment port forwarding Environment Description: You need to submit all packets accessing port 80 of the 192.168.1.20 host to 192.168.1.31 host for processing. Therefore, you need to perform the following operations on the host 192.168.1.20: 1. enable the routing forwarding function 1 echo "1">/pro
The following code, which runs under Windows, can speak 172.20.53.1 14941 ports forward to 172.20.53.2 3389 ports
Copy Code code as follows:
netsh interface ipv6 install
netsh interface portproxy add v4tov4 listenaddress=172.20.53.1 listenport=14941 connectaddress=172.20.53.2 connectport =3389
If you want to cancel the port forwarding above, use the following code
Copy Code code as
1. Using the Netsh implementation of WindowsAdvantages:(1) Simple deployment. Windows comes with support for IPV4 and IPV6(2) Do not restart the machine, but also a long memory. The command takes effect immediately, and the configuration still exists after rebooting the system.Disadvantages:(1) UDP not supported(2) xp/2003 need to install the ipv6,win7 above the system to bring their own.Execute command:(1) Installation environment support (can not be performed if IPV6 is already installed)netsh
cannot be received by machine C, the switch should have a forwarding list (CAM). The AMC table is used to establish the correspondence between the MAC address and the port. A port can correspond to many MAC addresses, (It seems that only one can be created under 802.1x.) it seems that there is no problem. The problem is that Cam is dynamically updated in real ti
1. Connect to the public network (ip:port) Username and password using Xshell2. Add a transfer rule here3. Right click Add (select SOCKS4/5 protocol port to fill in the port you need to forward)3. Connect to the intranet as before (Ip:port) However, the agent is required here4. Add a proxy portUpload files can be used (XFTP) or according to the RZ commandLiunx public network jump to the intranet (do
) #endr1#%sys-5-config_i:configured from console by consoleR1#wBuilding configuration ...[OK]r1#The red ones are the most important commands in this section and commands to understand.After configuring the router we will use the external network of the PC to test can be displayed because we are talking about the intranet address map to the outside network, so we in the external network of the PC access needs to input is the map of the external network of IP Access results display of course, can
Because only one server (win2003 server) needs to run ASP programs and PHP applications on the server, and does not want to use IIS to run PHP applications.In addition, if you do not want to run ASP programs on Apache, you need a solution for coexistence of Apache and IIS.
IIS is the built-in iis6.0 of Windows2003 server.
Apache is apache2.2.8.
First, download and install Apache
Then, stop the automatically started IIS server and modify the IIS port t
Allow Internet access to intranet port forwarding
With a vro, PPPOE is connected to the network, and then configured.
Connect the computer to the wireless network of the router and enter the Intranet IP address 192.168.8.1
Then go to the interface and find the IP address obtained by the wan port of the router after the dial-up is successful.
Then find the I
1, into the following directory
The code is as follows
Copy Code
/etc/vmware/vmnet8/nat/nat.conf
Edit this file, at the end of the file you can see:
The code is as follows
Copy Code
[INCOMINGTCP]# Use these and care-anyone can enter into your VM through ...# The format and example are as follows:##8080 = 172.16.3.128:80[INCOMINGUDP]# UDP Port Forw
This is a creation in
Article, where the information may have evolved or changed.
Beginner go, write a port forwarding tool. Very handy gadget, hope to learn the go language for everyone to help.
```
Packagemain
Import
"FMT"
"IO"
"NET"
"Sync"
)
Varlocksync. Mutex
Vartruelist[]string
Varipstring
Varliststring
Funcmain () {
ip= "0.0.0.0:888"
Server ()
}
Funcserver () {
Fmt. Printf ("listening%s", IP)
Lis,err:
This article is from the "Township had sex ren" blog, please be sure to keep this source http://shaowu.blog.51cto.com/627407/514909Project team colleagues need to forward SQL requests to another server, so this feature is implemented through Iptables [[Emailprotected]1 ~]# echo 1 > Proc/sys/net/ipv4/ip_forward[[email protected] -1 ~]# iptables-t nat-a prerouting-d 192.168 . 18.19 -P TCP--dport 1521 -j DNAT--to 192.168 . 4.74 : 1521 [[emailprotected] -1 ~]# iptables -T nat-a postrouting-d 1
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.