ipsec: fix outer table id lookup in ipsec tun script