\begin{exe} {Adding Services to a Zone}

   Add the \textbf{http} and \textbf{https} services to the
   \textbf{public zone} and verify that they are currently
   listed.

   \begin{sol}

      \begin{cmd}
$ sudo firewall-cmd  --zone=public --add-service=http
      \end{cmd}
      \begin{response}
success
      \end{response}
      \begin{cmd}
$ sudo firewall-cmd  --zone=public --add-service=https
      \end{cmd}
      \begin{response}
success
      \end{response}
      \begin{cmd}
$ sudo firewall-cmd --list-services --zone=public
      \end{cmd}
      \begin{response}
dhcpv6-client http https ssh
      \end{response}
      Note if you had run
      \begin{cmd}
$ sudo firewall-cmd --reload
$ sudo firewall-cmd --list-services --zone=public
      \end{cmd}
      \begin{response}
dhcpv6-client ssh
      \end{response}
      after adding the new services, they would disappear from
      the list!  This curious behavior is because we did not
      include the \verb?--permanent? flag when adding the
      services, and the \verb?--reload? option reloads the known
      persistent services only.
   \end{sol}
\end{exe}

