Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for returning packets to source network interfaces based on iptables and strategy routing

A strategy and routing technology, applied in the direction of data exchange network, digital transmission system, electrical components, etc., can solve the problem that it is difficult to determine the forwarding of internal response data packets, and achieve the effect of flexible and convenient configuration

Inactive Publication Date: 2017-08-08
KOAL SOFTWARE CO LTD
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since only one configuration of the default route of the traditional Linux operating system takes effect, multiple network ports of a single device accept external requests, and the requests are all from outside (not on the same network segment of the machine), even when the requests are difficult to classify, the Linux operating system It is difficult for the network device to determine which source network port to forward the internal response data packet to

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for returning packets to source network interfaces based on iptables and strategy routing
  • Method for returning packets to source network interfaces based on iptables and strategy routing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific illustrations.

[0025] A kind of method of returning packets based on iptables and policy loop to the source network port of the present invention comprises the following steps:

[0026] 1) The network equipment of the Linux operating system receives the request as follows (such as figure 1 shown):

[0027] 1.1) The network device of the Linux operating system receives an external request packet;

[0028] 1.2) Judging whether the external request packet received in step 1.1) is the first packet of the link where it is located, if it is judged to be yes, then enter step 1.3), if it is judged to be no, then enter step 1.5);

[0029] 1.3) According to the iptables rules, put a label related to the network port receiving the external request data packet on t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for returning packets to source network interfaces based on iptables and a strategy loop. The method comprises the steps that 1), a device of a Linux operating system receives requests; 2), the Linux operating system responds the requests; 3), the device of the Linux operating system receives responses. The method has the beneficial effects that the method depends on original command and configuration of the Linux operating system; the responses of the requests in a local network segment or out of the local network segment are forwarded through the network interfaces of receiving the requests according to iptables rules and a strategy routing rule; extra development and investment are avoided; the iptables take effect timely; the strategy routing can take effect timely by regenerating a cache file; and the configuration is flexible and convenient.

Description

technical field [0001] The present invention relates to the technical field of network device data packet forwarding, in particular to a method of returning packets to source network ports based on iptables and policy routing under the Linux operating system. Background technique [0002] With the widespread use of computer networks and the development of computer network technology, network devices need to adapt to more complex network environments. [0003] Since only one configuration of the default route of the traditional Linux operating system takes effect, multiple network ports of a single device accept external requests, and the requests are all from outside (not on the same network segment of the machine), even when the requests are difficult to classify, the Linux operating system It is difficult for the network device to determine which source network port to forward the internal response data packet to. Therefore, when the network equipment of the Linux operati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/723H04L12/725H04L12/741H04L45/50H04L45/74
CPCH04L45/30H04L45/50H04L45/54
Inventor 孙逸群刘文斌掌晓愚
Owner KOAL SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products