I came across this exact same question when I started working on DB replication last week. Overall it depends on your unique setup, but in my case I just skipped replicating the gateways table, and then on the secondary box, manually configured a gateway with same name and details and marked it...