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://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:¶
- Login to Router Node shell
sudo docker exec -it R1 bash
- 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;
};
};
}
- Start the bird routing daemon
bird -c /etc/bird.conf -d &
- 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¶
- Check the Routing tables of Router Node.
ip route
- Perform the Ping end to end ping from the hosts
10.2. How to configure Firewall:¶
- Login to the Router Node
- Edit the shorewall configuration.
- Start the shorewall.