Let $R$ be a ring. An element $r \in R$ is a unit of $R$ if there is some $s \in R$ such that $rs=sr=1$. Denote the set of units of $R$ by $R^{\times}$. It is easy to verify that $R^{\times}$ is a group under the multiplicative operation of $R$.
I am trying to find a ring $R$ such that $R^{\times} \cong D_4$. Recall that $D_4$ is the dihedral group of order 8 which has the following presentation: $\langle a,b ~|~ a^4 = 1, b^2 = 1, bab=a^3 \rangle$.
More generally, is every finite group the group of units of some ring?