Usually you only need database password, for connection L2j is coded in a way that it's automatic, if you get UPnP gateway not found means either your router is not UPnP capable or the server failed to open the port for some reason.
In any way read about port fowarding.