Gateway configuration