Skip to content

Commit 360c874

Browse files
authored
Merge pull request #1690 from CactuseSecurity/develop
Develop new stable release 5.6.9
2 parents 37e0702 + 801f75d commit 360c874

73 files changed

Lines changed: 747 additions & 373 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@
5050
"PYTHONPATH": "${PYTHONPATH}:${workspaceRoot}"
5151
},
5252
"args": [
53-
"-m55",
54-
"-d0",
53+
"-m8",
54+
"-d4",
5555
"-f",
56+
//"-ihttps://fwodemodata.cactus.de/demo04_cpr8x.json",
5657
//"-c",
5758
// 41 - lab fortimanager
58-
//"-i/home/tim/tmp/configs/mgm_id_53_config_native.json.8.anon",
59+
//"-i/tmp/mgm_id_8_config_native.json",
5960
//"-i/home/tim/tmp/configs/mgm_id_56_config_native.json.anon", // all rules, all objs local mgm_id 4
6061
// "-i/home/tim/tmp/configs/mgm_id_56_config_native.json.anon", // 30k rules, local mgm_id 45
6162
//"-i/home/tim/tmp/configs/mgm_id_52_config_native.json.anon", // many gateways, local mgm_id 49

ansible.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ fact_caching = jsonfile
1515
fact_caching_timeout = 7200
1616

1717
[ssh_connection]
18-
pipelining = True
18+
# from ansible 2.10 onwards, pipelining does not work anymore
19+
# instead the ansible playbook must be run via sudo
20+
pipelining = False

documentation/auth/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ insert into hdb_catalog.hdb_permission (table_schema, table_name, role_name, per
183183
"ssh_port",
184184
"ssh_user",
185185
"last_import_md5_complete_config",
186-
"last_import_md5_rules",
187-
"last_import_md5_objects",
188-
"last_import_md5_users",
189186
"do_not_import",
190187
"clearing_import_ran",
191188
"force_initial_import",

documentation/database/database-docu.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,14 @@ FROM pg_stat_activity
3838
WHERE pg_stat_activity.datname = '[Database to copy]'
3939
AND pid <> pg_backend_pid();
4040
```
41+
42+
### quick and dirty debugging
43+
44+
```
45+
...$ sudo su - postgres
46+
...$ psql -U postgres
47+
postgres-# \c fworchdb
48+
fworchdb-# \dt
49+
fworchdb-# \x
50+
fworchdb-# SELECT * FROM my_table;
51+
```

documentation/installer/install-advanced.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ always change into the firewwall-orchestrator directory before starting the inst
99
The following switch can be used to set the type of installation to perform
1010

1111
```console
12-
ansible-playbook -e "installation_mode=upgrade" site.yml -K
12+
sudo ansible-playbook -e "installation_mode=upgrade" site.yml -K
1313
```
1414

1515
If you want to drop the database and re-install from scratch, do the following:
1616

1717
```console
18-
ansible-playbook -e "installation_mode=uninstall" site.yml -K
19-
ansible-playbook -e "installation_mode=new" site.yml -K
18+
sudo ansible-playbook -e "installation_mode=uninstall" site.yml -K
19+
sudo ansible-playbook -e "installation_mode=new" site.yml -K
2020
```
2121

2222
installation_mode options:
@@ -30,7 +30,7 @@ installation_mode options:
3030
e.g. with IP 1.2.3.4, listening on port 3128<br>
3131

3232
```console
33-
ansible-playbook -e "http_proxy=http://1.2.3.4:3128 https_proxy=http://1.2.3.4:3128" site.yml -K
33+
sudo ansible-playbook -e "http_proxy=http://1.2.3.4:3128 https_proxy=http://1.2.3.4:3128" site.yml -K
3434
```
3535

3636
use the following syntax for authenticated proxy access:
@@ -60,7 +60,7 @@ NB: for vscode-debugging, you also need access to
6060
e.g. if your hasura metadata file needs to be re-created from scratch, then use the following switch:
6161

6262
```console
63-
ansible-playbook -e "api_no_metadata=yes" site.yml -K
63+
sudo ansible-playbook -e "api_no_metadata=yes" site.yml -K
6464
```
6565

6666
### Parameter "install_syslog" allows disabling of separate syslog installation
@@ -69,7 +69,7 @@ Default value is install_syslog=yes but if you already have a syslog service run
6969

7070
run installation without syslog installation:
7171
```console
72-
ansible-playbook -e "install_syslog=no" site.yml -K
72+
sudo ansible-playbook -e "install_syslog=no" site.yml -K
7373
```
7474

7575
Here is a sample config you can use for configuring your already running syslog:
@@ -130,12 +130,11 @@ rsyslog config
130130
### Parameter "api_docu" to install API documentation
131131

132132
Generating a full hasura (all tables, etc. tracked) API documentation currently requires
133-
- 2.3 GB additional hdd space (at least 10 GB total for test install)
133+
- at least 10 GB total free hdd for test install
134134
- a minimum of 8 GB RAM
135-
- 4 minutes to generate
136135

137136
```console
138-
cd firewall-orchestrator; ansible-playbook -e "api_docu=yes" site.yml -K
137+
sudo ansible-playbook -e "api_docu=yes" site.yml -K
139138
```
140139

141140
api docu can then be accessed at <https://server/api_schema/index.html>
@@ -150,7 +149,7 @@ The following options exist for communication to the UI:
150149

151150
Example:
152151
```console
153-
cd firewall-orchestrator; ansible-playbook -e "ui_comm_mode=no_ws" site.yml -K
152+
sudo ansible-playbook -e "ui_comm_mode=no_ws" site.yml -K
154153
```
155154

156155
## User interface server name and aliases
@@ -159,11 +158,11 @@ To make sure that firewall orchestrator UI webserver responds to the correct DNS
159158

160159
Example to set fwodemo.cactus.de as webserver name:
161160
```console
162-
cd firewall-orchestrator; ansible-playbook -e "ui_server_name='fwodemo.cactus.de'" site.yml -K
161+
sudo ansible-playbook -e "ui_server_name='fwodemo.cactus.de'" site.yml -K
163162
```
164163
Example to set fwodemo.cactus.de and two additional aliases as websrver names:
165164
```console
166-
cd firewall-orchestrator; ansible-playbook -e "ui_server_name=fwodemo.cactus.de ui_server_alias=' fwo1.cactus.de fwo2.cactus.de'" site.yml -K
165+
sudo ansible-playbook -e "ui_server_name=fwodemo.cactus.de ui_server_alias=' fwo1.cactus.de fwo2.cactus.de'" site.yml -K
167166
```
168167

169168
## User interface Server Alias string
@@ -172,11 +171,11 @@ To be able to configure your webserver name, you may add the following parameter
172171

173172
Example to set fwodemo.cactus.de as websrver name:
174173
```console
175-
cd firewall-orchestrator; ansible-playbook -e "ui_server_alias='fwodemo.cactus.de'" site.yml -K
174+
sudo ansible-playbook -e "ui_server_alias='fwodemo.cactus.de'" site.yml -K
176175
```
177176
Example to set fwodemo.cactus.de and fwo2.cactus.de as websrver names:
178177
```console
179-
cd firewall-orchestrator; ansible-playbook -e "ui_server_alias='fwodemo.cactus.de fwo2.cactus.de'" site.yml -K
178+
sudo ansible-playbook -e "ui_server_alias='fwodemo.cactus.de fwo2.cactus.de'" site.yml -K
180179
```
181180

182181
## Distributed setup with multiple servers

documentation/installer/install-for-testing.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This includes:
1212
Note: the relevant secrets are displayed at the very end of the installation. They can also be found in the etc/secrets directory.
1313

1414
```console
15-
ansible-playbook/ site.yml -e "testkeys=yes" -K
15+
sudo ansible-playbook/ site.yml -e "testkeys=yes" -K
1616
```
1717

1818
A static jwt key helps with debugging c# code in visual studio (code) - you can use a static backend (ldap & api) with these keys.
@@ -32,38 +32,38 @@ You need to
3232
Set debug level for extended debugging info during installation.
3333

3434
```console
35-
ansible-playbook/ site.yml -e "debug_level='2'" -K
35+
sudo ansible-playbook/ site.yml -e "debug_level='2'" -K
3636
```
3737
## Running integration tests after installation/upgrade
3838

3939
To only run tests (for an existing installation) use tags as follows:
4040

4141
```console
42-
ansible-playbook/ site.yml --tags test -K
42+
sudo ansible-playbook/ site.yml --tags test -K
4343
```
4444

4545
## Running unit tests only
4646

4747
To only run tests (for an existing installation, can only be combined with installation_mode=upgrade) use tags as follows:
4848

4949
```console
50-
ansible-playbook site.yml --tags unittest -e "installation_mode=upgrade" -K
50+
sudo ansible-playbook site.yml --tags unittest -e "installation_mode=upgrade" -K
5151
```
5252

5353
## Parameter "api_no_metadata" to prevent meta data import
5454

5555
e.g. if your hasura metadata file needs to be re-created from scratch, then use the following switch::
5656

5757
```console
58-
ansible-playbook -e "api_no_metadata=yes" site.yml -K
58+
sudo ansible-playbook -e "api_no_metadata=yes" site.yml -K
5959
```
6060

6161
## Parameter "add_demo_data" to avoid creation of sample data (i.e. in production)
6262

6363
The following command prevents the creation of sample data in the database:
6464

6565
```console
66-
ansible-playbook -e "add_demo_data=no" site.yml -K
66+
sudo ansible-playbook -e "add_demo_data=no" site.yml -K
6767
```
6868

6969
note: demo/sample data can also be removed via settings menues.
@@ -73,20 +73,20 @@ note: demo/sample data can also be removed via settings menues.
7373
if you want to install a second ldap database "dc=example,dc=com"
7474

7575
```console
76-
cd firewall-orchestrator; ansible-playbook -e "second_ldap_db=yes" site.yml -K
76+
sudo ansible-playbook -e "second_ldap_db=yes" site.yml -K
7777
```
7878

7979
### Parameter "sample_data_rate" to ramp up sample data
8080

8181
if you want to create sample-data changes every minute set sample_data_rate to high
8282

8383
```console
84-
cd firewall-orchestrator; ansible-playbook -e "sample_data_rate=high" site.yml -K
84+
sudo ansible-playbook -e "sample_data_rate=high" site.yml -K
8585
```
8686
### Parameter "audit_user" to add an audit user to ldap db - useful for demo installation
8787

8888
if you want to have an extra read-only audit-user called e.g. auditor1, use the following command for installation:
8989

9090
```console
91-
cd firewall-orchestrator; ansible-playbook -e "audit_user=auditor1 auditor_initial_pwd=<pwd>" site.yml -K
91+
sudo ansible-playbook -e "audit_user=auditor1 auditor_initial_pwd=<pwd>" site.yml -K
9292
```

documentation/installer/server-install.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ git clone https://github.com/CactuseSecurity/firewall-orchestrator.git
2424
3) Operating specific ansible adjustments
2525
- Ubuntu 18.04, Debian 10: install latest ansible before firewall orchestrator installation:
2626

27-
cd firewall-orchestrator; ansible-playbook scripts/install-latest-ansible.yml -K
28-
29-
- Debian 11: install without pipelining: comment out "pipelining = True" in ansible.cfg
27+
cd firewall-orchestrator; sudo ansible-playbook scripts/install-latest-ansible.yml -K
3028

3129
4) install (on localhost)
3230

3331
```console
34-
cd firewall-orchestrator; ansible-playbook site.yml -K
32+
cd firewall-orchestrator; sudo ansible-playbook site.yml -K
3533
```
3634
Note: The installation (i.e. the connection to the target machine) is only done in root context (sudo) to secure the writing of temporary files when becoming a non-priviledged user (e.g. postgres).
3735

documentation/installer/server-upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ it is really simple:
55
```console
66
cd firewall-orchestrator
77
git pull
8-
ansible-playbook site.yml -K -e "installation_mode=upgrade"
8+
sudo ansible-playbook site.yml -K -e "installation_mode=upgrade"
99
```

documentation/revision-history.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,6 @@ adding report template format fk and permissions
211211
### 5.6.8
212212
- no end ip address for obj types <> range
213213
- fixing range display in reporting
214+
215+
### 5.6.9
216+
- handle import attempts

inventory/group_vars/all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### general settings
2-
product_version: "5.6.8"
2+
product_version: "5.6.9"
33
ansible_python_interpreter: /usr/bin/python3
44
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
55
product_name: fworch
@@ -115,4 +115,5 @@ http_conf_dir: /etc/{{ webserver_package_name }}/sites-available/
115115
################# testing #########################
116116
test_dir: "{{ fworch_home }}/test"
117117
test_fortigate_name: "fortigate{{ test_postfix }}"
118+
test_checkpoint_name: "checkpoint{{ test_postfix }}"
118119
csharp_test_start_dir: "{{ fworch_home }}/test/csharp/FWO.Test"

0 commit comments

Comments
 (0)