Actually, you'll only need two walls. First one, like RabidMonkey777 said, a func_illusionary and the second one a clipbrush, but placed at the exact same spot as the func_illusionairy. This way you can also walk against the fence (which would be nice :P).