Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/inv 41 Firewalld in PF #8055

Open
wants to merge 398 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
398 commits
Select commit Hold shift + click to select a range
73db81f
Firewalld Add all missing services, move from radius to radiusd
JeGoi Apr 1, 2024
f7de54c
Firewalld @radius_int is list of objects
JeGoi Apr 1, 2024
8c40c57
Firewalld Try to fix protocols and helpers
JeGoi Apr 1, 2024
42e4961
Firewalld Fix protocols and helpers
JeGoi Apr 1, 2024
9fc19ce
Firewalld Fix policies
JeGoi Apr 1, 2024
66329ed
Firewalld fix haproxy admin service
JeGoi Apr 1, 2024
0587a92
Firewalld fix firewalld function
JeGoi Apr 1, 2024
6f9795e
Firewalld fix default services
JeGoi Apr 1, 2024
55cc48d
Firewalld fix protocols in default interface config
JeGoi Apr 1, 2024
da6fc3c
Firewalld Fix default zone value
JeGoi Apr 1, 2024
1eb7fa6
Firewalld Remove print from services
JeGoi Apr 1, 2024
5bb05d2
Firewalld Add dependencies in firewalld service
JeGoi Apr 1, 2024
aaa81fe
Firewalld fix missing function
JeGoi Apr 1, 2024
7eedd34
Firewalld Fix add with permanent
JeGoi Apr 2, 2024
620cd7e
Firewalld Add reload at the end of each function
JeGoi Apr 2, 2024
e0fcb2a
Firewalld fix systemd services
JeGoi Apr 2, 2024
05bd4b7
Firewalld Fix protocol in template
JeGoi Apr 2, 2024
1bed0b8
Firewalld improve default set to management
JeGoi Apr 2, 2024
e076fb7
Firewalld fix firewalld system service
JeGoi Apr 2, 2024
aa33619
Firewalld Add masquerade on management
JeGoi Apr 2, 2024
0e727a3
Firewalld fix several function, from filter to nat
JeGoi Apr 2, 2024
3347efe
Firewalld remove extra files
JeGoi Apr 2, 2024
43aad6e
Firewalld pfcmd for firewalld configuration
JeGoi Apr 2, 2024
3e3e0e4
Firewalld pfcmd for firewalld configuration (2)
JeGoi Apr 2, 2024
e3f6b01
Firewalld Fix venom tests
JeGoi Apr 3, 2024
bcd4bcb
Firewalld Remove iptables reference from services
JeGoi Apr 3, 2024
a2d21e4
Firewalld Fix first PR review
JeGoi Apr 3, 2024
a0ce976
Firewalld Fix manager and service
JeGoi Apr 4, 2024
1ce1c5a
Firewalld Change intallation
JeGoi Apr 4, 2024
56ac40e
Firewalld Remove iptables
JeGoi Apr 4, 2024
d8346a1
Firewalld Add stop and disable packetfence-iptables when generate config
JeGoi Apr 4, 2024
ab93be8
Firewalld Merge iptables.pm in ipset.pm
JeGoi Apr 4, 2024
3512d48
Firewalld Wakeup Gitlab
JeGoi Apr 4, 2024
cfafa2d
Firewalld Remove iptables from debian patch
JeGoi Apr 4, 2024
c16e8c4
Firewalld Update corpyright date
JeGoi Apr 4, 2024
fc0333e
Revert "Firewalld Wakeup Gitlab"
JeGoi Apr 4, 2024
8195484
Firewalld Fix copy since firewalld moved to conf
JeGoi Apr 5, 2024
d2228b6
Firewalld Fix debianize.patch (3)
JeGoi Apr 5, 2024
a2a3a62
Firewalld remove iptable from vagrant
JeGoi Apr 5, 2024
33b8513
Firewalld try to fix building
JeGoi Apr 5, 2024
b569535
Firewalld Update rpm spec
JeGoi Apr 9, 2024
bae0297
Firewalld Update example files
JeGoi Apr 9, 2024
18388d7
Firewalld Add conf defaults
JeGoi Apr 9, 2024
e9b84ca
Firewalld remove config files for rpm packaging
JeGoi Apr 9, 2024
70aa477
Firewalld Update other PF services
JeGoi Apr 9, 2024
da3b244
Firewalld Fix debian patch according to services
JeGoi Apr 9, 2024
ed6e6cb
Firewalld Remove iptables from pfconnector
JeGoi Apr 9, 2024
184a62e
Firewalld Remove systemd dependencies for services that starts at boot
JeGoi Apr 9, 2024
43599c5
Firewalld Fix debian/services
JeGoi Apr 9, 2024
5fd99d4
Firewalld Remove dependencies to firewalld since started before durin…
JeGoi Apr 9, 2024
25b9e79
Firewalld Update debian/rules by removeing iptables and add firewalld
JeGoi Apr 9, 2024
4bd361c
Firewalld Bring back minnimal rules for docker if packetfence-firewal…
JeGoi Apr 9, 2024
1047495
Firewalld fix patches/debianize
JeGoi Apr 10, 2024
0391161
Firewalld Bring back minnimal rules for docker if packetfence-firewal…
JeGoi Apr 10, 2024
63d327c
Firewalld fix systemctl service
JeGoi Apr 10, 2024
df0fcb7
Firewalld remove firewalld for el8
JeGoi Apr 10, 2024
ae6f91a
Firewalld fix service stop
JeGoi Apr 10, 2024
e69af62
Firewalld Remove ref to packetfence-docker-iptables.service
JeGoi Apr 10, 2024
a5b13f5
Firewalld Fix debian/patches/debianize patch
JeGoi Apr 10, 2024
9c4f7ea
Firewalld Fix installation process
JeGoi Apr 10, 2024
383729e
Firewalld Fix vagrant add ssh since firewalld is not running yet
JeGoi Apr 10, 2024
b3988db
Firewalld Restart firewalld service after the config
JeGoi Apr 10, 2024
40b3579
Firewalld Fix service firewalld and remove extra lines
JeGoi Apr 11, 2024
d15ec2a
Firewalld Try change manager
JeGoi Apr 11, 2024
8ef03bc
Firewalld Use lib instead of manager, remove ref to old service
JeGoi Apr 11, 2024
1f70767
Firewalld Fix debian patch again
JeGoi Apr 11, 2024
26ce351
Firewalld Venom test fix service status
JeGoi Apr 11, 2024
dc1b844
Firewalld Fix service module
JeGoi Apr 11, 2024
a1884b9
Firewalld Fix systemd service
JeGoi Apr 11, 2024
6d6c188
Firewalld Better installation for el8 and deb11
JeGoi Apr 12, 2024
76b2de5
Firewalld Better PF firewalld service
JeGoi Apr 12, 2024
38f5596
Firewalld Fix debian Patch (again and again)
JeGoi Apr 12, 2024
31be473
Firewalld fix iptable_config_file
JeGoi Apr 12, 2024
251e735
Firewalld Fix remove pf iptables
JeGoi Apr 12, 2024
382fb47
Firewalld Fix missing comma in cluster constants
JeGoi Apr 15, 2024
6cfbdfa
Firewalld Vagrant allow port directly in iptables
JeGoi Apr 15, 2024
20d0929
Firewalld Change firealld default conf from nftable to iptables
JeGoi Apr 15, 2024
1fc3d66
Firewalld Vagrant Fix mixing Output Input
JeGoi Apr 15, 2024
5b38888
Firewalld Fix Insecure dependency in while running with -T
JeGoi Apr 15, 2024
195e804
Firewalld Fix firewalld manager
JeGoi Apr 15, 2024
e01bbbf
Firewalld Fix firewalld manager (2)
JeGoi Apr 15, 2024
8f40aff
Firewalld Bring back firewalld in default systemd services, take care…
JeGoi Apr 15, 2024
ab3b63a
Firewalld Fix debianize.patch (~10)
JeGoi Apr 16, 2024
4389238
Firewalld Fix reload if config there
JeGoi Apr 16, 2024
35f1ca4
Frewalld Comment lines in config example
JeGoi Apr 16, 2024
9ac2206
Firewalld Fix logger
JeGoi Apr 17, 2024
caf4ac0
Firewalld: remove CleanupModulesOnExit from config
JeGoi May 30, 2024
28b36ab
Firewalld Add ipset generate in firewalld
JeGoi May 31, 2024
2684231
Firewalld Fix ipset function in firewalld module
JeGoi Jun 3, 2024
47decad
Firewealld: fix object creation, keep create ipset config , Move ipse…
JeGoi Jun 3, 2024
955d722
Firewalld add default iptables docker rules on debian
JeGoi Jun 3, 2024
9b99ec6
Firewalld add default iptables docker rules on debian, fix bash
JeGoi Jun 3, 2024
2eba067
Firewalld Fix test on missing mgnt Tint
JeGoi Jun 4, 2024
8d49b89
Add additional check
jrouzierinverse Jun 4, 2024
5377ecf
Firewalld Fix ipset generate, fix network test
JeGoi Jun 4, 2024
a2d9d5a
Firewalld Change ipset log debug info
JeGoi Jun 4, 2024
f01f673
Firewalld Avoid firewalld service to start on install
JeGoi Jun 4, 2024
6c2c853
Firewalld Avoid firewalld service to start on install (2)
JeGoi Jun 4, 2024
a3c33a7
Firewalld fix services, remove print from service
JeGoi Jun 4, 2024
b0ed4d9
Firewalld Fix test on int
JeGoi Jun 4, 2024
a1a2b48
Firewalld Fix debianize patch again
JeGoi Jun 4, 2024
13822ef
Firewalld service add stop
JeGoi Jun 4, 2024
0993989
Firewalld debianize patch again and agin
JeGoi Jun 5, 2024
59e9a9e
Firewalld Manager remove loop on service stop in _stop
JeGoi Jun 6, 2024
65d5b7f
Firewalld Fix firewalld service stop
JeGoi Jun 6, 2024
022a1e0
Firewalld fix chains, fix reload config
JeGoi Jun 6, 2024
61cc6cd
Firewalld Fix Timeout on start
JeGoi Jun 6, 2024
d0c4735
Firewalld Fix filter vs nat
JeGoi Jun 6, 2024
8d04e14
Firewalld Debianize patch 1225
JeGoi Jun 6, 2024
61d71fe
Firewalld Move firewalld systemd to ExecStartPost and ExecStopPost
JeGoi Jun 10, 2024
eda3c6b
Firewalld Debianize patch 1225
JeGoi Jun 10, 2024
c3600a5
Firewalld: Add time/retry to test node in table for teardown
JeGoi Jun 10, 2024
01353d5
Firewalld: Add time/retry to test node in table for teardown (2)
JeGoi Jun 10, 2024
3e211da
Firewalld Fix port for haproxy-portal and httpd.portal
JeGoi Jun 10, 2024
ba89714
Firewalld Move docker minimal rules just after docker start
JeGoi Jun 10, 2024
7fbedab
Firewalld Remove sudo from default from restore iptables and docker t…
JeGoi Jun 10, 2024
979db40
Firewalld Add more rules in minimal docker rules
JeGoi Jun 10, 2024
d4a6fb5
Firewalld remove wrong copy paste
JeGoi Jun 11, 2024
482997e
Firewalld ExecPostStop to ExecStopPost
JeGoi Jun 11, 2024
f76d2d6
Firewalld Remove extra print lines
JeGoi Jun 11, 2024
8c11282
Firewalld Add missing ' at the end of Exec*Post
JeGoi Jun 11, 2024
9ad43ce
Firewalld Debianize 12266
JeGoi Jun 11, 2024
70529b0
Firewalld Add /bin/bash in Redhat spec file
JeGoi Jun 11, 2024
a822866
Firewalld Debian: Move docker minimal rules after docker restart like…
JeGoi Jun 11, 2024
e91fc2d
Firewalld Standardize systemd
JeGoi Jun 11, 2024
3a8b7ab
Firewalld service add more info in debug
JeGoi Jun 11, 2024
6f751a6
Firewalld Fix pfconnector-server starting issue
JeGoi Jun 11, 2024
50ee935
Firewalld Debianize encoregit add debian/patches/debianize.patch
JeGoi Jun 11, 2024
64121b6
Firewalld Reordering functions, add comments and fix functions name
JeGoi Jun 12, 2024
d5322c6
Firewalld Add debianize file again
JeGoi Jun 12, 2024
6803856
Firewalld avoid restart firewalld in CI to keep vagrant iptables rules
JeGoi Jun 12, 2024
6369ee7
Firewalld CI TEST allow all ports on vagrant management interface
JeGoi Jun 12, 2024
b586da2
Firewalld Add missing lib for venom
JeGoi Jun 12, 2024
7514606
Firewalld Add extra direct rules
JeGoi Jun 12, 2024
6f340c6
Firewalld Increase TimeoutStopSec for firewaldd
JeGoi Jun 12, 2024
141779f
Firewalld bring back minimal rules
JeGoi Jun 12, 2024
49b713c
Firewalld debianize them all
JeGoi Jun 12, 2024
64ef24d
Firewalld Test empty extra firewalld files
JeGoi Jun 13, 2024
212f88b
Firewalld Systemd remove before network to allow restart
JeGoi Jun 13, 2024
b42ef72
Firewalld Fix import extra util direct rule, and ignore started by #
JeGoi Jun 13, 2024
f5d338e
Firewalld transfert vagrant specific iptables in firewalld rules to b…
JeGoi Jun 13, 2024
1527718
Revert "Firewalld avoid restart firewalld in CI to keep vagrant iptab…
JeGoi Jun 13, 2024
83bcc6b
Firewalld Debianize them asap
JeGoi Jun 13, 2024
ecfc4f5
Firewalld Fix vagrant firewalld rule file if not there, add owner and…
JeGoi Jun 13, 2024
b419951
Firewalld add firewalld rules and services for pfacct
JeGoi Jun 14, 2024
558db40
Firewalld Debianize really, again, no...
JeGoi Jun 14, 2024
a8a23e4
Firewalld remove iptables from conf/documentation
JeGoi Jun 14, 2024
e810d2d
Firewalld service pfacct and radius clu to udp
JeGoi Jun 14, 2024
dfc3d2b
Firewalld remove reference to iptables in pf/conf
JeGoi Jun 14, 2024
5681876
Firewalld Set mysql root password empty, remove reference to stretch …
JeGoi Jun 17, 2024
d9383f5
Firewalld Increase a bit minimal docker iptable rules in order to hav…
JeGoi Jun 17, 2024
3247beb
Firewalld remove ref to docker_pitables in post installation for debian
JeGoi Jun 17, 2024
1f97c39
Firewalld Add snmptrapd service in firewalld
JeGoi Jun 17, 2024
2833f6a
Firewalld Add lo as zone and set default iptables parameters
JeGoi Jun 17, 2024
84f508b
Firewalld Fix typo perl variable
JeGoi Jun 18, 2024
e3ccef5
FIrewalld Add restarting packetfence-api-frontend even if called by o…
JeGoi Jun 18, 2024
d5a688d
Firewalld Test remove api restart from first steps of config
JeGoi Jun 18, 2024
fdc4047
Firewalld: Split pfqueue restart, fix service names
JeGoi Jun 18, 2024
8da34fc
Firewalld Fix start status when firewalld
JeGoi Jun 19, 2024
827a153
Firewalld Add docker source in lo
JeGoi Jun 19, 2024
75357ad
Firewalld Add few extra nat rules for docker
JeGoi Jun 19, 2024
8a19465
Firewalld Add extra lines for docker
JeGoi Jun 19, 2024
8b4c54f
Firewalld Debianize them again
JeGoi Jun 19, 2024
0830dae
Firewalld Fix nat DOCKER chain
JeGoi Jun 20, 2024
73263f8
Firewalld Add forward for interfaces
JeGoi Jun 20, 2024
a62244a
Firewalld add masquerade on interfaces
JeGoi Jun 20, 2024
998a8b3
Firewalld Fix missing action for masquerade and forward
JeGoi Jun 20, 2024
7120501
Firewalld Add log for running services
JeGoi Jun 20, 2024
9d40226
Firewalld Fix fonction rule for ipset
JeGoi Jun 26, 2024
b488129
Firewalld Add dhcp port to inline interfaces
JeGoi Jun 26, 2024
644e50c
Firewalld Fix mangle rules
JeGoi Jun 26, 2024
9892c34
Firewalld Add http and https on inline interfaces
JeGoi Jun 26, 2024
5b6d41b
Firewalld Fix mangle prerouting
JeGoi Jun 27, 2024
7c9dead
Firewalld Add forward true for eth0
JeGoi Jun 28, 2024
60c7a58
Firewalld Move mangle in one function and same for nat
JeGoi Jun 28, 2024
273a28b
Firewalld Ordering rules, Masquerade at the end, Docker in the middle…
JeGoi Jul 2, 2024
d4aff19
Firewalld Remove ref to DOCKER, Remove to be everywhere for general …
JeGoi Jul 2, 2024
ac3a1e5
Firewalld Venom fix step name to restart pfdhcplistener
JeGoi Jul 2, 2024
7442a5d
Firewalld Fix management nat postrouting
JeGoi Jul 2, 2024
d50d11b
Firewalld Venom restart pfipset after settings
JeGoi Jul 2, 2024
07e7fdb
Firewalld Remove unused var, Move vars near usage
JeGoi Jul 3, 2024
761f5ac
Firewalld Move vars near usage, Change Prerouting for interface
JeGoi Jul 3, 2024
192c569
Firewalld Add dns and dhcp services on vlan_enforcement_nets
JeGoi Jul 3, 2024
ae52349
Revert "Firewalld Debian: Move docker minimal rules after docker rest…
JeGoi Jul 4, 2024
bfd7da3
Firewalld Add missing vlan_enforcement_nets import from pf::config
JeGoi Jul 4, 2024
c364046
Revert "Firewalld Add /bin/bash in Redhat spec file"
JeGoi Jul 5, 2024
4d21635
Revert "Firewalld Move docker minimal rules just after docker start"
JeGoi Jul 5, 2024
900930c
Firewalld Push specific test rules at top of direct rules
JeGoi Jul 5, 2024
40cff96
Firewalld Remove extra layers on eth0 conf
JeGoi Jul 5, 2024
8bd0972
Firewalld: Try to fix firewalld direct rules (let's break it)
JeGoi Jul 5, 2024
70432ff
Firewalld remove empty values from default eth0 zone
JeGoi Jul 5, 2024
6646f63
Firewalld fix config reload
JeGoi Jul 5, 2024
5f1e7c9
Firewalld fix description for httpd aaa
JeGoi Jul 8, 2024
312bd63
Firewalld Add radsec port in default services config file
JeGoi Jul 8, 2024
50b3d06
Firewalld Remove comment on firewalld config example
JeGoi Jul 8, 2024
e069bd0
Firewalld Fix default configreload value, update manager with soft co…
JeGoi Jul 8, 2024
be57c79
Firewalld Reduce the number or services, use switch case
JeGoi Jul 8, 2024
ef12cd6
Firewalld Add logs info
JeGoi Jul 8, 2024
e736066
Firewalld Fix services name in Firewalld
JeGoi Jul 8, 2024
642772f
Firewalld Alphabetic Order for services
JeGoi Jul 8, 2024
bdcd556
Firewalld Add http dispatcher
JeGoi Jul 8, 2024
43b717d
Firewalld Add radius radsec port on radius auth
JeGoi Jul 8, 2024
e99b328
Firewalld Add http and https to vlan enforcement interfaces
JeGoi Jul 8, 2024
503a2af
Firewalld Change from restart firewalld service to reload firewalld c…
JeGoi Jul 8, 2024
f51c200
Firewalld Add t/venom reload config firewalld in lib as executor
JeGoi Jul 8, 2024
72b745c
Firewalld bring back the orginal docker minimal rules
JeGoi Jul 9, 2024
bfd5792
Firewalld Add firewalld in general for logs
JeGoi Jul 9, 2024
6b0dc26
Firewalld Fix dns issue, with not remove chain
JeGoi Jul 9, 2024
8151a64
Firewalld add dns, dhcp http and https on managment interface too
JeGoi Jul 9, 2024
14d455d
Firewalld add haproxy-admin port on service for management int
JeGoi Jul 9, 2024
6797a40
FIrewalld Remove firewalld config relaod since service is not started…
JeGoi Jul 9, 2024
ee4549f
Firewalld Fix default minimal rules with exit of iptables or firewalld
JeGoi Jul 10, 2024
de57f38
Firewalld Restore firewalld dependence for api-frontend and expect fi…
JeGoi Jul 10, 2024
08b33ab
Firewalld Allow firewalld to stop without failing when firewalld conf…
JeGoi Jul 10, 2024
68b6094
Firewalld Allow firewalld to start ExecStartPost only if the manageme…
JeGoi Jul 10, 2024
0d433bf
Firewalld Avoid cleaning iptables before trying to add docker mininal…
JeGoi Jul 10, 2024
2bd2746
Firewalld Add back firewalld in httpd.admin-dispatcher with comments
JeGoi Jul 10, 2024
4a33204
Firewalld Bring back the configurator as it was, since firewalld can …
JeGoi Jul 10, 2024
d9f3927
Revert "Firewalld Set mysql root password empty, remove reference to …
JeGoi Jul 10, 2024
d7f4f37
Firewalld Restore docker minimal rules to a complete minimum since fi…
JeGoi Jul 10, 2024
9426429
Firewalld Restore debian post install
JeGoi Jul 10, 2024
70fc610
Firewalld Restore redhat post install
JeGoi Jul 10, 2024
8aca71e
Forewalld debianize patch number 42 as the answer
JeGoi Jul 10, 2024
17fefc9
Firewalld Update _stop iptables rules
JeGoi Jul 11, 2024
ed58413
Venom change how to check configurator disabled on in wizard
JeGoi Jul 11, 2024
5a43a37
Firewalld move all to direct rules
JeGoi Jul 12, 2024
0fd6de4
Firewalld fix cleaning rules
JeGoi Jul 12, 2024
82df8e6
Firewalld Simplify default zone config
JeGoi Jul 12, 2024
b6f1d22
Firewalld Remove unused variables in lib/pf/ipset.pm
JeGoi Jul 16, 2024
fcffd65
Fix if not a real file, fix if source is empty
JeGoi Oct 22, 2024
b3e17b0
Set iptables legacy
JeGoi Oct 22, 2024
c0d8c12
Remove reference to port and use only socket since upgrade to mariadb…
JeGoi Oct 28, 2024
1f17404
[Firewalld] Simplify services
JeGoi Oct 30, 2024
c6e8d96
[Firewalld] Use the default directory for default config of firewalld
JeGoi Oct 30, 2024
237608c
[Firewalld] Clean zones since we are using default directory with alr…
JeGoi Oct 30, 2024
d2dcca0
[Firewalld] Remove example since docker is a default (and perhaps sho…
JeGoi Oct 30, 2024
3e3a78e
[Firewalld] Add short way to fix files and applied config directory f…
JeGoi Oct 30, 2024
3817a49
[Firewalld] Apply fix dir permission on creation
JeGoi Oct 30, 2024
501f089
Debianize again
JeGoi Oct 30, 2024
24c18f0
[Firewalld] Fix file permission function in util
JeGoi Oct 31, 2024
7362967
Add missing rule when adding mangle postforwarding
JeGoi Nov 18, 2024
8b092d8
[Firewalld] Add other missing rules
JeGoi Nov 18, 2024
05ca177
[Firewalld] Change Forward Netflow position to last
JeGoi Nov 18, 2024
52c3bc5
[Firewalld] Remove restart service
JeGoi Nov 18, 2024
2e85dfe
[Firewalld] Remove restart service
JeGoi Nov 18, 2024
27a97f2
[Firewalld] Remove restart service from configurator step4
JeGoi Nov 18, 2024
ebf1ab9
[Firewalld] Remove reload firewalld configuration, ports should be ha…
JeGoi Nov 18, 2024
d4576b1
[Firewalld] Move masquarade down in order
JeGoi Nov 18, 2024
4802c05
[Firewalld] Add ipset iptable rulee generate from ipset service too
JeGoi Nov 20, 2024
a0e8f09
[Firewalld] Give values to filter input position per services
JeGoi Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions addons/full-import/find-extra-files.pl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@

my @extra_files_to_export = (
$pf::file_paths::fingerbank_config_file,
$pf::file_paths::iptable_input_config_file,
$pf::file_paths::iptable_input_management_config_file,
$pf::file_paths::ip6table_input_management_config_file,
$pf::file_paths::firewalld_input_config_inc_file,
$pf::file_paths::firewalld_input_management_config_inc_file,
$pf::file_paths::firewalld6_input_config_inc_file,
$pf::file_paths::firewalld6_input_management_config_inc_file,
$pf::file_paths::report_config_file,
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (C) Inverse inc.
[Unit]
Description=PacketFence Connector Client (Remote)
Wants=packetfence-base.target packetfence-config.service packetfence-iptables.service
After=packetfence-base.target packetfence-config.service packetfence-iptables.service
Wants=packetfence-base.target packetfence-config.service packetfence-firewalld.service
After=packetfence-base.target packetfence-config.service packetfence-firewalld.service

[Service]
LimitNOFILE=infinity
Expand Down
4 changes: 2 additions & 2 deletions addons/vagrant/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
- import_playbook: playbooks/set_venom_vars.yml
tags: venom_vars

- import_playbook: playbooks/configure_iptables.yml
tags: iptables
- import_playbook: playbooks/configure_firewalld.yml
tags: firewalld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- hosts: pfservers
name: Configure iptables
name: Configure firewalld
become: True
gather_facts: False

Expand All @@ -10,4 +10,4 @@
- "!all"

tasks:
- import_tasks: tasks/vagrant_iptables.yml
- import_tasks: tasks/vagrant_firewalld.yml
4 changes: 2 additions & 2 deletions addons/vagrant/playbooks/install_pf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# We use another interface than the default as management
# it's possible to do this until current SSH session has not been cut
tasks:
- import_tasks: tasks/vagrant_iptables.yml
tags: iptables
- import_tasks: tasks/vagrant_firewalld.yml
tags: firewalld

# packetfence-test need to be installed
- import_tasks: tasks/install_venom_local_vars.yml
Expand Down
19 changes: 19 additions & 0 deletions addons/vagrant/playbooks/tasks/vagrant_firewalld.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
- name: allow all on default interface for vagrant management
blockinfile:
path: "/usr/local/pf/conf/firewalld/firewalld-input.conf.inc"
create: true
owner: pf
group: pf
block: |
# allow all ports for vagrant management
ipv4 filter INPUT -100 -i {{ ansible_default_ipv4.interface }} -j ACCEPT
# allow MailHog (SMTP and web interface) on management interface
ipv4 filter INPUT -100 -i {{ packetfence_install__mgmt_interface["id"] }} --protocol tcp --match tcp --dport {{ mailhog__smtp_port }} --jump ACCEPT
ipv4 filter INPUT -100 -i {{ packetfence_install__mgmt_interface["id"] }} --protocol tcp --match tcp --dport {{ mailhog__api_port }} --jump ACCEPT
# allow Smocker interface on management interface
ipv4 filter INPUT -100 -i {{ packetfence_install__mgmt_interface["id"] }} --protocol tcp --match tcp --dport {{ smocker__port_config }} --jump ACCEPT
# allow RADIUS mock ports on management interface
ipv4 filter INPUT -100 -i {{ packetfence_install__mgmt_interface["id"] }} --protocol tcp --match tcp --dport {{ radius_mock__api_port }} --jump ACCEPT
ipv4 filter INPUT -100 -i {{ packetfence_install__mgmt_interface["id"] }} --protocol tcp --match tcp --dport {{ radius_mock__radius_port }} --jump ACCEPT
marker: "# {mark} ANSIBLE MANAGED BLOCK - vagrant"
24 changes: 0 additions & 24 deletions addons/vagrant/playbooks/tasks/vagrant_iptables.yml

This file was deleted.

21 changes: 7 additions & 14 deletions conf/documentation.conf
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,6 @@ description=<<EOT
Should radiusd be managed by PacketFence?
EOT

[services.iptables]
type=toggle
options=enabled|disabled
description=<<EOT
Should iptables be managed by PacketFence? Keep enabled unless you know what you're doing.
EOT

[services.ip6tables]
type=toggle
options=enabled|disabled
description=<<EOT
Should ip6tables be managed by PacketFence? Keep enabled unless you know what you're doing.
EOT

[services.httpd_portal]
type=toggle
options=enabled|disabled
Expand Down Expand Up @@ -629,6 +615,13 @@ description=<<EOT
Should ntlm-auth-api be started? Keep enabled unless you know what you're doing.
EOT

[services.firewalld]
JeGoi marked this conversation as resolved.
Show resolved Hide resolved
type=toggle
options=enabled|disabled
description=<<EOT
Should firewalld be started? Keep enabled unless you know what you're doing.
EOT

[fencing.wait_for_redirect]
type=numeric
description=<<EOT
Expand Down
12 changes: 12 additions & 0 deletions conf/firewalld/firewalld.conf.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[config]
DefaultZone=public
CleanupOnExit=yes
#CleanupModulesOnExit=yes
Lockdown=no
IPv6_rpfilter=yes
IndividualCalls=no
LogDenied=off
FirewallBackend=iptables
FlushAllOnReload=yes
RFC3964_IPv4=yes
AllowZoneDrifting=no
12 changes: 12 additions & 0 deletions conf/firewalld/firewalld.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[config]
#DefaultZone=eth0
#CleanupOnExit=yes
##CleanupModulesOnExit=yes
#Lockdown=no
#IPv6_rpfilter=yes
#IndividualCalls=no
#LogDenied=off
#FirewallBackend=nftables
#FlushAllOnReload=yes
#RFC3964_IPv4=yes
#AllowZoneDrifting=no
10 changes: 10 additions & 0 deletions conf/firewalld/firewalld_helpers.conf.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (C) Inverse inc.
[netbios-ns]
short=netbios_ns
module=netbios_ns
family=ipv4
ports=netbios-ns_port1

[netbios-ns_port1]
port=137
type=udp
1 change: 1 addition & 0 deletions conf/firewalld/firewalld_helpers.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (C) Inverse inc.
18 changes: 18 additions & 0 deletions conf/firewalld/firewalld_icmptypes.conf.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) Inverse inc.
[neighbour-advertisement]
short=Neighbour Advertisement (Neighbor Advertisement)
description=This informational message is sent in response to a neighbour-solicitation message in order to (unreliably) propagate new information quickly.
destinations=ipv4:no,ipv6:yes

[neighbour-solicitation]
short=Neighbour Solicitation (Neighbor Solicitation)
description=This informational message is sent by a node to determine the link-layer address of a neighbor, or to verify that a neighbor is still reachable via a cached link-layer address. Neighbor Solicitations are also used for Duplicate Address Detection.
destinations=ipv4:no,ipv6:yes

[router-advertisement]
short=Router Advertisement
description=This message is used by routers to periodically announce the IP address of a multicast interface.

[redirect]
short=Redirect
description=This error message informs a host to send packets on another route.
1 change: 1 addition & 0 deletions conf/firewalld/firewalld_icmptypes.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (C) Inverse inc.
1 change: 1 addition & 0 deletions conf/firewalld/firewalld_ipsets.conf.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (C) Inverse inc.
1 change: 1 addition & 0 deletions conf/firewalld/firewalld_ipsets.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (C) Inverse inc.
16 changes: 16 additions & 0 deletions conf/firewalld/firewalld_lockdown_whitelist.conf.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[whitelist]
commands=whitelist_command1
selinuxs=whitelist_selinux1,whitelist_selinux2
users=whitelist_user1

[whitelist_command1]
name=/usr/libexec/platform-python -s /usr/bin/firewall-config

[whitelist_selinux1]
context=system_u:system_r:virtd_t:s0-s0:c0.c1023

[whitelist_selinux2]
context=system_u:system_r:NetworkManager_t:s0

[whitelist_user1]
id=0
16 changes: 16 additions & 0 deletions conf/firewalld/firewalld_lockdown_whitelist.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#[whitelist]
#commands=whitelist_command1
#selinuxs=whitelist_selinux1,whitelist_selinux2
#users=whitelist_user1

#[whitelist_command1]
#name=/usr/libexec/platform-python -s /usr/bin/firewall-config

#[whitelist_selinux1]
#context=system_u:system_r:virtd_t:s0-s0:c0.c1023

#[whitelist_selinux2]
#context=system_u:system_r:NetworkManager_t:s0

#[whitelist_user1]
#id=0
36 changes: 36 additions & 0 deletions conf/firewalld/firewalld_policies.conf.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright (C) Inverse inc.
[allow-host-ipv6]
short=Allow host IPv6
description=Allows basic IPv6 functionality for the host running firewalld.
ingress_zones=allow-host-ipv6.ingress_zone1
egress_zones=allow-host-ipv6.egress_zone1
match_rules=allow-host-ipv6_rule1,allow-host-ipv6_rule2,allow-host-ipv6_rule3,allow-host-ipv6_rule4
target=continue
priority=-15000

[allow-host-ipv6.ingress_zone1]
name=ANY

[allow-host-ipv6.egress_zone1]
name=HOST

[allow-host-ipv6_rule1]
name=icmp_type
family=ipv6
icmp_type=neighbour-advertisement

[allow-host-ipv6_rule2]
name=icmp_type
family=ipv6
icmp_type=neighbour-solicitation

[allow-host-ipv6_rule3]
name=icmp_type
family=ipv6
icmp_type=router-advertisement

[allow-host-ipv6_rule4]
name=icmp_type
family=ipv6
icmp_type=redirect

1 change: 1 addition & 0 deletions conf/firewalld/firewalld_policies.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (C) Inverse inc.
Loading