Mongodb data sync between primary and secondary node even when port is closed
Have you closed that path both ways... 

If primary cannot "ping" secondary, it's not reachable/healthy, but if secondary can connect primary, it can replicate opLog...