Need some BSD boffins to help a n00b


(BSDman) #1

Ive just got a dedicated server between a cooperative of 4 different clans, ive been nominated the techy dude since i know a little more than the others, lol.
well anyway, im absolutely stuck, are there any freeBSD boffins out there who know how to PROPERLY install ET.
ive installed it myself and patched it up, but its behaving kind of odd, things like logging not working unless im logged in as SU, and even when logging is working the logs dont actually seem to be saving in the specified homepath
heres my startup script


./etded +set net_IP 4.3.2.1 +set net_port 27960 +set dedicated 2 +set com_zoneMegs 32 +set com_hunkmegs 96 +set vm_game 0 +set fs_homepath /usr/home/bob/.etwolf/27960 +set fs_game etpro +exec server.cfg +set sv_punkbuster 1 +set TTycon 0 &

ive had a look at http://tjw.org/etded/ but none of the .so files exist and i got stuck right there lol.
so either a link to a setup guide for a linux n00b or just a step by step would be a brilliant help.

PS BTW ive googled and googled and searched here and found nothing apart from that tjw.org site


(chr0nicles) #2

I’ve writen an howto for installing a secure ET server using FreeBSD 4.9, if you want it drop me a msg with your mail.

Best regards


(BSDman) #3

cheers dude, ive pm’d you


(SiliconSlick) #4

There are some notes on BSD below under Q3A.

http://zerowing.idsoftware.com/linux/

They don’t look applicable but I have no experience
with FreeBSD.

SiliconSlick


(BSDman) #5

Yeah ive read those, but they really dont say alot, i think my major problems are to do with chroot or account permissions… but thats just from other little snippets ive read, soon as chr0nicles sends me the stuff ill find out :slight_smile:
thanx for the help peeps


(chr0nicles) #6

You’ve got mail, let me know if you have any problems :wink:


(k1ll3r) #7

there are no special steps in installing/using ET on freebsd other than having linux compatibility installed and the binaries correctly brandelf’ed


(chr0nicles) #8

Ofcourse but were talking about a secure et installation, for total newcomers.


(k1ll3r) #9

ok… in a nutshell…

Install et (/usr/local/games/enemy-territory/ ?)
create a group on the system (pw groupadd gameservers)
change the permissions & ownerships of this directory (chown 0:gameservers /usr/local/games/enemy-territory/ and chmod o-rwx /usr/local/games/enemy-territory/)

Any accounts you add for gameservers should be in the group gameservers , or they’ll be denied access.
e.g: pw useradd et27960 -g gameservers ; pw usermod et27960 -s /bin/sh ; pw usermod et27960 -d /home/et27960 ; pw usermod et27960 -m ; passwd et27960

Then, create a username.sh for each gameserver you have (on the ET folder)

Of course the naming scheme is up to you. You should chmod 0700 username.sh and chown username username.sh so only this user is able to read and execute the file (take the write bit if you want)

Edit the username.sh’s. They should have something like this:

cd /usr/local/games/enemy-territory/
./etded.x86 +set net_ip YOURIP +set net_port YOURPORT +set fs_game etpro +exec CONFIGNAME 2>/dev/null&

Your .cfg’s should reside in ~/.etwolf/etpro

Note that et automatically creates the ~/.etwolf/ folder on the home folder of the user you use to run the server.

To start it up, as root:

su username -c /usr/local/games/enemy-territory/username.sh

username could be et27960.sh or anything you decide

Hope this helps


(chr0nicles) #10

I was talking about some true security by means of using chroot/jail, which need proper setup, which is kinda hard for a newbie to do :slight_smile:


(BSDman) #11

lol, cheers guys… btw i found those logs after
/usr/compat/linux/usr/home/bob/.etwolf


(chr0nicles) #12

Yes, as shown in my howto you need to create a symlink :wink: