---
title: sshd_config and iptables are suddenly changed back to default in admin server
description: "Issue\nIn some cases, you may observe that sshd_config and iptables files are automatically changed in SA server.During Netwitness upgrade or patch, th"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/sshd-config-and-iptables-are-suddenly-changed-back-to-default-in-admin-server#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# sshd\_config and iptables are suddenly changed back to default in admin server

#### Issue

 In some cases, you may observe that sshd\_config and iptables files are automatically changed in SA server.   
During Netwitness upgrade or patch, this is an expected behavior by chef run list.    
But in this case, these files were suddenly changed back to default on 9/13 without upgrade or patch activity.   
![User-added](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_0_f76f0811-b07b-48cf-842e-bda4c891c1cb.jpg?width=500&height=594&name=rta_0_f76f0811-b07b-48cf-842e-bda4c891c1cb.jpg)   
![User-added](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_1_5d0fffd7-d266-46b2-a2e6-3c6e0053b872.jpg?width=500&height=202&name=rta_1_5d0fffd7-d266-46b2-a2e6-3c6e0053b872.jpg)

You can see that the refresh host orchestration task is triggered from Jetty in sa.log: 

 2021-09-13 17:04:19,998 \[listenerContainer-1\] INFO  com.rsa.smc.sa.admin.management.yum.StagedRepoEngine - UpdateHostTask(super=AsynchronousTask(super=Task(id=613f057badfb20061b9add11, host=Host(id=cc4ec6f1-9162-4097-a4e8-ac640abc8595, hostname=null, ipv4=null, ipv4Public=null, displayName=null, version=null, thirdParty=false), queued=2021-09-13T08:02:03.369Z, start=2021-09-13T08:02:03.377Z, end=null, status=RUNNING, childTasks=\[\], parentTaskId=null), successful=false), stdout=null, stderr=null, version=11.4.1.1, stageDir=null, updateTaskType=RefreshHost, triggeredHostsWithError=null, nodeInfraServerId=null, noTriggers=false) 

 This is what triggered chef to run with the full SA run\_list as seen in the chef-solo.log:

 \[2021-09-13T17:02:37+09:00\] INFO: Setting the run\_list to \["recipe\[nw-repositories\]", "recipe\[nw-dns\]", "recipe\[nw-firewall\]", "recipe\[nw-ntp\]", "recipe\[nw-dns-client\]", "recipe\[nw-pki\]", "recipe\[salt-minion\]", "recipe\[nw-hwrpm\]", "recipe\[nw-java\]", "recipe\[rsa-audit\]", "recipe\[rsa-sms-runtime\]", "recipe\[nw-rabbitmq\]", "recipe\[rsa-collectd\]", "recipe\[nw-rng\]", "recipe\[ssh\]", "recipe\[auditd-wrapper\]", "recipe\[nw-base\]", "recipe\[salt-master\]", "recipe\[nw-re-server\]", "recipe\[fne-server\]", "recipe\[nw-mongo\]", "recipe\[nw-nginx\]", "recipe\[nw-appliance\]", "recipe\[rsa-audit-server\]", "recipe\[rsa-sms-server\]", "recipe\[salt-api\]", "recipe\[rsa-security-server\]", "recipe\[metricbeat\]", "recipe\[rsa-config-server\]", "recipe\[rsa-license-server\]", "recipe\[rsa-orchestration-server\]", "recipe\[rsa-admin-server\]", "recipe\[rsa-source-server\]", "recipe\[rsa-integration-server\]", "recipe\[rsa-investigate\]", "recipe\[rsa-node-infra-server\]", "recipe\[rsa-content-server\]", "recipe\[rsa-response\]", "recipe\[nw-jetty\]", "recipe\[nw-broker\]"\] from CLI options 

     
As a result, it reverted the changes made to sshd\_config as well as iptables.

The reverted changes are the normal behavior since chef detects any configuration changes then uses a predefined template (/var/netwitness/config-management/cookbooks/platform/ssh/templates/default/sshd\_config.erb) to regenerate the default config file. 

Currently there is no way to bypass such changes to the configuration other than changing the needed fields in the template itself but this is neither supported nor recommended. If customer is experiencing this issue again, they should contact support to seek for further guidance before proceed with any changes

#### Resolution

**\*Root Cause**

If you add NTP servers in the NW UI, the refresh host will run as a result.

A chef-runis triggered on each provisioned host with the run\_list including \[nw-dns\] on the SA and \[nw-dns-client\] on each provisioned host.

After the first chef-run is completed on the SA, another chef run is triggered which includes the SA’s full run\_list without the \[nw-pre-install\] and \[nw-post-install\]. 

This run\_list is the same as the one that gets used if you run orchestration-cli-client --update-admin-node.

You can observe following logs in orchestration-client.log at the time of the chef-run as an evidence.

 2021-09-13 17:02:36,642 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=cc4ec6f1-9162-4097-a4e8-ac640abc8595, ADDR=3.1.2.30, NAME=nwserver, VERSION=11.4.1.1   
2021-09-13 17:02:36,645 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=319af78b-bea6-4113-88e1-70cd83245edb, ADDR=3.1.2.32, NAME=nwhybrid, VERSION=11.4.1.1   
2021-09-13 17:02:36,645 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=956c58be46ac49cda1b33d288aee9d2e, ADDR=3.1.2.5, NAME=null, VERSION=null   
2021-09-13 17:02:36,661 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Tasks completed successfully...   
2021-09-13 17:02:36,661 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Request completed successfully.   
2021-09-13 17:05:18,984 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=cc4ec6f1-9162-4097-a4e8-ac640abc8595, ADDR=3.1.2.30, NAME=nwserver, VERSION=11.4.1.1   
2021-09-13 17:05:18,987 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=319af78b-bea6-4113-88e1-70cd83245edb, ADDR=3.1.2.32, NAME=nwhybrid, VERSION=11.4.1.1   
2021-09-13 17:05:18,987 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=04bccb1d1e8547c3ae639210d1547d2a, ADDR=3.1.2.5, NAME=null, VERSION=null   
2021-09-13 17:05:18,987 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Host: ID=d14de949dc5e44a6b46fe93121aeb785, ADDR=100.11.52.223, NAME=null, VERSION=null   
2021-09-13 17:05:19,002 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Tasks completed successfully...   
2021-09-13 17:05:19,002 \[                          main\] INFO  c.r.n.i.o.c.OrchestrationApplication|Request completed successfully.

***Note)*** the additional host (100.11.52.223) that appeared in orchestration as a result of the change from the UI. 

#### Product Details

**Product Set:** NetWitness Platform  
**RSA Product/Service Type:** All Nodes  
**RSA Version/Condition:** 11.x, 12.x  
**Platform:** CentOS, AlmaLinux  
 

#### Approval Reviewer Queue

Technical approval queue

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.