EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Testing Rocky Linux with EPICS
From: Abdalla Ahmad via Tech-talk <tech-talk at aps.anl.gov>
To: "Hu, Yong" <yhu at bnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 16 Jun 2022 07:33:29 +0000

Hello Yong

 

Thanks for the tip. I disabled my windows firewall (which what prevented cainfo for some reason) and configured the NIC to trusted zone and my tests are working. Did this setup solved the case when multiple IOCs are on a host accessed from another VLAN? i.e., used in EPICS_CA_ADDR_LIST? I had to configure iptables for that: https://wiki-ext.aps.anl.gov/epics/index.php/How_to_Make_Channel_Access_Reach_Multiple_Soft_IOCs_on_a_Linux_Host

 

Best Regards,

Abdalla.

 

From: Hu, Yong <yhu at bnl.gov>
Sent: Saturday, June 11, 2022 4:51 AM
To: Abdalla Ahmad <Abdalla.Ahmad at sesame.org.jo>; tech-talk at aps.anl.gov
Subject: Re: Testing Rocky Linux with EPICS

 

Hello Abdalla,

I remember we had this kind of problem on RHEL8 IOC servers. To fix it, we disable the firewall and iptables, then use this command (change
enp11s0f1 to your actual NIC):
firewall-cmd --zone=trusted --change-interface=enp11s0f1 --permanent

Hope this helps.
Cheers,
Yong

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Abdalla Ahmad via Tech-talk <tech-talk at aps.anl.gov>
Date: Thursday, June 9, 2022 at 7:17 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Testing Rocky Linux with EPICS

Hi

 

I recently investigated Rocky Linux to deploy EPICS IOCs, I mainly focused on configuring the firewall (both firewall-cmd and iptables). I have tested the following cases:

  • Testing one IOC on the same host: I created an IOC and ran caget on the same host as the IOC, it did not find the PV. So I thought of enabling EPICS ports using firewall-cmd and it worked.
  • Testing multiple IOCs on the same host: It worked using the previous configuration.
  • Testing multiple IOCs from another host on the same VLAN: It did not work until I enabled both tcp and udp protocols (using –add-protocol option) along with –complete-reload.
  • Testing multiple IOCs from another host on a different VLAN: This is a very confusing one. I enabled EPICS ports, tcp and udp, now I can do caget and cainfo on PVs from the last running IOCs. When I added the UDP broadcast rule in iptables while firewalld is running, for some reason cainfo could not find the PVs but caget was working (I ran these commands from a windows 10 host). When I disabled firewalld and used iptables only, I can see the PVs on the same host, same VLAN and different VLAN.

 

Eventually, this is the configuration I used:

/usr/bin/firewall-cmd --permanent --add-port=5064/tcp

/usr/bin/firewall-cmd --permanent --add-port=5064/udp

/usr/bin/firewall-cmd --permanent --add-port=5065/tcp

/usr/bin/firewall-cmd --permanent --add-port=5065/udp

/usr/bin/firewall-cmd --permanent --add-protocol=tcp

/usr/bin/firewall-cmd --permanent --add-protocol=udp

/usr/bin/firewall-cmd –reload

 

I wonder what is the difference between RHEL 7 and 8 firewall configurations? On CentOS 7, we have firewalld running but with no configuration and we flush iptables (except for the UDP broadcast rule above). What is the best scenario here or which is better firewalld or iptables in this case? I think for some reason, firewalld does not allow UDP broadcast and I could not figure out how to do it in firewall-cmd. Any feedback is really appreciated.

 

Best Regards,

Abdalla.


References:
Testing Rocky Linux with EPICS Abdalla Ahmad via Tech-talk
Re: Testing Rocky Linux with EPICS Hu, Yong via Tech-talk

Navigate by Date:
Prev: Re: CoreRelease and the attributes of an IOC's build Andrew Johnson via Tech-talk
Next: Some Questions With RTEMS 5 in MVME2502 chengsn via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Testing Rocky Linux with EPICS Hu, Yong via Tech-talk
Next: RBV value for Soft Channel motor not always being set properly on IOC startup Gregory, Ray via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·