The answer to all of your problems is runner.gameadmins.com.
On that site, there is a Jedi Runner which allow you, through a GUI interface, to enter all of the settings you wish (weapons allowed, type of game, players allowed, internet or LAN, maps to use, etc.)
It will also allow you specify server admin pw, player pw, or all pw for the game server. You need to input the password for your remote console password when you enter the game.
Finally, it will also reqister your game with not only the standard game server but also GameSpy's and one other. You may also specify additional servers if you wish.
Once you complete your settings, just click the Start button and it will create the CFG file and run it.
I use it to run my dedicated server. "May the Force Not be with You"