public network is routed, so the host to access the intranet network server, you have to go through NAT.Public addresses are globally unique and can be routed on the public web. intranet host with private address in the intranet can communicate with other intranet host without error, but it can not directly use the pr
External Network access intranet database-p2p penetrationIntranet database after deployment, such as local (dynamic) public IP, you can use nat123 dynamic Domain name resolution, real-time domain name resolution to the local public network IP, fixed domain name, thus through the domain name access, connected to the corresponding database application.
such as the intranet without public IP, to achieve exte
First, explain the concept of "intranet" and "Extranet":
Intranet: That is to say the LAN, such as the school's local area network, the local area network each computer IP address in this local area network has the mutual opposite sex, is not repeatable. But the intranet IP in two LAN can have the same.
The existing server can access both inside and outside the network, can also be accessed by the extranet, binding the domain name. Intranet has a Web site to allow users to access the network (assuming the user killed without a VPN), as follows.
Intranet site address such ashttp://192.168.1.2/index.phpWhen an extranet
Os_name =NULL;/** * Query the local network IP site * * Private Static FinalString Getwebip ="Http://www.ip138.com/ip2city.asp";/** * Default value * / Private StaticString IP ="Unknown";Static{System.out.println ("Initialize get system name ..."); Os_name = System.getproperty ("Os.name"); } Public StaticStringGetIP(intQueryflag) {if(Queryflag = =1) {//Query extranet IP Switch(Iputils.getostype ()) { Case 1: IP = Iputils.getwinouteri
ObjectiveIn Windows Form application for the IP address has intranet, extranet two IP address, if only need to obtain the intranet IP address, can be obtained through the use of the Iphostentry category, the external network must be sent A Request to a website that can obtain the IP address and then analyze the content of Response, the site can do it yourself or
the previous question, if A and B LAN IP is the same (192.168.31.11), when they also visit the Baidu server, Baidu server How to distinguish which is a, which is B?Port MappingsNext, let's introduce what is port mapping?Port mapping is a kind of NAT, which maps a port of the IP address of the extranet host to a machine in the intranet and provides the corresponding service. When the user accesses this port
Scene:Physical machine extranet for IP a virtual machine NAT Intranet IP B now wants to access the virtual machine with the intranet IP B through IP a. Principle: The Web server uses port 80, so just do a 80-port mapping. SSH default port is 22, also need to do mapping to SSH login.Both are based on the TCP protocol.First look at the virtual machine's
There are two of Ali's services, one A has assigned an extranet IP, and the other B does not, how to let B with a to achieve the Internet?Handled as followsOn Server AIP tunnel Add i2o mode IPIP remote B local A---here A, B are intranet addressesIfconfig i2o 192.168.2.1 netmask 255.255.255.0On the B serverIP tunnel Add i2o mode Ipip remote a local B---here both A and B are
access to the extranet. As shown in the figure:
So how do you prevent users from modifying IP or MAC addresses? Simply check the interface of "white list IP address changes automatically quarantine", "White list MAC address change automatic isolation" can be. Once discovered that the local area network computer modifies the IP address or modifies the MAC address to automatically isolate it, after the isolation cannot access the
PHP has no way to access the IP from the intranet via the extranet mapping
This is the case, the server intranet address is: 192.168.28.154,php code and MySQL database are here.
Then PHP needs to link to the database, so it's written in the PHP code:
$dbhost = "192.168.28.154";
...
mysql_connect ("localhost",
...
Now, you may be the PHP code with the MySQL da
The first description of our configuration file, are similar format, if the intranet is 192.168.0.3, the extranet is 123.123.123.123, the configuration file is as follows:
$db [' salver '] [' hostname '] = ' 192.168.0.3:3306 ';$db [' salver '] [' hostname '] = ' 123.123.123.123:3306 ';
This time is the external network is the state of the annotation. Walk is the intranet.The next idea, is a configuration
This is the case, the server intranet address is: 192.168.28.154,php code and MySQL database are here.
Then PHP needs to link to the database, so it's written in the PHP code:
$dbhost = "192.168.28.154";
...
mysql_connect ("localhost",
...
Now, you may be the PHP code with the MySQL database to deploy to other servers, but I hope that the PHP code can not be modified, then, how to get the current deployment code in PHP server IP address?
Note: A
from inside, after the Dnat conversion, the target IP is rewritten into the IP address of the intranet, such as 172.16.10.254, and the IP of the requesting machine is 172.16.10.100, the packet is successfully redirected by the gateway 172.16.10.1 to the 172.16.10.254 service port, and then 192.16.10.254 sends a response to the destination IP address based on the request, which is 172.16.10.100, however, The problem arises because the 172.16.10.100 re
The feature is used for the extranet client to connect to the intranet of MySQL, which installs the tool on the staging server. software version mysql-proxy-0.8.1-linux-rhel5-x86-64bit.tar.gz simple configuration process after decompression there are 5 directories bin include Lib Libexec share into the bin directory, View Mysql_proxy use Help [[email protected] bin]#./mysql-proxy--help-allusage:mysql-proxy
In the TCP socket development process, you want the extranet client to map to a locally-initiated TCP server, summarizing the local TCP port mapping extranet method:1, open Ngrok after registered users, URL ngrok:https://www.ngrok.cc/2, add a tunnel, select the free version can be. Specific ways to add: https://www.sunnyos.com/article-show-70.html3. Start Ngrok Tunnel: Ngrok Reference: https://www.sunnyos.c
Solve the method of letting extranet users access intranet Web server in case of using Nat/ics.
For an additional feature inside ICS, the operation is fairly straightforward and can be perfected if NAT (network address translation) or ICS (Internet Connection Sharing) is already in place.
First, the use of NAT
1, open Routing and Remote Access MMC;
2, assuming your server name is myserver, Nat enabled c
R1 and R2 for the company intranet, R3 for the extranet, R1 and R2 configuration eigrp, in R2 and R3 configuration of the default route, the experiment is to use four methods to achieve R1 and R2 intranet can access the extranet R3.
1. Experiment topology:
2. Configure each router to connect the IP address of the i
function, then the LAN port to do the configuration on it, after this operation, traffic is led to the Web server, that is, the second picture in the article shows the flow process, At this point, the reason for the failure is that the Web server responds directly to the request of the client, if the reply data of the Web server is passed through the firewall again, and the Dnat map restore operation can be done, we configure the LAN port Snat to implement, the configuration is as follows (othe
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.