2018-01-21 16:03:45 +00:00
kernel :
2022-06-01 10:39:40 +00:00
#image: nemunaire/kernel:5.10.62-0b705d955f5e283f62583c4e227d64a7924c138f-amd64
image : linuxkit/kernel:5.10.104
2018-12-10 01:16:07 +00:00
cmdline : "console=ttyS0 console=tty0"
2018-01-21 16:03:45 +00:00
init :
2022-06-01 10:39:40 +00:00
- linuxkit/init:8f1e6a0747acbbb4d7e24dc98f97faa8d1c6cec7
- linuxkit/runc:f01b88c7033180d50ae43562d72707c6881904e4
- linuxkit/containerd:de1b18eed76a266baa3092e5c154c84f595e56da
- linuxkit/ca-certificates:c1c73ef590dffb6a0138cf758fe4a4305c9864f4
2021-09-04 15:09:40 +00:00
- linuxkit/getty:ed32c71531f5998aa510847bb07bd847492d4101
- nemunaire/mdadm:3886edd37c79d5f8000e4f3c4bacaff1f6302aa3
2022-06-02 09:56:33 +00:00
- nemunaire/kexec:db743618d3674729088d64b5d303e4b7d7ff148b
2022-11-07 15:31:19 +00:00
- nemunaire/fic-frontend-ui:latest@sha256:027da8fdea78106bee6be87fc1b0874504f8b4092593e874ca767bcc47c79ddc
2018-01-21 16:03:45 +00:00
onboot :
2022-06-02 09:40:43 +00:00
- name : mod
image : linuxkit/modprobe:1b59b4f2ebb877085ea0d8d3a41cf06f64c09a15
command : [ "/bin/sh" , "-c" , "modprobe xhci_pci ahci intel_lpss_pci i2c_i801 megaraid_sas tg3 bnxt_en" ]
2018-12-10 01:16:07 +00:00
2019-01-17 08:11:13 +00:00
- name : sysctl
2022-06-01 10:39:40 +00:00
image : linuxkit/sysctl:bdc99eeedc224439ff237990ee06e5b992c8c1ae
2018-01-21 16:03:45 +00:00
# Filesystem
- name : swap
2022-06-01 10:39:40 +00:00
image : linuxkit/swap:77305236719ed7ab4be0f3bccc179c583fe7f5ff
2022-06-02 09:40:43 +00:00
command : [ "/sbin/swapon" , "/dev/sda2" ]
2020-01-30 18:03:14 +00:00
- name : dm-crypt
2022-06-01 10:39:40 +00:00
image : linuxkit/dm-crypt:908d3a270650aff7388092a307673c44d86e1ed0
2022-06-02 09:40:43 +00:00
command : [ "/usr/bin/crypto" , "-l" , "crypt_fic" , "/dev/sda3" ]
2018-01-21 16:03:45 +00:00
- name : mount
2022-06-01 10:39:40 +00:00
image : linuxkit/mount:422b219bb1c7051096126ac83e6dcc8b2f3f1176
2020-01-30 18:03:14 +00:00
command : [ "/usr/bin/mountie" , "-device" , "/dev/mapper/crypt_fic" , "/var/lib/fic" ]
2018-01-21 16:03:45 +00:00
# Network
# - name: ntp
2022-06-01 10:39:40 +00:00
# image: linuxkit/openntpd:d6c36ac367ed26a6eeffd8db78334d9f8041b038
2018-01-21 16:03:45 +00:00
- name : nginx-ip-setup
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2018-01-21 16:03:45 +00:00
command : [ "/bin/sh" , "-c" , "ip a add 172.17.1.2/24 dev vethin-nginx; ip link set vethin-nginx up;" ]
net : new
runtime :
interfaces :
- name : vethin-nginx
add : veth
peer : veth-nginx
bindNS :
net : /run/netns/nginx
2021-09-04 15:09:40 +00:00
- name : frontal-ip-setup # without bonding
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2022-06-07 22:07:31 +00:00
command : [ "/bin/sh" , "-c" , "ip link set name bond-frontal eth3; ip link set bond-frontal up; ip a add 192.168.50.10/24 dev bond-frontal; ip a add 91.243.117.240/32 dev bond-frontal; ip r add default via 192.168.50.1; ip link add link bond-frontal name internet type vlan id 4; ip link set internet up;" ]
2021-09-04 15:09:40 +00:00
net : /run/netns/nginx
runtime :
interfaces :
2022-06-04 16:09:33 +00:00
# - name: eth1
2021-09-04 15:09:40 +00:00
# - name: eth2
2022-06-04 16:09:33 +00:00
- name : eth3
2021-09-04 15:09:40 +00:00
# - name: eth4
# - name: frontal-ip-setup # with bonding
2022-06-01 10:39:40 +00:00
# image: linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2022-06-04 16:09:33 +00:00
# command: ["/bin/sh", "-c", "ip link set dev bond-frontal type bond mode balance-alb; ip link set bond-frontal up; ifenslave bond-frontal eth1 eth2 eth3 eth4; ip a add 172.23.42.254/24 dev bond-frontal; ip a add 172.23.42.1/24 dev bond-frontal; ip a add 91.243.117.240/32 dev bond-frontal; ip link add link bond-frontal name internet type vlan id 4; ip link set internet up; sysctl -w net.ipv4.ip_forward=1;" ]
2018-12-10 01:16:07 +00:00
# net: /run/netns/nginx
# runtime:
# interfaces:
# - name: eth1
# - name: eth2
# - name: eth3
2019-12-16 13:46:25 +00:00
# - name: eth4
2021-09-04 15:09:40 +00:00
# - name: bond-frontal
# add: bond
2018-01-21 16:03:45 +00:00
- name : frontend-ip-setup
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2018-01-21 16:03:45 +00:00
command : [ "/bin/sh" , "-c" , "ip a add 172.17.1.3/24 dev vethin-frontend; ip link set vethin-frontend up;" ]
net : new
runtime :
interfaces :
- name : vethin-frontend
add : veth
peer : veth-frontend
bindNS :
net : /run/netns/fic-frontend
- name : sshd-ip-setup
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2022-06-04 16:09:33 +00:00
command : [ "/bin/sh" , "-c" , "ip a add 10.10.10.2/29 dev eth2; ip link set eth2 up;" ]
2018-01-21 16:03:45 +00:00
net : new
runtime :
interfaces :
2022-06-04 16:09:33 +00:00
- name : eth2
2018-01-21 16:03:45 +00:00
bindNS :
net : /run/netns/sshd
2021-09-05 10:39:36 +00:00
- name : auth-ip-setup
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2021-09-05 10:39:36 +00:00
command : [ "/bin/sh" , "-c" , "ip a add 172.17.1.4/24 dev vethin-auth; ip link set vethin-auth up;" ]
net : new
runtime :
interfaces :
- name : vethin-auth
add : veth
peer : veth-auth
bindNS :
net : /run/netns/auth
2018-01-21 16:03:45 +00:00
- name : bridge-setup
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2021-09-09 09:28:52 +00:00
command : [ "/bin/sh" , "-c" , "ip a add 172.17.1.1/24 dev br0; ip link set veth-nginx master br0; ip link set veth-frontend master br0; ip link set veth-auth master br0; ip link set br0 up; ip link set veth-nginx up; ip link set veth-frontend up; ip link set veth-auth up;" ]
2018-01-21 16:03:45 +00:00
runtime :
interfaces :
- name : br0
add : bridge
- name : firewall-frontal
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2018-01-21 16:03:45 +00:00
command : [ "/bin/bash" , "-c" , "/sbin/iptables-restore < /etc/iptables/rules-frontal.v4; /sbin/ip6tables-restore < /etc/iptables/rules.v6" ]
binds :
- /etc/iptables/rules-frontal.v4:/etc/iptables/rules-frontal.v4:ro
- /etc/iptables/rules.v6:/etc/iptables/rules.v6:ro
net : /run/netns/nginx
- name : firewall-sshd
2022-06-01 10:39:40 +00:00
image : linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
2018-01-21 16:03:45 +00:00
command : [ "/bin/bash" , "-c" , "/sbin/iptables-restore < /etc/iptables/rules-sshd.v4; /sbin/ip6tables-restore < /etc/iptables/rules.v6" ]
binds :
- /etc/iptables/rules-sshd.v4:/etc/iptables/rules-sshd.v4:ro
- /etc/iptables/rules.v6:/etc/iptables/rules.v6:ro
net : /run/netns/sshd
services :
2018-12-10 01:16:07 +00:00
# - name: getty
2022-06-01 10:39:40 +00:00
# image: linuxkit/getty:76951a596aa5e0867a38e28f0b94d620e948e3e8
2018-12-10 01:16:07 +00:00
# env:
# - INSECURE=true
2020-01-30 18:04:41 +00:00
# Enable acpi to shutdown on power events
- name : acpid
2022-06-01 10:39:40 +00:00
image : linuxkit/acpid:c05a368754f6436b326945dc16135ba547568d8d
2018-01-21 16:03:45 +00:00
- name : rngd
2022-06-01 10:39:40 +00:00
image : linuxkit/rngd:4f85d8de3f6f45973a8c88dc8fba9ec596e5495a
2019-01-17 06:55:05 +00:00
- name : dhcpcd
2022-06-01 10:39:40 +00:00
image : linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450
2019-01-17 06:55:05 +00:00
net : /run/netns/nginx
binds :
- /etc/dhcpcd.conf:/dhcpcd.conf:ro
2018-01-21 16:03:45 +00:00
- name : nginx
image : nginx:alpine
capabilities :
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
2019-01-19 11:41:32 +00:00
tmpfs :
- /var/cache
2018-01-21 16:03:45 +00:00
binds :
- /etc/hosts:/etc/hosts:ro
- /etc/resolv.conf:/etc/resolv.conf:ro
- /etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/nginx/ssl/:/etc/nginx/ssl/:ro
- /etc/nginx/fic-auth.conf:/etc/nginx/fic-auth.conf:ro
2021-09-05 03:23:55 +00:00
- /etc/nginx/fic-get-team.conf:/etc/nginx/fic-get-team.conf:ro
2018-01-21 16:03:45 +00:00
- /www/htdocs-frontend:/srv/htdocs-frontend:ro
- /var/lib/fic/files:/srv/FILES:ro
- /var/lib/fic/pki:/srv/PKI:ro
2020-01-23 12:06:39 +00:00
- /var/lib/fic/settingsdist:/srv/SETTINGSDIST:ro
2018-01-21 16:03:45 +00:00
- /var/lib/fic/startingblock:/srv/startingblock:ro
- /var/lib/fic/teams:/srv/TEAMS:ro
net : /run/netns/nginx
pid : new
ipc : new
uts : new
runtime :
mkdir :
- /var/lib/fic/files
- /var/lib/fic/pki
- /var/lib/fic/startingblock
2020-01-23 12:06:39 +00:00
- /var/lib/fic/settingsdist
2018-01-21 16:03:45 +00:00
- /var/lib/fic/teams
- name : fic-frontend
2022-11-07 15:31:19 +00:00
image : nemunaire/fic-frontend:latest@sha256:cf83f1d46678291eda02c9362eb9897bae3156e5c302ae79b1910c25e2b611bf
2018-01-21 16:03:45 +00:00
command : [ "/srv/frontend" , "-bind=:8080" , "-startedFile=/srv/startingblock/started" ]
binds :
- /etc/hosts:/etc/hosts:ro
- /var/lib/fic/files:/srv/FILES:ro
2022-06-08 00:51:17 +00:00
- /var/lib/fic/settingsdist:/srv/SETTINGSDIST:ro
2018-01-21 16:03:45 +00:00
- /var/lib/fic/startingblock:/srv/startingblock
- /var/lib/fic/submissions:/srv/submissions
- /var/lib/fic/teams:/srv/TEAMS:ro
net : /run/netns/fic-frontend
runtime :
mkdir :
- /var/lib/fic/files
2020-01-23 12:06:39 +00:00
- /var/lib/fic/settingsdist
2018-01-21 16:03:45 +00:00
- /var/lib/fic/startingblock
- /var/lib/fic/submissions
- /var/lib/fic/teams
2022-06-06 10:55:39 +00:00
- name : fic-remote-challenge-sync-airbus
image : nemunaire/fic-remote-challenge-sync-airbus:latest
2021-09-09 09:23:20 +00:00
env :
2022-06-06 10:55:39 +00:00
- AIRBUS_BASEURL=https://....
- AIRBUS_TOKEN=abcdef0123456789abcdef0123456789
- AIRBUS_SESSIONID=42
2021-09-09 09:23:20 +00:00
binds :
- /etc/hosts:/etc/hosts:ro
- /var/lib/fic/teams:/srv/TEAMS:ro
2022-11-07 15:31:19 +00:00
- /var/lib/fic/remote:/srv/REMOTE
runtime :
mkdir :
- /var/lib/fic/remote
2021-09-09 09:23:20 +00:00
net : /run/netns/nginx
2018-01-21 16:03:45 +00:00
- name : sshd
2021-09-04 15:09:40 +00:00
image : nemunaire/rsync:5d1f678641de2197041f4bc4c745e7748bedab02
2019-01-17 07:13:11 +00:00
capabilities :
- all
2018-01-21 16:03:45 +00:00
binds :
- /etc/hosts:/etc/hosts:ro
2019-12-16 13:47:00 +00:00
- /var/lib/fic/ssh:/etc/ssh:ro
2018-01-21 16:03:45 +00:00
- /root/.ssh/id_synchro.pub:/root/.ssh/authorized_keys:ro
- /var/lib/fic/files:/srv/FILES
- /var/lib/fic/pki:/srv/PKI
2022-06-08 00:51:17 +00:00
- /var/lib/fic/settingsdist:/srv/SETTINGSDIST
2018-01-21 16:03:45 +00:00
- /var/lib/fic/submissions:/srv/submissions
- /var/lib/fic/teams:/srv/TEAMS
2020-01-30 17:51:06 +00:00
- /var/log:/var/log:ro
2018-01-21 16:03:45 +00:00
net : /run/netns/sshd
runtime :
mkdir :
- /var/lib/fic/files
- /var/lib/fic/pki
2022-06-08 00:51:17 +00:00
- /var/lib/fic/settingsdist
2019-12-16 13:47:00 +00:00
- /var/lib/fic/ssh
2018-01-21 16:03:45 +00:00
- /var/lib/fic/submissions
- /var/lib/fic/teams
2021-09-05 10:40:09 +00:00
# - name: dhcp-server
# image: joebiellik/dhcpd
# binds:
# - /etc/dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf:ro
# capabilities:
# - CAP_NET_BIND_SERVICE
# - CAP_NET_RAW
# - CAP_DAC_OVERRIDE
# net: /run/netns/nginx
# pid: new
# ipc: new
# uts: new
# - name: dns-server
# image: nemunaire/unbound:a7c841a408e5e3cc27b920cd70c806093f04687c
# binds:
# - /etc/unbound/unbound.d:/etc/unbound/unbound.d:ro
# net: /run/netns/nginx
2018-01-21 16:03:45 +00:00
2021-09-05 10:39:36 +00:00
- name : dexidp
2022-06-01 10:39:40 +00:00
image : ghcr.io/dexidp/dex:v2.31.2
2021-09-05 10:39:36 +00:00
net : /run/netns/auth
binds :
- /etc/hosts:/etc/hosts:ro
- /var/lib/fic/pki/shared/dex-config.yaml:/etc/dex/config.docker.yaml:ro
- /var/lib/fic/dex:/var/dex
- /www/dex-templates/theme/styles.css:/srv/dex/web/themes/light/styles.css
- /www/dex-templates/templates/header.html:/srv/dex/web/templates/header.html
- /var/lib/fic/pki/shared/dex-password.tpl:/srv/dex/web/templates/password.html
- /www/htdocs-frontend/img/fic.png:/srv/dex/web/themes/light/favicon.png
runtime :
mkdir :
- /var/lib/fic/dex
- name : vouch-proxy
2022-06-01 10:39:40 +00:00
image : quay.io/vouch/vouch-proxy:alpine-0.37
2021-09-05 10:39:36 +00:00
env :
- VOUCH_ALLOWALLUSERS=true
- VOUCH_COOKIE_DOMAIN=fic.srs.epita.fr
- VOUCH_DOCUMENT_ROOT=/challenge_access
- VOUCH_LOGLEVEL=debug
- OAUTH_PROVIDER=oidc
- OAUTH_CLIENT_ID=epita-challenge
- OAUTH_CLIENT_SECRET=N4n7AXzK9kpXt3TmSn8wAgtxqxhGORgcubLaE2g
- OAUTH_CALLBACK_URL=https://fic.srs.epita.fr/challenge_access/auth
- OAUTH_AUTH_URL=https://fic.srs.epita.fr/auth
- OAUTH_TOKEN_URL=http://127.0.0.1:5556/token
- OAUTH_USER_INFO_URL=http://127.0.0.1:5556/userinfo
- OAUTH_SCOPES=openid,email
net : /run/netns/auth
2018-01-21 16:03:45 +00:00
files :
2022-06-02 09:41:12 +00:00
- path : etc/init.d/001-hostname
contents : |
#!/bin/sh
/bin/hostname phobos
mode : "0555"
2022-06-02 18:11:35 +00:00
- path : etc/profile.d/color_prompt.sh
contents : |
PS1='\[\e[1;35m\]'$PS1'\[\e[0m\]'
mode : "0444"
2020-01-30 18:02:19 +00:00
- path : etc/init.d/015-setup-sshd
source : configs/sshd-setup.sh
mode : "0555"
2021-09-05 10:40:09 +00:00
- path : etc/init.d/016-copy-dex-config
contents : |
#!/bin/sh
2021-09-05 10:39:36 +00:00
[ -f /var/lib/fic/pki/shared/dex-config.yaml ] || {
cp /etc/dex/config.auth.yaml /var/lib/fic/pki/shared/dex-config.yaml
}
[ -f /var/lib/fic/pki/shared/dex-password.tpl ] || {
cp /www/dex-templates/templates/password.html /var/lib/fic/pki/shared/dex-password.tpl
2021-09-05 10:40:09 +00:00
}
mode : "0555"
2020-01-30 18:02:19 +00:00
2021-09-04 15:09:40 +00:00
- path : /containers/onboot/000-sysctl/rootfs/etc/sysctl.d/01-fic.conf
2019-01-17 08:11:13 +00:00
source : configs/sysctl-frontend.conf
mode : "0444"
2018-01-21 16:03:45 +00:00
- path : etc/nginx/ssl/dhparams-4096.pem
source : configs/dhparams-4096.pem
mode : "0444"
- path : etc/nginx/ssl/fullchain.pem
source : configs/fic.srs.epita.fr/fullchain.pem
mode : "0444"
- path : etc/nginx/ssl/privkey.pem
source : configs/fic.srs.epita.fr/privkey.pem
mode : "0440"
- path : etc/hosts
source : configs/hosts
mode : "0644"
- path : root/.ssh/authorized_keys
source : configs/authorized_keys
mode : "0400"
- path : root/.ssh/id_synchro.pub
source : configs/id_ed25519.pub
mode : "0400"
- path : etc/dhcp/dhcpd.conf
source : configs/dhcpd.conf
mode : "0400"
- path : etc/nginx/conf.d/default.conf
2021-09-05 03:23:55 +00:00
source : configs/nginx/base/prod.conf
2018-01-21 16:03:45 +00:00
mode : "0400"
- path : etc/nginx/fic-auth.conf
2021-09-05 03:23:55 +00:00
source : configs/nginx/auth/oidc.conf
mode : "0400"
- path : etc/nginx/fic-get-team.conf
source : configs/nginx/get-team/oidc.conf
2018-01-21 16:03:45 +00:00
mode : "0400"
2021-09-05 10:39:36 +00:00
- path : etc/dex/config.auth.yaml
source : configs/dex.yaml
mode : "0400"
- path : www/dex-templates/theme/styles.css
source : configs/dex-templates/theme/styles.css
mode : "0444"
- path : www/dex-templates/templates/header.html
source : configs/dex-templates/templates/header.html
mode : "0444"
- path : www/dex-templates/templates/password.html
source : configs/dex-templates/templates/password.html
mode : "0444"
2018-01-21 16:03:45 +00:00
2019-01-19 13:34:07 +00:00
- path : usr/bin/iptables
source : configs/nsenter_iptables.sh
mode : "0755"
- path : usr/bin/pnsenter
source : configs/nsenter_process.sh
mode : "0755"
2021-09-09 09:23:20 +00:00
- path : etc/resolv.conf
contents : |
nameserver 9.9.9.9
mode : "0444"
2019-01-17 06:55:05 +00:00
- path : etc/dhcpcd.conf
contents : |
allowinterfaces internet
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option interface_mtu
require dhcp_server_identifier
slaac private
nodelay
noarp
waitip 4
mode : "0440"
2020-01-30 18:08:28 +00:00
- path : etc/unbound/unbound.d/tmp-user.conf
contents : |
username : ""
mode : "0440"
# - path: etc/unbound/unbound.d/forwarder.conf
# contents: |
# forward-zone:
# name: "."
# forward-addr: 9.9.9.9
# forward-addr: 1.1.1.1
# mode: "0440"
2019-01-17 07:10:47 +00:00
- path : etc/unbound/unbound.d/access-control.conf
contents : |
access-control : 172.23 .0 .0 /16 allow
mode : "0440"
- path : etc/unbound/unbound.d/local-zone.conf
contents : |
local-zone : "srs.epita.fr" typetransparent
local-data : "fic.srs.epita.fr A 172.23.42.1"
local-data-ptr : "172.23.42.1 fic.srs.epita.fr"
mode : "0440"
2018-01-21 16:03:45 +00:00
- path : etc/iptables/rules.v6
contents : |
*filter
: INPUT DROP [0:0]
: FORWARD DROP [0:0]
: OUTPUT DROP [0:0]
COMMIT
mode : "0440"
- path : etc/iptables/rules-sshd.v4
contents : |
*filter
: INPUT DROP [0:0]
: FORWARD DROP [0:0]
: OUTPUT DROP [0:0]
[ 0 : 0 ] -A INPUT -i lo -j ACCEPT
[ 0 : 0 ] -A INPUT -m conntrack --ctstate INVALID -j DROP
[ 0 : 0 ] -A INPUT -p icmp -j ACCEPT
[ 0 : 0 ] -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
2022-06-04 16:09:33 +00:00
[ 0 : 0 ] -A INPUT -i eth2 -s 10.10.10.0/29 -p tcp -m conntrack --ctstate NEW -m tcp --dport ssh -j ACCEPT
2018-01-21 16:03:45 +00:00
[ 0 : 0 ] -A INPUT -j LOG
[ 0 : 0 ] -A FORWARD -j LOG
[ 0 : 0 ] -A OUTPUT -o lo -j ACCEPT
[ 0 : 0 ] -A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
[ 0 : 0 ] -A OUTPUT -j LOG
[ 0 : 0 ] -A OUTPUT -j REJECT
COMMIT
mode : "0440"
- path : etc/iptables/rules-frontal.v4
contents : |
2020-01-30 18:08:28 +00:00
*nat
: PREROUTING ACCEPT [0:0]
: INPUT ACCEPT [0:0]
: OUTPUT ACCEPT [0:0]
: POSTROUTING ACCEPT [0:0]
[ 0 : 0 ] -A POSTROUTING -o internet -j MASQUERADE
COMMIT
2018-01-21 16:03:45 +00:00
*filter
: INPUT DROP [0:0]
2019-01-17 06:55:05 +00:00
: FORWARD ACCEPT [0:0]
2018-01-21 16:03:45 +00:00
: OUTPUT DROP [0:0]
[ 0 : 0 ] -A INPUT -i lo -j ACCEPT
[ 0 : 0 ] -A INPUT -m conntrack --ctstate INVALID -j DROP
[ 0 : 0 ] -A INPUT -p icmp --icmp-type 8 -j ACCEPT
[ 0 : 0 ] -A INPUT -p icmp --icmp-type 0 -j ACCEPT
2019-01-17 07:10:47 +00:00
[ 0 : 0 ] -A INPUT -i bond-frontal -p udp -m udp --dport domain -j ACCEPT
2018-01-21 16:03:45 +00:00
[ 0 : 0 ] -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
2019-01-17 07:10:47 +00:00
[ 0 : 0 ] -A INPUT -i bond-frontal -p tcp -m conntrack --ctstate NEW -m tcp --dport domain -j ACCEPT
2018-01-21 16:03:45 +00:00
[ 0 : 0 ] -A INPUT -i bond-frontal -p tcp -m conntrack --ctstate NEW -m tcp --dport http -j ACCEPT
[ 0 : 0 ] -A INPUT -i bond-frontal -p tcp -m conntrack --ctstate NEW -m tcp --dport https -j ACCEPT
[ 0 : 0 ] -A INPUT -j LOG
[ 0 : 0 ] -A FORWARD -j LOG
[ 0 : 0 ] -A OUTPUT -o lo -j ACCEPT
[ 0 : 0 ] -A OUTPUT -p icmp --icmp-type 0 -j ACCEPT
[ 0 : 0 ] -A OUTPUT -p icmp --icmp-type 8 -j ACCEPT
2019-01-17 07:10:47 +00:00
[ 0 : 0 ] -A OUTPUT -o bond-frontal -p udp -m udp --sport domain -j ACCEPT
2021-09-09 09:23:20 +00:00
[ 0 : 0 ] -A OUTPUT -o bond-frontal -d 9.9.9.9 -p udp -m udp --dport domain -j ACCEPT
[ 0 : 0 ] -A OUTPUT -o bond-frontal -d 9.9.9.9 -p tcp -m tcp --dport domain -j ACCEPT
[ 0 : 0 ] -A OUTPUT -o bond-frontal -d 94.23.5.143 -p tcp -m tcp --dport https -j ACCEPT
2018-01-21 16:03:45 +00:00
[ 0 : 0 ] -A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
2019-01-17 06:55:05 +00:00
[ 0 : 0 ] -A OUTPUT -o vethin-nginx -d 172.17.1.3 -p tcp -m conntrack --ctstate NEW -m tcp --dport 8080 -j ACCEPT
2021-09-05 10:39:36 +00:00
[ 0 : 0 ] -A OUTPUT -o vethin-nginx -d 172.17.1.4 -p tcp -m conntrack --ctstate NEW -m tcp --dport 5556 -j ACCEPT
[ 0 : 0 ] -A OUTPUT -o vethin-nginx -d 172.17.1.4 -p tcp -m conntrack --ctstate NEW -m tcp --dport 9090 -j ACCEPT
2019-01-17 06:55:05 +00:00
[ 0 : 0 ] -A OUTPUT -o internet -j ACCEPT
2018-01-21 16:03:45 +00:00
[ 0 : 0 ] -A OUTPUT -j LOG
[ 0 : 0 ] -A OUTPUT -j REJECT
COMMIT
mode : "0440"
2020-01-30 18:03:14 +00:00
- path : etc/dm-crypt/key
source : configs/dm-crypt.key
mode : "0440"
2018-01-21 16:03:45 +00:00
trust :
org :
- linuxkit
- library