Firewall services system and method based on virtual network
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of firewall services system based on virtual network
System and a kind of method for realizing virtual network fire wall.
Background technology
The fire wall of legacy network is typically all the border for being deployed in network, and all flows in network can be monitored
Link on.Packet to being sent to internal network is filtered, and with reference to the firewall security policy of setting, to packet
Forwarding is abandoned.
In environment in virtualization network, physical network resource is that all of virtual network user is shared, but right
For user, network is exclusive, and is isolated with the network of other users.Each user or business flow network can
Possess different network security demands according to the service feature of the network of oneself, have difference to fire wall deployment and security strategy
Requirement.Due to the expansible retractility of virtual network, the network boundary of user is uncertain from from the perspective of physical network
, thus cannot in the conventional mode dispose fire wall and provide firewall services for each user.Therefore it is traditional
Firewall technology is difficult to meet the demand for security of virtual network user.
For the problem in correlation technique, effective solution is not yet proposed at present.
The content of the invention
For the problem in correlation technique, the present invention propose a kind of firewall services system based on virtual network and
A kind of method for realizing virtual network fire wall, using the deployment to firewall services node and distributed management, so as to realize
The structure of distributed virtual fire wall.
For achieving the above object, on the one hand, the invention provides a kind of firewall services system based on virtual network, bag
Include:Distributed fire wall manager, connects for obtaining all virtual machine networks in user network according to the network identity of user
Message ceases;Corresponding firewall services node is determined according to virtual machine network interface message;And, by the firewall configuration of user
Information and/or firewall security policy are distributed to corresponding firewall services node;Firewall services node, is configured in and is based on
Open the firewall configuration information of the user on the OVS switches of virtual switch standard OVS, receiving for basis and/or prevent
Wall with flues security strategy by the data flow of OVS switches to being managed.
According to the present invention, firewall services system also includes virtual firewall module, for by both firewall operations interface
The network identity and corresponding firewall configuration information and/or firewall security policy of user are set;And by the net of user
Network mark and corresponding firewall configuration information and/or firewall security policy are sent to distributed fire wall manager.
According to the present invention, virtual firewall module is additionally operable to firewall configuration information and/or firewall security as user
When strategy changes, by the firewall configuration information after change and/or the network identity of firewall security policy and user
It is sent to distributed fire wall manager.
According to the present invention, virtual machine network interface message includes that the OVS switches that virtual machine network interface is connected are managed
Port numbering of the position and virtual machine network interface in reason net in OVS switches.
According to the present invention, firewall services node includes policy module, and it is used to issue distributed fire wall manager
Firewall security policy be converted into data flow con-trol strategy.
According to the present invention, firewall services node also includes control module, and it is used to monitor distributed fire wall manager
The control information sent, so that operation is controlled to service node or configuration operation is carried out to policy module.
On the other hand, present invention also offers a kind of method for realizing virtual network fire wall, including:Distributed fire wall
Manager obtains all virtual machine network interface messages in user network according to the network identity of user;Distributed fire wall pipe
Reason device determines corresponding firewall services node according to virtual machine network interface message;Distributed fire wall manager is by user's
Firewall configuration information and/or firewall security policy are distributed to corresponding firewall services node, wherein, firewall services section
Point is configured on the OVS switches based on open virtual switch standard OVS;Firewall services node is according to the user's for receiving
Firewall configuration information and/or firewall security policy by the data flow of OVS switches to being managed.
According to the present invention, the method also includes:Virtual firewall module, for arranging user by both firewall operations interface
Network identity and corresponding firewall configuration information and/or firewall security policy;And by the network identity of user with
And corresponding firewall configuration information and/or firewall security policy are sent to distributed fire wall manager.
According to the present invention, according to the firewall configuration information and/or firewall security policy of the user for receiving to passing through
The data flow of OVS switches is managed, including:The firewall security policy of user is converted into into data flow con-trol strategy;With
And according to data flow con-trol strategy to being managed by the data flow of OVS switches.
Compared with prior art, the beneficial effects of the present invention is:
The present invention carries out distributed management by disposing firewall services node in physical machine to service node,
Distributed virtual fire wall is realized so as to build, for each user logically independent virtual firewall equipment is provided.
In addition, the present invention is also capable of achieving the independence of security strategy and user profile, and the security strategy of user will not
Others' network is interfered.Therefore, the present invention is solved cannot be come in virtual network using traditional firewall box
Meet the problem of different user demand for security.
Description of the drawings
Fig. 1 is the structural schematic block diagram of the firewall services system based on virtual network according to an embodiment of the invention;
Fig. 2 is the schematic diagram of the method for realizing virtual network fire wall according to an embodiment of the invention;
Fig. 3 is the schematic diagram of the method for realizing virtual network fire wall according to further embodiment of this invention;
Fig. 4 is the schematic diagram of the method for realizing virtual network fire wall according to another embodiment of the present invention.It is embodied as
Mode
Below in conjunction with the accompanying drawings the present invention is further illustrated.
As shown in Figure 1, thus it is shown that firewall services system of the present invention based on virtual network, the system includes distributed
Firewall manager 10 and firewall services node 20.
Specifically, distributed fire wall manager 10 is used to obtain the institute in user network according to the network identity of user
There is virtual machine network interface message;It can also determine corresponding firewall services node 20 according to virtual machine network interface message;
And the firewall configuration information and/or firewall security policy of user are distributed to into corresponding firewall services node 20.
Further, firewall services node 20 is configurable on the OVS switches based on open virtual switch standard OVS,
The firewall configuration information and/or firewall security policy of the above-mentioned user received for basis is to by OVS switches
Data flow is managed.
In an alternate embodiment of the present invention where, firewall services system can also include virtual firewall module.Should
Virtual firewall module can be used to arrange the network identity and corresponding firewall configuration of user by both firewall operations interface
Information and/or firewall security policy;It can also be by the network identity of above-mentioned user and corresponding firewall configuration information
And/or firewall security policy is sent to distributed fire wall manager 10.
Further, in a preferred embodiment of the invention, virtual firewall module can be also used for working as user
Firewall configuration information and/or firewall security policy when changing, by the firewall configuration information after change and/or anti-
The network identity of wall with flues security strategy and user is sent to distributed fire wall manager 10.
In the another preferred embodiment of the present invention, virtual machine network interface message can include virtual machine network interface institute
The OVS switches of connection management net in position and virtual machine network interface OVS switches port numbering.
Further, in an alternate embodiment of the present invention where, firewall services node 20 can include:Policy module and
Control module.
Specifically, the policy module can be used for the firewall security policy conversion for issuing distributed fire wall manager 10
Into data flow con-trol strategy;And aerial module can be used to monitor the control information that distributed fire wall manager 10 is sent, with right
Service node is controlled operation or carries out configuration operation to policy module.
On the other hand, as shown in Fig. 2 present invention also offers a kind of method for realizing virtual network fire wall, the method
Including:
S101, distributed fire wall manager 10 obtains all virtual machines in user network according to the network identity of user
Network interface information;
S102, distributed fire wall manager 10 determines corresponding firewall services section according to virtual machine network interface message
Point 20;
S103, distributed fire wall manager 10 divides the firewall configuration information and/or firewall security policy of user
Corresponding firewall services node 20 is dealt into, wherein, firewall services node 20 is configured in based on open virtual switch standard OVS
OVS switches on;
S104, firewall configuration information and/or firewall security of the firewall services node 20 according to the user for receiving
Strategy by the data flow of OVS switches to being managed.
Preferably, as shown in figure 3, during one embodiment of the method for virtual network fire wall is realized in the present invention, the party
Method may also include:
S201, virtual firewall module, for arranging the network identity and correspondence of user by both firewall operations interface
Firewall configuration information and/or firewall security policy;And
S202, the network identity of user and corresponding firewall configuration information and/or firewall security policy are sent
To distributed fire wall manager 10.
Additionally, as shown in figure 4, in the another preferred embodiment of the method for the present invention, according to the anti-of the user for receiving
The step of wall with flues configuration information and/or firewall security policy by the data flow of OVS switches to being managed may include:
S301, by the firewall security policy of user data flow con-trol strategy is converted into;And
S302, according to data flow con-trol strategy to being managed by the data flow of OVS switches.
Specifically, in the present invention, the service node of fire wall is built upon the service module on the basis of OVS.First
Original Linux Bridge modules are instead of using OVS on host, and the use of OVS is the virtual of operation on host
Machine provides two layers of network insertion.OVS carries out the forwarding of high speed to the packet for being sent to virtual machine, and the foundation of forwarding is exactly to flow
Table.Wherein, so-called flow table is exactly a kind of the abstract of height of the Openflow switches for forwarding rule, and flow table includes packet header
Domain, counter and action.The content in packet header domain describes the matching strategy for packet, and its content is flowed into including packet
Port, source MAC, destination-mac address, source IP address, target ip address, IP agreement, TCP/UDP source ports, TCP/UDP
Destination interface.
Specifically, flow table information can be freely set according to demand, turning for packet can be provided as switch with this
Send out strategy.The module of firewall services node 20 is mainly made up of two parts:First is policy module, is saved in policy module
From the firewall security policy that distributed manager is issued, security strategy is converted into into the data flow con-trol strategy of OVS, and will
Strategy is stored in the flow table of OVS;Another part is node control module, and a web has been run in node control module
Service, has been issued to service using REST (Representational State Transfer, declarative state transfer) standard
The control interface of node, monitors the order that distributed manager is sent, and to service node operation and firewall policy are controlled
Configuration operation.
For fire wall distributed manager, it is logically independent that the module virtualizes network abstraction one for each
Firewall services.When user configures to the firewall services of oneself, can be by configuration information and the net of user
Network mark is together sent to distribution manager.Distribution manager can be obtained and use according to the network identity of user from network management
All of virtual machine network interface message in the network of family, manages including the OVS switches that virtual machine network interface is connected
Port numbering of the position and interface in reason network in OVS switches.Then distribution manager is by matching somebody with somebody the fire wall of user
Confidence is ceased according to corresponding firewall services node 20 is distributed to, and by corresponding firewall services node 20 fire wall plan is processed
Slightly.
In sum, the present invention in physical machine by disposing firewall services node 20, and service node is carried out
Distributed management, so as to build distributed virtual fire wall is realized, for each user logically independent virtual fire prevention is provided
Wall equipment.
In addition, the present invention is also capable of achieving the independence of security strategy and user profile, and the security strategy of user will not
Others' network is interfered.Therefore, the present invention is solved cannot be come in virtual network using traditional firewall box
Meet the problem of different user demand for security.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.