Security issue: installing a new XP Pro system, first to install NIS or the wired router?

hi, in terms of security, is it better to install NIS first and then turn on and setup the router or vice versa?

thanks