We apply equilibrium and nonequilibrium molecular dynamics simulations to study the dynamic properties of electrolytes in nanopores. The realistic primitive model and the restrictive primitive model widely used in the statistical mechanics of liquid-state