summaryrefslogtreecommitdiffstats
path: root/kud/tests/cFW/docker-compose.yml
blob: 29db821c13003f0cfeb87907da7330019609cfce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2020
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

version: '3'

services:
  packetgen:
    image: packetgen:1.6.0
    privileged: true
    environment:
      - PROTECTED_NET_CIDR=192.168.20.0/24
      - FW_IPADDR=192.168.10.100
      - SINK_IPADDR=192.168.20.250
    ports:
      - 8083:8183
    build:
      context: ./packetgen
    networks:
      unprotected:
        ipv4_address: 192.168.10.200
  firewall:
    image: firewall:1.6.0
    privileged: true
    environment:
      - DCAE_COLLECTOR_IP=""
      - DCAE_COLLECTOR_PORT=""
    ports:
      - 8083
    build:
      context: ./firewall
    networks:
      unprotected:
        ipv4_address: 192.168.10.100
      protected:
        ipv4_address: 192.168.20.100
  sink:
    image: sink:1.6.0
    cap_add:
      - NET_ADMIN
    environment:
      - UNPROTECTED_NET=192.168.10.0/24
      - PROTECTED_NET_GW=192.168.20.100
    ports:
      - 8080:667
    build:
      context: ./sink
    networks:
      protected:
        ipv4_address: 192.168.20.250

networks:
  unprotected:
    driver: overlay
    ipam:
      driver: default
      config:
        - subnet: 192.168.10.0/24
  protected:
    driver: overlay
    ipam:
      driver: default
      config:
        - subnet: 192.168.20.0/24