Specify gateway in remotes closure