  We study the behavior of a hadronic matter in the presence of an external
magnetic field within the van der Waals hadron resonance gas model, considering
both attractive and repulsive interactions among the hadrons. Various
thermodynamic quantities like pressure ($P$), energy density ($\varepsilon$),
magnetization ($\mathcal{M}$), entropy density ($s$), squared speed of sound
($c_{\rm s}^{2}$), and specific-heat capacity at constant volume ($c_{v}$) are
calculated as functions of temperature ($T$) and static finite magnetic field
($eB$). We also consider the effect of baryochemical potential ($\mu_{B}$) on
the above-mentioned thermodynamic observables in the presence of a magnetic
field. Further, we estimate the magnetic susceptibility ($\chi_{\rm M}^{2}$),
relative permeability ($\mu_{\rm r}$), and electrical susceptibility
($\chi_{\rm Q}^{2}$) which can help us to understand the system better. Through
this model, we quantify a liquid-gas phase transition in the T-eB-$\mu_B$ phase
space.
