The permeation of hydrophobic, cylindrical nanopores by water molecules and ions is investigated under equilibrium and out-of-equilibrium conditions by extensive molecular-dynamics simulations. Neglecting the chemical structure of the confining pore surface, we focus on the effects of pore radius and electric field on permeation. The simulations confirm the intermittent filling of the pore by water, reported earlier under equilibrium conditions for pore radii larger than a critical radius R-c. Below this radius, water can still permeate the pore under the action of a strong electric field generated by an ion concentration imbalance at both ends of the pore embedded in a structureless membrane. The water driven into the channel undergoes considerable electrostriction characterized by a mean density up to twice the bulk density and by a dramatic drop in dielectric permittivity which can be traced back to a considerable distortion of the hydrogen-bond network inside the pore. The free-energy barrier to ion permeation is estimated by a variant of umbrella sampling for Na+, K+, Ca2+, and Cl- ions, and correlates well with known solvation free energies in bulk water. Starting from an initial imbalance in ion concentration, equilibrium is gradually restored by successive ion passages through the water-filled pore. At each passage the electric field across the pore drops, reducing the initial electrostriction, until the pore, of radius less than R-c, closes to water and hence to ion transport, thus providing a possible mechanism for voltage-dependent gating of hydrophobic pores. (C) 2005 American Institute of Physics.