Adding Routes - D-Link NetDefendOS User Manual

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

Advertisement

Example 4.6. Adding Routes
After defining the routing table MyPBRTable, routes can be added to the table. Assume that the
route to a network my_network is to be defined for the lan interface.
Command-Line Interface
Change the context to be the routing table:
gw-world:/> cc RoutingTable MyPBRTable
Add the route
gw-world:/main> add Route Interface=lan Network=my_network
Web Interface
1.
Go to: Network > Routing > Routing Tables > MyPBRTable > Add > Route
2.
Now enter:
Interface: lan
Network: my_network
Gateway: The gateway router is there is one
Local IP Address: The IP address specified here will be automatically published on the
corresponding interface. This address will also be used as the sender address in ARP
queries. If no address is specified, the firewall's interface IP address will be used.
Metric: Specifies the metric for this route. (Mostly used in route failover scenarios)
3.
Click OK
Routing Rules
A rule in the routing rule set can decide which routing table is selected. A routing rule has a
number of filtering properties that are similar to those used in an IP rule. A rule can trigger on a
type of service (HTTP for example) in combination with the specified Source/Destination
Interface and Source/Destination Network.
When looking up routing rules, it is the first matching rule found that is triggered.
Example 4.7. Creating a Routing Rule
In this example, a routing rule called my_routing_rule is created. This will select the routing table
MyPBRTable for any http traffic destined for the network my_network.
Command-Line Interface
gw-world:/> add RoutingRule Service=http
SourceInterface=any
310
Chapter 4: Routing

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents