We use a cellular-automata (CA) method to determine the frequency-dependent permeability k(co) of a channel and a disordered porous medium. The CA results for the channel flow agree completely with the analytical solution of the problem. For flow in a porous medium, we calculate k(co) over a wide range of the frequencies co and for several values of the porosity. Our CA results for disordered porous media support the relation k(to)/ko =f(to/to, ), where ko is the static permeability of the medium, c0, is a characteristic frequency, and f (x) is a universal function, proposed previously, based on experimental data.