perfsonar-user - Re: [perfsonar-user] testpoint docker image firewall rules for
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Johann Hugo <>
- To: Mark Feit <>
- Cc: "" <>
- Subject: Re: [perfsonar-user] testpoint docker image firewall rules for
- Date: Thu, 9 Feb 2023 12:51:04 +0200
One other option is to piggyback the container directly onto an outside interface with Docker’s macvlan network driver. The container includes the perfsonar-toolkit-security package, so it’s already properly-firewalled internally.
perfsonar-toolkit-security.noarch 4.4.6-1.el7 @perfSONAR
[root@ps-100-100g /]# /usr/lib/perfsonar/scripts/configure_firewall install
Adding perfSONAR firewall rules
[root@ps-100-100g /]# firewall-cmd --list-ports
8760-9960/udp 8760-9960/tcp 18760-19960/udp 18760-19960/tcp 5201/tcp 5201/udp 5001/tcp 5001/udp 5000/tcp 5101/tcp 5000/udp 5101/udp 5890-5900/tcp
Johann Hugo writes:
I would like to run this script automatically when starting the container (with docker-compose)
/usr/lib/perfsonar/scripts/configure_firewall install
Where is the best place to do it ?
As far as I know, Docker Compose doesn’t have hooks to run programs on the host when containers are started. I suspect that has to do with running on multiple OSes prevents them from guaranteeing consistent behavior across all of them. The only reliable way to achieve that would be to wrap both actions in a script that does both and run that instead of Docker Compose, but that causes logistical problems if you want to keep the host systems free of container-specific code.
One other option is to piggyback the container directly onto an outside interface with Docker’s macvlan network driver. The container includes the perfsonar-toolkit-security package, so it’s already properly-firewalled internally. We’re doing at Internet2 on our internal 100 Gb/s systems and the drag on performance is essentially zero compared to bare metal on the same hardware.
--Mark
Office: 012 841 2066Email: , Website: www.sanren.ac.za / www.csir.co.za
- [perfsonar-user] testpoint docker image firewall rules for, Johann Hugo, 02/03/2023
- Re: [perfsonar-user] testpoint docker image firewall rules for, Mark Feit, 02/03/2023
- Re: [perfsonar-user] testpoint docker image firewall rules for, Johann Hugo, 02/09/2023
- Re: [perfsonar-user] testpoint docker image firewall rules for, Mark Feit, 02/09/2023
- Re: [perfsonar-user] testpoint docker image firewall rules for, Johann Hugo, 02/09/2023
- Re: [perfsonar-user] testpoint docker image firewall rules for, Mark Feit, 02/03/2023
Archive powered by MHonArc 2.6.24.