Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
fe98b898
Commit
fe98b898
authored
3 years ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
update docker installation/config doc
parent
7d43a107
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/installation/v1.7/docker.md
+55
-4
55 additions, 4 deletions
doc/installation/v1.7/docker.md
with
55 additions
and
4 deletions
doc/installation/v1.7/docker.md
+
55
−
4
View file @
fe98b898
...
...
@@ -15,9 +15,9 @@ docker
### System Requirements
...
disk space
###
Installation and starting of
FoD test installation containers
### FoD test installation
docker
containers
Currently, either a CENTOS-based on DEBIAN-based FoD container is available.
...
...
@@ -35,13 +35,17 @@ gunicorn will be accessible from outside the container by port 8000.
#### Installation and starting of CENTOS docker container
docker build -f Dockerfile -t fod-centos .
docker run -p 8000:8000 fod-centos # run in foregrund
docker run -d -p 8000:8000 fod-centos # run in background
#### Installation and start of UBUNTU docker container
#### Installation and start
ing
of UBUNTU docker container
docker build -f Dockerfile.debian -t fod-debian .
docker run -p 8000:8000 fod-debian # run in foreground
docker run -d -p 8000:8000 fod-debian # run in background
#### Configuring NETCONF in a running container
...
...
@@ -50,22 +54,69 @@ admin user password and NETCONF connection has to be setup,
either by
A) via the setup page of FoD in container:
http://127.0.0.1:8001/setup/
or alternatively
B) manually
in by entering the running container and editing
docker exec -ti "$DOCKERID" bash # find out DOCKERID of running container with "docker ps"
in docker: vi /srv/flowspy/flowspy/settings.py : settings NETCONF_DEVICE, NETCONF_PORT, NETCONF_USER, NETCONF_PASS
# make sure docker container has IP connectivity to NETCONF_DEVICE
make sure docker container has IP connectivity to NETCONF_DEVICE
in docker: cd /srv/flowspy; ./pythonenv ./manage.py createsuperuser ...
in docker: cd /srv/flowspy; ./pythonenv ./manage.py changepassword ...
#### Accessing the FoD UI running in container after setup of admin user (password)
http://127.0.0.1:8000/altlogin
(do not try to use the Shibboleth login via /login, as it is not working without a set-up Shibboleth SP)
### NETCONF test server docker container
When no real NETCONF-enabled router supporting BGP FlowSpec is available, just for
testing the NETCONF test server docker container can be used:
In FoD-cloned installation dir, e.g., residing in /srv/flowspy,
got to sub directory ./router-container/
there:
docker build -t juniper .
docker run -it --name juniper -p 830:830 --rm juniper:latest
for more information, e.g., how to manually test NETCONF access to the test server, check ./router-container/run.txt
Now, find out IP address of the running test server container, e.g., by
docker inspect "$DOCKERID_NETCONF" | grep IPAddress # find out DOCKERID_NETCONF, e.g. by "docker ps"
In FoD test container (see above) configure this IP address of the NETCONF test server,
with NETCONF port 830, NETCONF_USER "netconf" and NETCONF_PASS "netconf"
Now, FoD can submit FlowSpec rules which are actually only stored inside the NETCONF test server
without an actual effect on any network, but FoD functionality of controlling rules can be tested.
### NETCONF test server docker container extended to virtual DDoS test network
Based on an instance of the NETCONF test server docker container
Extending with Mininet/OpenVSwitch,
a basic a script for syncing NETCONF rules stored in the test NETCONF server
to OpenFlow rules in Mininet simulating BGP FlowSpec rules (not all cases supported),
SNMPd and a Perl SNMPd statistic collector script
Yields a more complete simulation of a router for FoD.
Dockerfile.vnet_router1 :
Dockerfile.vnet_router2 : similar to Dockerfile.vnet_router1, but will use netconf instead of CENSET's netopeer NETCONF server
(instructions how to build and run inside the Dockerfiles)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment