A basic FreerTr docker container
sudo docker run busybox nslookup www.google.com
git clone https://github.com/frederic-loui/freertr-docker.git
cd ./freertr-docker
sudo docker build --tag freertr/freertr:latest .
There are 2 files in ./freertr-docker/run :
./freertr-hw.txt
./freertr-sw.txt
These files are in the format -hw.txt and -sw.txt
As a start use the sample provided and replace eth2 by your NIC device (usually eth0)
In this sample file you'll indicate which Dockerhost interface will be bind to FreerTr container.
The line use to attach an interface to FreerTr container is:
int <network-device> eth <mac@> <bind_ip@> <tx_port> <bind_ip@> <rx_port> <br>
...
int eth2 eth 0000.1111.2222 127.0.0.1 22706 127.0.0.1 22705
int eth3 eth 0000.1111.3333 127.0.0.1 20011 127.0.0.1 20010
...
For more detail please refer to FreerTr homepage: http://freerouter.nop.hu/
It is the FreerTr router configuration.
For more detail please refer to FreerTr homepage: http://freerouter.nop.hu/
There is 2 processes that is run inside this container:
In addition FreerTr will manipulate the network interface attached to it.
=> This explain why we use --network host flag. In addition
sudo docker run --detach --privileged --network host -e "FREERTR_INTF_LIST=eth2/20010/20011" -e "FREERTR_HOSTNAME=freertr" -v "/home/kubeadm/freertr/run:/opt/freertr/run" --name freertr-001 freertr/freertr:latest
I would like to thank the original maintainer of FreerTr for this awesome piece of code.
If you need to understand networking protocol. Read the source, it is exceptionnally well written.
If you like reading IETF RFCs you will enjoy studying this code. (You'll save tons of sleeping pills ;-) )
Kudos to <a href=http://mc36.nop.hu/cv.html>Csaba MATE then... all credits goes to him !
Content type
Image
Digest
Size
149.3 MB
Last updated
almost 7 years ago
docker pull floui/freertr-docker