Skip to content

Commit 33953b1

Browse files
committed
bob-l1: move bob firewall into /etc/bob
1 parent 54ef03c commit 33953b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bob-common/mkosi.extra/usr/bin/init-firewall.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set -eu -o pipefail
2020
# ├(loopback?)─> ACCEPT
2121
# └─> default DROP
2222
#
23-
# - There are no ports opened in this file, refer to bob*/mkosi.extra/etc/firewall-config
23+
# - There are no ports opened in this file, refer to bob*/mkosi.extra/etc/bob/firewall-config
2424
# for actual chain rules.
2525
# - Mode-specific ESTABLISHED/RELATED connections are killed by
2626
# `conntrack -D ...` upon mode toggle.
@@ -98,7 +98,7 @@ iptables -A OUTPUT ! -o lo -d 127.0.0.0/8 -j DROP
9898

9999
###########################################################################
100100
#
101-
# Some helper functions to reduce boilerplate in /etc/firewall-config
101+
# Some helper functions to reduce boilerplate in /etc/bob/firewall-config
102102
#
103103
###########################################################################
104104
accept_dst_port() {
@@ -135,11 +135,11 @@ drop_dst_ip() {
135135

136136
###########################################################################
137137
# (5) Load firewall rules in {MAINTENANCE,PRODUCTION}_{IN,OUT} chains.
138-
# Those are customized per image, see bob*/mkosi.extra/etc/firewall-config
138+
# Those are customized per image, see bob*/mkosi.extra/etc/bob/firewall-config
139139
#
140140
# `source` is not supported in dash
141141
###########################################################################
142-
. /etc/firewall-config
142+
. /etc/bob/firewall-config
143143

144144
###########################################################################
145145
# (6) Start in Maintenance Mode

0 commit comments

Comments
 (0)