Tehran says any facility or base in the Middle East used by the US military to launch attacks on Iran is a legitimate target for retaliation.