Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1021 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 1021 Bytes

PatrIoT_router

This repository is used to build docker image of router. Router is used in network-simulator to control network communication. Router image has to be built before starting network generator. Network generator uses image tag to create router containers.

Parts

  • iptables-api
  • iproute2-api
  • iproute2-rest

IPTables

Iptables api written in golang is used to communicate with linux ip tables. Api is used to filter communication, NAT, ...
This api is forked from: https://github.com/Oxalide/iptables-api

IPRoute2

IPRoute2 api written in golang is used to control routing tables using iproute2 commands. Api supports:

  • Default routes creationg and modification
  • Routes creation and modification
  • List interfaces
  • List routes

IPRoute2 REST API

IProute2 REST is used by network simulator api to remotely control routes on routers. API is written in golang, using http package.

Build

docker build ./