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

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

Example Embodiment

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

[0025] The method for returning packets to the source network port based on iptables and strategy loops of the present invention includes the following steps:

[0026] 1) The processing of receiving requests by the network equipment of the Linux operating system is as follows (such as figure 1 Shown):

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

[0028] 1.2) Determine whether the external request data packet received in step 1.1) is the first data packet of the link where it is located, if the judgment is yes, go to step 1.3), if the judgment is no, go to step 1.5);

[0029] 1.3) According to the iptables rules, mark the external request data packet with a label related to the network port 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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products