10. Traditional Networks Topology

KNet Supports building Traditional Network Topology with Routers, Firewall Nodes.

Router node is built with “bird routing daemon” and “shorewall” firewall sofware.

http://bird.network.cz/

http://shorewall.net/shorewall_quickstart_guide.htm

Example traditional network topology examples are available in knet-example-topologies repository.

10.1. Network Topology with Routers:

Topology example (ex2 - Simple WAN Topology) consists of two routers . Router node is inbuilt with firewall.

10.1.1. Provisioning the Router Node:

  1. Login to Router Node shell
sudo docker exec -it R1 bash
  1. Edit the bird configuration file (/etc/bird.conf). The default configuration consists of ospf configuration.
vi /etc/bird.conf

Change the router id:

router id 1.1.1.1;

Enable the ospf configuration in the required interfaces

protocol ospf MyOSPF {
   rfc1583compat yes;
   area 0.0.0.0 {
      stub no;
     interface "eth1" {
         hello 10;
         retransmit 6;
         cost 10;
         transmit delay 5;
         dead count 5;
         wait 50;
         type broadcast;
     };

     interface "eth2" {
         hello 10;
         retransmit 6;
         cost 10;
         transmit delay 5;
         dead count 5;
         wait 50;
         type broadcast;
     };

  };
}
  1. Start the bird routing daemon
bird -c /etc/bird.conf -d &
  1. Check the log files
cat /var/log/bird.log

The detailed information of bird routing configuration is available in bird website.

Repeat the same for all the Routers.

10.1.2. Testing

  1. Check the Routing tables of Router Node.
ip route
  1. Perform the Ping end to end ping from the hosts

10.2. How to configure Firewall:

  1. Login to the Router Node
  2. Edit the shorewall configuration.
  3. Start the shorewall.