Skip to content

Equipment Simple Router

plamaizi edited this page Jan 24, 2023 · 3 revisions

Simple router module

This module implements a "simple router" which can be used when a "fake router" is needed in the topology of the network.

Java class : fr.univrennes1.cri.jtacl.equipments.SimpleRouter

Configuration

The configuration of this module is made by a XML file specifying:

  • the declaration of the interfaces.
  • the routes.

Interfaces declaration

Interfaces are defined using an <iface> XML entity, specifying:

  • the name of the interface (such as 'em0').
  • the free comment of the interface.
  • IP address and network of the interface.
  • An optional border flag (true or false).
<iface name="name" comment="some text" ip="ipaddress" network="networkaddress" border="boolean" />

If border is true, the interface is a "border interface" and will accept all the probes on it. This could be useful to simulate a host.

To add an IP address to an interface, use several <iface> entities with the same name for the interface (comment is then optional). Example:

<iface name="em0" comment="internal" ip="192.168.1.1" network="192.168.1.0/24" />
<iface name="em0" ip="192.168.2.1" network="192.168.2.0/24" />

Routes

See Common routing options.

Options

The Simple router module does not handle any option.

Configuration template

https://raw.githubusercontent.com/plamaiziere/lsfw/main/doc/config/simplerouter.xml

Clone this wiki locally