Ip Rule Sets With Virtual Routing - D-Link NetDefendOS User Manual

Network security firewall
Hide thumbs Also See for NetDefendOS:
Table of Contents

Advertisement

Also note how the IPv4 addresses of the internal interfaces of the virtual systems differ. If
per-interface routing table membership were not used, the core routes for both IP addresses
would be added in both routing tables, leading to 192.168.0.1 being unusable in vs2 (even
though it should be usable) and 192.168.0.254 being unusable in vs1. With per-interface routing
table membership, interface IP addresses belonging to one virtual system will not interfere with
other virtual systems and loopback interfaces are not needed.
The IPv4 addresses of the main-vs1 and main-vs2 interfaces are the same as the IP address of the
external interface. They could also have been set to something nonsensical, such as 127.0.0.1.
Regular routing would still have worked since loopback interfaces are raw IP interfaces (the ARP
protocol is not used over them). However, their IP addresses will be visible to users doing a
traceroute from the inside, and also the issue exists of traffic originating from the NetDefend
Firewall itself to the internal networks, such as pings or logging. Such traffic is most often routed
according to the main routing table, and will be sourced from the IP address of the nearest
interface in the main routing table.

4.5.4. IP Rule Sets with Virtual Routing

The IP rule sets for different virtual systems can be split into separate rule sets using the
NetDefendOS feature of creating multiple IP rule sets (see Section 3.6.4, "Multiple IP Rule Sets" for
more detail on this feature).
IP rules and IP policies for different virtual systems need not be split up. They can reside together
in a single IP rule set. The benefit of doing this is being able to define "shared" or "global" rules or
policies that span over several virtual systems. For example, for aggressive "worm" attacks, it may
be desirable to drop all communication on ports known to be used by the worm until
counter-measures can be put into place. One single Drop rule or policy placed at the top of the
rule set can take care of this for all the virtual systems. Using the example of the previous section,
this is how the IP rule set might look if IP rules are used:
Interface Groups
#
1
2
3
4
IP Rules
#
Name
IP Rules for the "main" virtual system
1
main-allowall
IP Rules for the "vs1" virtual system
2
vs1-http-in
3
vs1-http-in
4
vs1-out
IP Rules for the "vs2" virtual system
5
vs2-smtp-in
6
vs2-smtp-in
7
vs2-http-out
Name
main-vsifs
main-ifs
vs1-ifs
vs2-ifs
Action
Source If
Allow
main-ifs
SAT
vs1-ifs
Allow
vs1-main
NAT
vs1-int
SAT
vs2-main
Allow
vs2-main
NAT
vs2-int
328
Interfaces
main-vs1, main-vs2
main-wan, main-vsifs
vs1-main, vs1-lan
vs2-main, vs2-lan
Source Net
Dest If
all-nets
Any
all-nets
pubip-vs1
all-nets
Any
all-nets
Any
all-nets
Any
all-nets
Any
192.168.0.4
vs2-main
Chapter 4: Routing
Dest Net
Service
all-nets
all_services
all-nets
http
SetDest
192.168.0.5
pubip-vs1
http
all-nets
all_services
pubip-vs2
all_services
pubip-vs2
smtp
all-nets
http

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents