Configuring both ends of a tunnel as CAS