common constructor for TunnelConfig