added gateway support to tuntap router