CN111865886A - IP address information configuration method, system, device and storage medium - Google Patents

IP address information configuration method, system, device and storage medium Download PDF

Info

Publication number
CN111865886A
CN111865886A CN201910364763.7A CN201910364763A CN111865886A CN 111865886 A CN111865886 A CN 111865886A CN 201910364763 A CN201910364763 A CN 201910364763A CN 111865886 A CN111865886 A CN 111865886A
Authority
CN
China
Prior art keywords
link
address
replaced
new
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910364763.7A
Other languages
Chinese (zh)
Inventor
黄赵伟
陈晓帆
古亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910364763.7A priority Critical patent/CN111865886A/en
Publication of CN111865886A publication Critical patent/CN111865886A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a system, a device and a storage medium for configuring IP address information.A link to be replaced with an IP address type different from that of a current target website is determined in the target website, a new link is created for the link to be replaced according to the IP address type of the current target website, the link to be replaced in the target website is replaced by the new link with the same IP address type as that of the current target website, and then a corresponding relation for determining the IP address of the link to be replaced according to the new link is created and stored locally. Therefore, when a user accesses a link quoted in a target website, the new link is guided to the intermediate device, the intermediate device finds the original IP address of the link to be replaced corresponding to the new link, the access request is forwarded to the IP address of the link to be replaced, the new link is the same as the IP address type of the target website, namely the IP address type of the user, and therefore the problem that the link quoted when the user accesses the target website has a skylight can be avoided.

Description

IP address information configuration method, system, device and storage medium
Technical Field
The present invention relates to IPv6 transition technology, and more particularly, to a method, system, apparatus, and computer-readable storage medium for configuring IP address information.
Background
IPv4(Internet Protocol version 4, fourth edition) is the first widely used Protocol that forms the basis of the Internet technology today. IPv4 may operate on a wide variety of underlying networks.
IPv6(Internet Protocol version 6, sixth version of the Internet Protocol) is the latest version of the Internet Protocol, and is used to replace IPv4, mainly to solve the problem of IPv4 address exhaustion.
At present, the IPv4 protocol address and the IPv6 protocol address cannot be directly intercommunicated, that is, the IPv4 address cannot be directly used to access the content corresponding to the IPv6 address, and vice versa. However, in the current network environment, although more and more users have upgraded the IP address to the IPv6 address, the number of users in IPv4 is also large, and thus, in the current situation where IPv4 and IPv6 coexist, a problem of many data accesses occurs.
The 'skylight' problem is that when a website contains links of other websites, the IP protocol of the website is the same as that of a user, but the IP protocol of the other websites contained in the website is different from that of the user, when the user visits the website, the content of the website can normally respond, but the content of the contained website responds very slowly, even part of functions cannot be used, and the like, so that a module which has no response locally appears in the whole page, and the module which cannot be displayed is similar to a 'skylight', which seriously affects the visiting and using of the website by the user.
Therefore, how to solve the skylight problem caused by the inability of the IPv4 protocol address to intercommunicate with the IPv6 protocol address is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an IP address information configuration method, a system, a device and a computer readable storage medium, which aim to solve the skylight problem caused by the incapability of intercommunication between an IPv4 protocol address and an IPv6 protocol address.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
an IP address information configuration method comprises the following steps:
determining links to be replaced in all links quoted by a target website, wherein the links to be replaced are links with different IP address types from the IP address type of the target website;
creating a new link for the link to be replaced, wherein the IP address of the new link is the IP address of the intermediate equipment, and the type of the IP address of the new link is the same as that of the IP address of the target website;
and determining the corresponding relation between the new link and the IP address of the link to be replaced, storing the corresponding relation to the local, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation after receiving an access request initiated to the new link in a target website, and forwarding the access request to the IP address of the link to be replaced.
Optionally, the determining a link to be replaced in all links referenced by the target website includes:
crawling all first links in a target website and second links in pages of all the first links by using a crawler technology;
and determining a link to be replaced, which has an IP address type different from that of the target website, in the first link and the second link.
Optionally, the determining a link to be replaced in all links referenced by the target website includes:
determining an external link in all links in a target website, wherein the external link is a link which does not belong to the same server as the target website;
and determining a link to be replaced, wherein the IP address type of the link is different from the IP address type of the target website, in the external link.
Optionally, all links referenced by the target website include links for jumping to other pages and/or picture resource links and/or JavaScript links.
Optionally, the creating a new link for the link to be replaced includes:
determining the IP address of the link to be replaced as the IP address to be mapped;
mapping a new IP address for the IP address to be mapped, and binding the new IP address with the intermediate equipment, wherein the new IP address is the IP address with the same type as the IP address of the target website;
Creating a link for the new IP address as a new link for the link to be replaced;
correspondingly, the determining the corresponding relationship between the new link and the IP address of the link to be replaced includes:
and determining the corresponding relation between the IP address to be mapped and the new IP address.
Optionally, the creating a new link for the link to be replaced includes:
determining an intermediate device IP address of the intermediate device and an intermediate device domain name corresponding to the intermediate device IP address;
combining the intermediate device domain name and the link to be replaced to obtain a new link; the intermediate device domain name is used as the domain name of the new link, and the link to be replaced is used as the resource of the intermediate device domain name;
correspondingly, the determining the corresponding relationship between the new link and the IP address of the link to be replaced includes:
and determining the corresponding relation between the link to be replaced and the IP address of the link to be replaced.
In order to achieve the above object, the present application further provides an IP address information configuration system, including:
the system comprises a to-be-replaced link determining module, a to-be-replaced link determining module and a to-be-replaced link determining module, wherein the to-be-replaced link is determined in all links quoted by a target website and is a link with an IP address type different from that of the target website;
A new link creating module, configured to create a new link for the link to be replaced, where an IP address of the new link is an IP address of the intermediate device, and the IP address type of the new link is the same as the IP address type of the target website;
and the corresponding relation determining module is used for determining the corresponding relation between the new link and the IP address of the link to be replaced, storing the corresponding relation to the local, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation after receiving an access request initiated to the new link in a target website, and forwarding the access request to the IP address of the link to be replaced.
Optionally, the to-be-replaced link determining module includes:
the link crawling unit is used for crawling all first links in a target website and second links in pages of all the first links by utilizing a crawler technology;
a first link to be replaced determining unit, configured to determine, from the first link and the second link, a link to be replaced whose IP address type is different from that of the target website.
Optionally, the to-be-replaced link determining module includes:
the external link determining unit is used for determining an external link in all links in a target website, wherein the external link is a link which does not belong to the same server as the target website;
And the second link to be replaced determining unit is used for determining a link to be replaced, the IP address type of which is different from that of the target website, in the external link.
Optionally, all links referenced by the target website include links for jumping to other pages and/or picture resource links and/or JavaScript links.
Optionally, the new link creating module includes:
the to-be-mapped IP address determining unit is used for determining the IP address of the to-be-replaced link as the to-be-mapped IP address;
a new IP address mapping unit, configured to map a new IP address for the IP address to be mapped, and bind the new IP address with the intermediate device, where the new IP address is an IP address of the same type as the IP address of the target website;
a new link creating unit, configured to create a link for the new IP address, as a new link of the to-be-replaced link;
correspondingly, the correspondence determining module is specifically configured to:
and determining the corresponding relation between the IP address to be mapped and the new IP address.
Optionally, the new link creating module includes:
an intermediate device domain name determining unit, configured to determine an intermediate device IP address of the intermediate device and an intermediate device domain name corresponding to the intermediate device IP address;
The combination unit is used for combining the domain name of the intermediate device with the link to be replaced to obtain a new link; the intermediate device domain name is used as the domain name of the new link, and the link to be replaced is used as the resource of the intermediate device domain name;
correspondingly, the correspondence determining module is specifically configured to:
and determining the corresponding relation between the link to be replaced and the IP address of the link to be replaced.
In order to achieve the above object, the present application further provides an IP address information configuration apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the IP address information configuration method according to any one of the above when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the IP address information configuration method according to any one of the above aspects.
Therefore, according to the IP address information configuration method provided by the application, the link to be replaced with the IP address type different from that of the current target website is determined in the target website, the new link is created for the link to be replaced according to the IP address type of the current target website, the link to be replaced in the target website is replaced by the new link with the IP address type same as that of the current target website, the corresponding relation used for determining the IP address of the link to be replaced according to the new link is created, and the corresponding relation is stored locally. Therefore, when a user accesses a link quoted in a target website, the link is guided to the intermediate device by the new link, the intermediate device finds the original IP address of the link to be replaced corresponding to the new link, and forwards the access request to the IP address of the link to be replaced, and the new link is the same as the IP address type of the target website, namely the IP address type of the user, so that the link quoted in the target website can not have a skylight problem when the user accesses the target website. The application also provides an IP address information configuration system, an IP address information configuration device and a computer readable storage medium, and the technical effects can be realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for configuring IP address information according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific IP address information configuration method disclosed in the embodiment of the present invention;
fig. 3 is a flowchart of a specific IP address information configuration method disclosed in the embodiment of the present invention;
fig. 4 is a flowchart of a specific IP address information configuration method disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an IP address information configuration system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an IP address information configuration apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a skylight problem caused by the fact that an IPv4 protocol address and an IPv6 protocol address cannot be communicated.
Referring to fig. 1, a method for configuring IP address information provided in an embodiment of the present invention specifically includes:
s101, determining links to be replaced in all links quoted by the target website, wherein the links to be replaced are links with different IP address types from those of the target website.
In the scheme, the target website is a website with a skylight problem, other links are introduced into the website, and the type of the IP address corresponding to the link is different from that of the target website.
Therefore, it is first necessary to determine a link with an IP address type different from that of the current target website in the target website, and such a link serves as a link to be replaced.
In the scheme, the method for determining the link to be replaced in the target website is not specifically limited, the link to be replaced can be determined manually, the link to be replaced is filled in the current intermediate equipment manually, and the target website can be crawled by using a crawler technology so as to obtain the link to be replaced.
S102, a new link is created for the link to be replaced, the IP address of the new link is the IP address of the intermediate equipment, and the type of the IP address of the new link is the same as that of the target website.
In the scheme, a new link needs to be created for the link to be replaced, so that the new link replaces the link to be replaced in the target website. Because the IP address corresponding to the new link is the IP address of the intermediate device, after the replacement, the access request of the link to be replaced originally is guided to the intermediate device by the new link, and because the IP address of the new link is the same as the IP address type of the target website and the IP address type of the target website is the same as that of the user, the problem of non-intercommunication does not occur in the new link for the reference of the target website when the user accesses the target website.
It should be noted that a link generally includes a domain name of a server to which the link belongs and a resource to be accessed, for example, a domain name of a server in the link www.a.com/index.html is a.com, and a resource to be accessed is index.html. The Domain Name in the link is resolved by a DNS (Domain Name System) to obtain the IP address corresponding to the server. The domain name in the new link corresponds to the intermediate device, and the resolved domain name corresponds to the IP address of the intermediate device. In the scheme, the link to be replaced in the target website is replaced by the new link, so that when the user accesses the link to be replaced, the clicked link is actually the new link, and the corresponding access request can be guided to the intermediate equipment.
After the new link is replaced into the target page, the specific access process of the user may be that, when the user accesses the new link, the user firstly queries a local DNS cache of the user or queries a DNS service to find an IP address of the intermediate device corresponding to the new link. It should be noted that, when the user can access the target website, it is indicated that the IP address type of the target website is the same as the IP address type of the user, and the IP address type corresponding to the new link in the present solution is the same as the IP address type of the target website, so the new link is also the same as the IP address type of the user, and therefore, the process of accessing the new link by the user is the same as the process of accessing a certain link by the user normally. When the user accesses the new link, the user searches the IP address corresponding to the new link, establishes a link with the IP address and sends an access request. This access request is actually the access request to the address to be replaced, just first directed to the intermediary by the new link.
S103, determining the corresponding relation between the new link and the IP address of the link to be replaced, storing the corresponding relation to the local, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation after receiving an access request initiated to the new link in a target website, and forwarding the access request to the IP address of the link to be replaced.
In the scheme, all the access requests for the links to be replaced in the target website are guided to the intermediate device, so that the access requests for the links to be replaced actually need to be completed by the intermediate device.
In order to ensure that the intermediate device can find the IP address of the link to be replaced corresponding to the new link when receiving the access request for the new link, and forward the access request to the IP address of the link to be replaced, a corresponding relationship between the new link and the IP address of the link to be replaced needs to be established in the application, the corresponding relationship is stored locally in the intermediate device, and the intermediate device can determine the corresponding IP address of the link to be replaced according to the new link by using the corresponding relationship.
It should be noted that, when actually receiving an access request initiated by a user for a new link, an intermediate device needs to receive the access request first, and an IP address type corresponding to an access request data packet at this time is a type corresponding to an IP address of the user, and due to a difference in IP address types, an IP address to be linked to be replaced cannot directly receive the access request data packet, and the intermediate device needs to disassemble and modify the access request data packet, modify the access request data packet into a data packet corresponding to the IP address type to be linked to be replaced, and then forward the data packet. The specific disassembly and modification operations are the same as the mutual conversion operations of the IPv4 and IPv6 data packets in the prior art, and the detailed description of the present invention will not be repeated.
It should be noted that, the scheme is applied to the intermediate device capable of forwarding the access request, and after the intermediate device is configured in the above manner, the intermediate device can be applied to realize forwarding of the access request, so as to solve the problem of "skylight", and in addition, the scheme can configure the intermediate device for any one target website without large-scale deployment, so that the configuration of the intermediate device is simpler and more flexible.
Therefore, according to the IP address information configuration method provided in the embodiment of the present application, a to-be-replaced link with an IP address type different from that of a current target website is determined in the target website, a new link is created for the to-be-replaced link according to the IP address type of the current target website, the to-be-replaced link in the target website is replaced with a new link with the same IP address type as that of the current target website, a corresponding relationship for determining the IP address of the to-be-replaced link according to the new link is created, and the corresponding relationship is stored locally. Therefore, when a user accesses a link quoted in a target website, the link is guided to the intermediate device by the new link, the intermediate device finds the original IP address of the link to be replaced corresponding to the new link, and forwards the access request to the IP address of the link to be replaced, and the new link is the same as the IP address type of the target website, namely the IP address type of the user, so that the link quoted in the target website can not have a skylight problem when the user accesses the target website.
A specific IP address information configuration method provided in the embodiments of the present application is introduced below, and an IP address information configuration method described below and the embodiments described above may be referred to each other.
Referring to fig. 2, a specific IP address information configuration method provided in an embodiment of the present application specifically includes:
s201, crawling all first links in a target website and second links in pages of all the first links by using a crawler technology.
In the scheme, a crawler technology is utilized to crawl links in a target website, and the links which are directly crawled are used as first links. The link may specifically include a link for jumping to another page and/or a picture resource link and/or a JavaScript link, where the link for jumping to another page may also refer to a link in another page corresponding to the link, and such a link is a second link.
S202, determining a link to be replaced, of which the IP address type is different from that of the target website, in the first link and the second link.
The link to be replaced in the first link and the second link may be specifically determined according to characteristics of the IP address.
In all the links, since the link belonging to the same server as the destination site can be directly considered as the same IP address type as the destination site, in order to reduce the amount of settlement and save the operation time, it is only necessary to judge the out link among the links, and the link belonging to the same server as the destination site is not operated. Therefore, in a specific embodiment, the determining a link to be replaced in all links referenced by the target website includes:
Determining an external link in all links in a target website, wherein the external link is a link which does not belong to the same server as the target website;
and determining a link to be replaced, wherein the IP address type of the link is different from the IP address type of the target website, in the external link.
It should be noted that the method for specifically determining the out-link is not specifically limited in this embodiment, and may be determined by the domain name of the link.
S203, creating a new link for the link to be replaced, wherein the IP address of the new link is the IP address of the intermediate equipment, and the type of the IP address of the new link is the same as that of the target website;
s204, determining the corresponding relation between the new link and the IP address of the link to be replaced, storing the corresponding relation to the local, after receiving an access request initiated to the new link in a target website, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation, and forwarding the access request to the IP address of the link to be replaced.
According to the scheme, all links in the website and links in the links are automatically acquired by adopting a crawler technology, the links can be analyzed, the links to be replaced which are different from the current target website IP address type are determined, and compared with manual link searching, the scheme can improve the configuration efficiency, can also reduce the problem of missed judgment and improve the accuracy.
The following introduces a specific IP address information configuration method provided in the embodiments of the present application, and the specific IP address information configuration method described below may be mutually referred to any of the embodiments described above.
Referring to fig. 3, a specific IP address information configuration method provided in the embodiment of the present application specifically includes:
s301, determining links to be replaced in all links quoted by the target website, wherein the links to be replaced are links with different IP address types from those of the target website.
S302, determining the IP address of the link to be replaced as the IP address to be mapped.
In the scheme, the IP address corresponding to the link to be replaced needs to be mapped, and the mapping result is the same as the type of the IP address of the target website, so that the IP address of the link to be replaced is determined at first.
S303, mapping a new IP address for the IP address to be mapped, and binding the new IP address with the intermediate equipment, wherein the new IP address is the IP address with the same type as the IP address of the target website.
The method for mapping the IP address to be mapped is not specifically limited in the present solution, and reference may be made to the prior art, for example, using NAT64 translation technology to map the IP address of IPv6 to the IP address of IPv4, or map the IP address of IPv4 to the IP address of IPv 6. After mapping, the IP address to be mapped and the new IP address have a unique corresponding relation, and the mapped new IP address needs to be bound with the intermediate device, so that the new IP address is the IP address of the intermediate device.
S304, creating a link for the new IP address as a new link of the link to be replaced; the new link is used for replacing the link to be replaced in the target website, the IP address of the new link is the IP address of the intermediate equipment, and the type of the IP address of the new link is the same as that of the target website.
After the new IP address is obtained, a link is created for the new IP address, the specific content of the link can be set according to the actual situation, no specific limitation is made in the scheme, and after the link is created, the link and the new IP address can be ensured to be in one-to-one correspondence.
S305, determining the corresponding relation between the IP address to be mapped and the new IP address, storing the corresponding relation to the local, after receiving an access request initiated to the new link in a target website, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation, and forwarding the access request to the IP address of the link to be replaced.
In the scheme, because the new IP address is obtained by mapping the IP address of the link to be replaced, the new IP address and the IP address of the link to be replaced have a corresponding relation, and the corresponding relation between the IP address to be mapped and the new IP address, namely the corresponding relation between the IP address of the link to be replaced and the new IP address, only needs to be stored in the scheme.
Therefore, in the scheme, the IP address of the link to be replaced is mapped to obtain a new IP address, the new IP address is bound with the intermediate equipment, a new link is established for the new IP address and is used for replacing the link to be replaced in the target website, the access request of the user can be guided to the intermediate equipment by the new link, and the intermediate equipment can determine the IP address of the link to be replaced by utilizing the mapping relation between the IP address of the link to be replaced and the new IP address and forward the access request to the intermediate equipment.
A specific IP address information configuration method provided in the embodiments of the present application is introduced below, and a specific IP address information configuration method described below may be mutually referred to any of the embodiments described above.
Referring to fig. 4, a specific IP address information configuration method provided in the embodiment of the present application specifically includes:
s401, determining links to be replaced in all links quoted by the target website, wherein the links to be replaced are links with different IP address types from those of the target website.
S402, determining the intermediate device IP address of the intermediate device and the intermediate device domain name corresponding to the intermediate device IP address.
In the scheme, the new IP address is not mapped for the IP address of the link to be replaced, but the IP address of the intermediate device is used for completing the drainage of the access request.
Specifically, an IP address of the intermediate device, that is, an IP address of the intermediate device, is determined, and a domain name corresponding to the IP address of the intermediate device, that is, a domain name of the intermediate device, is determined. The specific determination method may be completed through DNS reverse resolution, and certainly, the information of the intermediate device includes its own domain name, so the determination method may also be determined according to the information of the intermediate device.
S403, combining the domain name of the intermediate device with the link to be replaced to obtain a new link; the intermediate device domain name is used as the domain name of the new link, the link to be replaced is used as the resource of the intermediate device domain name, the new link is used for replacing the link to be replaced in the target website, the IP address of the new link is the IP address of the intermediate device, and the type of the IP address of the new link is the same as that of the IP address of the target website.
In the scheme, the domain name of the intermediate device and the link to be replaced are combined, and the combination mode specifically comprises the following steps: the domain name of the intermediate device is still used as the domain name of the new link, so the IP address of the new link is the IP address of the intermediate device, and the link to be replaced is used as the resource of the domain name of the intermediate device, namely the link to be replaced is added behind the domain name of the intermediate device by using "/", and the new link is generated. If the domain name of the intermediate device is a.com, the original link is b.com/c.html, and then the new link is a.com/b.com/c.html.
When the intermediate device receives an access request for the new link, the link to be replaced can be determined by determining the resource in the new link.
S404, determining the corresponding relation between the link to be replaced and the IP address of the link to be replaced, storing the corresponding relation to the local, after receiving an access request initiated to the new link in a target website, determining the IP address of the link to be replaced corresponding to the new external link by using the corresponding relation, and forwarding the access request to the IP address of the link to be replaced.
After determining the link to be replaced, the intermediate device cannot complete forwarding of the access request, and needs to know the actual IP address of the link to be replaced, so in order to ensure smooth forwarding of the access request, the corresponding relationship between the link to be replaced and the IP address thereof needs to be determined and stored locally.
In the following, an IP address information configuration system provided by the present application is introduced, and an IP address information configuration system described below and any of the above embodiments may be referred to with each other.
Referring to fig. 5, an IP address information configuration system provided in an embodiment of the present application specifically includes:
a to-be-replaced link determining module 501, configured to determine a to-be-replaced link among all links referenced by the target website, where the to-be-replaced link is a link with an IP address type different from that of the target website.
A new link creating module 502, configured to create a new link for the link to be replaced, where an IP address of the new link is an IP address of the intermediate device, and the IP address type of the new link is the same as the IP address type of the target website.
A corresponding relationship determining module 503, configured to determine a corresponding relationship between the new link and the IP address of the link to be replaced, where the corresponding relationship is used to determine the IP address of the link to be replaced according to the new link, and store the corresponding relationship locally, so as to determine, after receiving an access request initiated to the new link in a target website, the IP address of the link to be replaced corresponding to the new link by using the corresponding relationship, and forward the access request to the IP address of the link to be replaced.
Optionally, the to-be-replaced link determining module 501 includes:
the link crawling unit is used for crawling all first links in a target website and second links in pages of all the first links by utilizing a crawler technology;
a first link to be replaced determining unit, configured to determine, from the first link and the second link, a link to be replaced whose IP address type is different from that of the target website.
Optionally, the to-be-replaced link determining module 501 includes:
the external link determining unit is used for determining an external link in all links in a target website, wherein the external link is a link which does not belong to the same server as the target website;
and the second link to be replaced determining unit is used for determining a link to be replaced, the IP address type of which is different from that of the target website, in the external link.
Optionally, all links referenced by the target website include links for jumping to other pages and/or picture resource links and/or JavaScript links.
Optionally, the new link creating module 502 includes:
the to-be-mapped IP address determining unit is used for determining the IP address of the to-be-replaced link as the to-be-mapped IP address;
a new IP address mapping unit, configured to map a new IP address for the IP address to be mapped, and bind the new IP address with the intermediate device, where the new IP address is an IP address of the same type as the IP address of the target website;
a new link creating unit, configured to create a link for the new IP address, as a new link of the to-be-replaced link;
correspondingly, the correspondence determining module 503 is specifically configured to:
And determining the corresponding relation between the IP address to be mapped and the new IP address.
Optionally, the new link creating module 502 includes:
an intermediate device domain name determining unit, configured to determine an intermediate device IP address of the intermediate device and an intermediate device domain name corresponding to the intermediate device IP address;
the combination unit is used for combining the domain name of the intermediate device with the link to be replaced to obtain a new link; the intermediate device domain name is used as the domain name of the new link, and the link to be replaced is used as the resource of the intermediate device domain name;
correspondingly, the correspondence determining module 503 is specifically configured to:
and determining the corresponding relation between the link to be replaced and the IP address of the link to be replaced.
The IP address information configuration system of this embodiment is used to implement the aforementioned IP address information configuration method, and therefore a specific implementation manner in the IP address information configuration system may be seen in the foregoing embodiment portions of the IP address information configuration method, for example, the to-be-replaced link determining module 501, the new link creating module 502, and the corresponding relationship determining module 503, which are respectively used to implement steps S101, S102, and S103 in the aforementioned IP address information configuration method, so that the specific implementation manner thereof may refer to descriptions of corresponding respective portion embodiments, and details are not described here.
An IP address information configuration apparatus provided in the embodiments of the present application is introduced below, and an IP address information configuration apparatus described below and any of the embodiments described above may be referred to with each other.
Referring to fig. 6, an IP address information configuration apparatus provided in an embodiment of the present application specifically includes:
a memory 100 for storing a computer program;
a processor 200, configured to implement the steps of any one of the above IP address information configuration methods when executing the computer program.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run.
Further, the IP address information configuration apparatus in this embodiment may further include:
the input interface 300 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 100, and further obtain various instructions and parameters transmitted by an external terminal device, and transmit the instructions and parameters to the processor 200, so that the processor 200 performs corresponding processing by using the instructions and parameters. In this embodiment, the input interface 300 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
An output interface 400, configured to output various data generated by the processor 200 to a terminal device connected thereto, so that other terminal devices connected to the output interface 400 can acquire various data generated by the processor 200. In this embodiment, the output interface 400 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
A communication unit 500 for establishing a remote link between the IP address information configuring apparatus and other nodes to facilitate receiving transactions and synchronizing block data.
And the keyboard 600 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
The display 700 is used for displaying relevant information of the IP address information configuration process in real time, so that a user can know the current IP address information configuration situation in time.
The mouse 800 may be used to assist a user in inputting data and to simplify the user's operation.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1. An IP address information configuration method, comprising:
determining links to be replaced in all links quoted by a target website, wherein the links to be replaced are links with different IP address types from the IP address type of the target website;
creating a new link for the link to be replaced, wherein the IP address of the new link is the IP address of the intermediate equipment, and the type of the IP address of the new link is the same as that of the IP address of the target website;
And determining the corresponding relation between the new link and the IP address of the link to be replaced, storing the corresponding relation to the local, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation after receiving an access request initiated to the new link in a target website, and forwarding the access request to the IP address of the link to be replaced.
2. The method of claim 1, wherein determining the links to be replaced in all the links referenced by the target website comprises:
crawling all first links in a target website and second links in pages of all the first links by using a crawler technology;
and determining a link to be replaced, which has an IP address type different from that of the target website, in the first link and the second link.
3. The method of claim 1, wherein determining the links to be replaced in all the links referenced by the target website comprises:
determining an external link in all links in a target website, wherein the external link is a link which does not belong to the same server as the target website;
and determining a link to be replaced, wherein the IP address type of the link is different from the IP address type of the target website, in the external link.
4. The method of claim 1, wherein all links referenced by the target website include links for jumping to other pages and/or picture resource links and/or JavaScript links.
5. The method according to claim 1, wherein the creating a new link for the link to be replaced comprises:
determining the IP address of the link to be replaced as the IP address to be mapped;
mapping a new IP address for the IP address to be mapped, and binding the new IP address with the intermediate equipment, wherein the new IP address is the IP address with the same type as the IP address of the target website;
creating a link for the new IP address as a new link for the link to be replaced;
correspondingly, the determining the corresponding relationship between the new link and the IP address of the link to be replaced includes:
and determining the corresponding relation between the IP address to be mapped and the new IP address.
6. The method according to claim 1, wherein the creating a new link for the link to be replaced comprises:
determining an intermediate device IP address of the intermediate device and an intermediate device domain name corresponding to the intermediate device IP address;
Combining the intermediate device domain name and the link to be replaced to obtain a new link; the intermediate device domain name is used as the domain name of the new link, and the link to be replaced is used as the resource of the intermediate device domain name;
correspondingly, the determining the corresponding relationship between the new link and the IP address of the link to be replaced includes:
and determining the corresponding relation between the link to be replaced and the IP address of the link to be replaced.
7. An IP address information configuration system, comprising:
the system comprises a to-be-replaced link determining module, a to-be-replaced link determining module and a to-be-replaced link determining module, wherein the to-be-replaced link is determined in all links quoted by a target website and is a link with an IP address type different from that of the target website;
a new link creating module, configured to create a new link for the link to be replaced, where an IP address of the new link is an IP address of the intermediate device, and the IP address type of the new link is the same as the IP address type of the target website;
and the corresponding relation determining module is used for determining the corresponding relation between the new link and the IP address of the link to be replaced, storing the corresponding relation to the local, determining the IP address of the link to be replaced corresponding to the new link by using the corresponding relation after receiving an access request initiated to the new link in a target website, and forwarding the access request to the IP address of the link to be replaced.
8. The system of claim 7, wherein the to-be-replaced link determining module comprises:
the link crawling unit is used for crawling all first links in a target website and second links in pages of all the first links by utilizing a crawler technology;
a first link to be replaced determining unit, configured to determine, from the first link and the second link, a link to be replaced whose IP address type is different from that of the target website.
9. The system of claim 7, wherein the to-be-replaced link determining module comprises:
the external link determining unit is used for determining an external link in all links in a target website, wherein the external link is a link which does not belong to the same server as the target website;
and the second link to be replaced determining unit is used for determining a link to be replaced, the IP address type of which is different from that of the target website, in the external link.
10. The system of claim 7, wherein all links referenced by the target website include links for jumping to other pages and/or picture resource links and/or JavaScript links.
11. The system of claim 7, wherein the new link creation module comprises:
The to-be-mapped IP address determining unit is used for determining the IP address of the to-be-replaced link as the to-be-mapped IP address;
a new IP address mapping unit, configured to map a new IP address for the IP address to be mapped, and bind the new IP address with the intermediate device, where the new IP address is an IP address of the same type as the IP address of the target website;
a new link creating unit, configured to create a link for the new IP address, as a new link of the to-be-replaced link;
correspondingly, the correspondence determining module is specifically configured to:
and determining the corresponding relation between the IP address to be mapped and the new IP address.
12. The system of claim 7, wherein the new link creation module comprises:
an intermediate device domain name determining unit, configured to determine an intermediate device IP address of the intermediate device and an intermediate device domain name corresponding to the intermediate device IP address;
the combination unit is used for combining the domain name of the intermediate device with the link to be replaced to obtain a new link; the intermediate device domain name is used as the domain name of the new link, and the link to be replaced is used as the resource of the intermediate device domain name;
Correspondingly, the correspondence determining module is specifically configured to:
and determining the corresponding relation between the link to be replaced and the IP address of the link to be replaced.
13. An IP address information configuration apparatus, comprising:
a memory for storing a computer program;
processor for implementing the steps of the IP address information configuration method according to any of claims 1 to 6 when executing said computer program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the IP address information configuration method according to any one of claims 1 to 6.
CN201910364763.7A 2019-04-30 2019-04-30 IP address information configuration method, system, device and storage medium Pending CN111865886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910364763.7A CN111865886A (en) 2019-04-30 2019-04-30 IP address information configuration method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910364763.7A CN111865886A (en) 2019-04-30 2019-04-30 IP address information configuration method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN111865886A true CN111865886A (en) 2020-10-30

Family

ID=72965948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910364763.7A Pending CN111865886A (en) 2019-04-30 2019-04-30 IP address information configuration method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN111865886A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080519A1 (en) * 2006-09-29 2008-04-03 Min Ho Park Protocol conversion apparatus and method between IPv4 terminal and IPv6 terminal or between application programs using mapping table, and method of generating mapping table of protocol conversion apparatus
CN102546850A (en) * 2010-12-08 2012-07-04 中国电信股份有限公司 Method, device and server used for providing internet protocol (IP) v4 content and supporting IPv6
CN106790503A (en) * 2016-12-16 2017-05-31 广东睿哲科技股份有限公司 It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys
CN109451097A (en) * 2019-01-02 2019-03-08 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system
CN109543121A (en) * 2018-11-09 2019-03-29 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080519A1 (en) * 2006-09-29 2008-04-03 Min Ho Park Protocol conversion apparatus and method between IPv4 terminal and IPv6 terminal or between application programs using mapping table, and method of generating mapping table of protocol conversion apparatus
CN102546850A (en) * 2010-12-08 2012-07-04 中国电信股份有限公司 Method, device and server used for providing internet protocol (IP) v4 content and supporting IPv6
CN106790503A (en) * 2016-12-16 2017-05-31 广东睿哲科技股份有限公司 It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys
CN109543121A (en) * 2018-11-09 2019-03-29 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN109451097A (en) * 2019-01-02 2019-03-08 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system

Similar Documents

Publication Publication Date Title
CN106576118B (en) Dynamic DNS-based service discovery
CN101827040B (en) Information conversion apparatus, information conversion method, information conversion program and relay device
CN102647482B (en) Method and system for accessing website
CN110392130B (en) Information processing method based on network, electronic equipment and network system
US10498694B2 (en) Mapping IPv4 knowledge to IPv6
CN104158919A (en) Webpage access implementation method, server and client
EP3860095A1 (en) Methods for information drainage, requesting transmission and communication acceleration, and drainage and node server
CN106790503A (en) It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys
CN106302842A (en) A kind of domain name analytic method, Apparatus and system
CN109561078A (en) A kind of exterior chain url resource transfer method and device
CN102546854A (en) Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server
WO2013131476A1 (en) Service access method and device for conducting the same
CN102783119A (en) Access control method and system, and access terminal
CN103368977A (en) Network connection method and terminal equipment
CN102685262B (en) A kind of method of detection network information of address conversion, Apparatus and system
CN105681477A (en) Data access method and server
JP5437785B2 (en) Authentication method, conversion device, relay device, and program
CN104917838A (en) Method and system for achieving route redirection
WO2020088170A1 (en) Domain name system configuration method and related apparatus
CN102752411A (en) Redirection method and device
CN105279156B (en) Network information communication means and network information browsing apparatus
TWI513239B (en) Network device and method for routing
CN111865886A (en) IP address information configuration method, system, device and storage medium
JP2008072519A (en) Apparatus and method for searching device, and program
CN104506665B (en) Distinguish method and system in a kind of IPv4/IPv6 addresses

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030