Bf2cc & Bf2cc daemon admin tool

Started by Stealth, June 19, 2006, 11:24:42 AM

Previous topic - Next topic

Stealth

Hi Leute ich kenn mich net aus mit den ganzen admin tools von bf 2 könnte das mal bitte jemand posten soo das mans auch versteht
ich möchte das toool auch auf lans benutzen währe nett wenn das mal jemand auf deutsch und mit bildern machen könnte tnx im vorraus 

ProfAbsurdis

Last Night i met the Doctor of Madness, but he would not let me use his Equipment.

Stealth

#2
wie benutzt bzw. installiert man das für eine lan

will mir villt ein raked server mieten weiss aber nicht wie das geht mit dem admin tool und in unserem cluphaus steht ein 50 slot windoof lan server weiss auch nicht wie ich das da zum laufen bekomme

ProfAbsurdis

*DAS* sollte dir eigentlich weiterhelfen.  r:|
Last Night i met the Doctor of Madness, but he would not let me use his Equipment.

Stealth

n?? iss englich bin schon ein opa mein englich iss schon etwas eingerostet |OOO| |OOO|

ProfAbsurdis

hm, frag mal FlüT?! Der hatte so ein "geniales" ?berstzungs Programm  ;D ;D
Last Night i met the Doctor of Madness, but he would not let me use his Equipment.

Stealth

jo hab davon gehört *gg*   ;D ;D |:)O |:)O |:)O

ProfAbsurdis

Evtl. hilft die das weiter
QuoteInstallieren des Server

1.Werde root mit su -
2.Entpacke das Verzeichniss mit unzip bf2...
3.Rechte zum Ausführen des Installers erteilen mit chmod +x bf2....
4.Verzeichniss anlegen in das Installiert werden soll mkdir /opt/Battlefiel2Server
5. Installer ausführen und den Anweisungen folgen. ./bf2-linuxded-1.1.2484.0-installer.sh
Installtion ist jetzt fertig.



Configurieren des Servers.

Ich kann leider keine Firewall configuration machen da ich auf der Maschine hier keine Firewall habe.
Aber diese Ports müssen Freigegeben werden.

Server Ports:

UDP 27900
UDP/TCP 29900
TCP 80
TCP 4711
UDP 27901
UDP 1500-4999
UDP/TCP 1024-1124
UDP 29900
UDP/TCP 27900
UDP 16567
UDP 55123-55125



Um den RCON Access zu aktivieren.
Geh in das Verzeichnis /home/Battlefiel2Server/bf2/admin
Erstelle eine Datei default.cfg mit dem Inhalt
vi default.cfg (öffnet vi Editor und erstellt default.cfg)
port=4711
password=YourPassword

Jetzt fehlt nur noch die Konfiguration des Servers
dazu müsst ihr die Datei /home/Battlefield2Server/bf2/mods/bf2/settings/serversettings.con editieren.

Die Datei ist Selbserkl?rend.

Im selben Verzeichniss findet ihr auch die maplist.con dort könnt ihr die Maprotation eintragen.

Jetzt kann man den Server starten.
cd /home/Battlefield2Server/bf2
Mit dem Befehl ./start.sh startet man den Server.
Solltet ihr aber per Remoteconsole auf euren Server zugreifen benötigt ihr das Programm screen um ein Unterfenster zu kreieren. Ohne das Programm wird der Prozess beendet sobald ihr eure Console schliesst.

screen ./start.sh

Der Server ist nun Betriebsbereit.

So nun wenden wir uns BF2CC zu.

Bevor wir mit der Installation anfangen benötigen wir noch das MS Net-Framework. Das gibt es nicht für Linux aber etwas ähnliches. Geht dazu auf diese Seite http://www.mono-project.com/Downloads und Installiert es. Ladet den Installer runter und führt ihn als root aus. Weiter sollte alles automatisch passieren.

Die Ports die geöffnet werden müssen entnehmt die aus der Anleitung hier.
http://www.bf2cc.com/downloads/Battlefie..._guide_v101.pdf


1. BF2CC runterladen BF2CC Daemon 1.0.2111
http://www.bf2cc.com/downloads/BF2CCD_1.0.2111.zip

2. Mit unzip entpacken

3. Kopiert modmanager-v1.0a.zip nach /home/Battlefield2Server/bf2/

4. Mit unzip /home/Battlefield2Server/bf2/modmanager-v1.0a.zip entpacken.

5. Konfiguration anschauen und Editieren /home/Battlefield2Server/bf2/mods/bf2/settings/modmanager.con

6. BF2CC mit mono bf2ccd.exe starten der Pfad zum Server ist /home/Battlefield2Server/bf2 Ip ist die vom Server. Rest nach Geschmack editeren.

7.Mit mono bf2ccd.exe starten. Kann auch mit dem Befehl screen verwendet werden.


Nun kann man mit dem Client http://www.bf2cc.com/downloads/BF2CC_Client_1.0.2110.zip auf den Server verbinden. Und per bf2cc denn server starten.


Ich hoff mal das hilft ein wenig weiter, beim einrichten des BF2 Servers

Für den Client benötigt man auch das MS Framework mit SP1. Aber das ist Windows und sollte kein Problem darstellen.

So für den Anfang sollte das mal reichen.

Ich reich noch das Firewall script für Linux nach

#!/bin/sh
#################
# Last Modified: 20051104 by Zed
#################
# eth0 - First Network Device
# eth1 - Second Network Device
# eth2 - Third Network Device
#################

#Should be changed to path to iptables.
iptables=/sbin/iptables

echo "Starting iptables ++++++++++++++"

#Disable IP-Forwarding (for security Reasons)
echo 0 > /proc/sys/net/ipv4/ip_forward


# Log all pakets (for debugging purposes)
#$iptables -A INPUT -j LOG --log-prefix test_input_1 -p tcp
#$iptables -A FORWARD -j LOG --log-prefix test_forward_1 -p tcp
#$iptables -A OUTPUT -j LOG --log-prefix test_output_1 -p tcp
#$iptables -A PREROUTING -t nat -j LOG --log-prefix test_preroute_1 -p tcp
#$iptables -A POSTROUTING -t nat -j LOG --log-prefix test_postroute_1 -p tcp
#$iptables -A POSTROUTING -t nat -j LOG --log-prefix foobar -p tcp --dport 445
#$iptables -A OUTPUT -t nat -j LOG --log-prefix test_nat_out_1 -p tcp
#$iptables -A OUTPUT -t nat -j LOG --log-prefix foobar -p tcp --dport 445
#$iptables -A FORWARD -i ppp1 -j LOG --log-prefix test_remedy
#$iptables -A FORWARD -o ppp1 -j LOG --log-prefix test_remedy
#$iptables -A POSTROUTING -t nat -o ppp1 -j LOG --log-prefix BMW
#$iptables -A FORWARD -o ppp1 -j LOG --log-prefix BMW
#$iptables -A INPUT -i ppp1 -j LOG --log-prefix BMW
#$iptables -A OUTPUT -o ppp1 -j LOG --log-prefix BMW
#$iptables -A POSTROUTING -t nat -j LOG --log-prefix foobar

# Delete user-defined Chains and Flush the build-in ones
$iptables -X
$iptables -F
$iptables -F INPUT
$iptables -F FORWARD
$iptables -F OUTPUT
$iptables -F PREROUTING -t nat
$iptables -F POSTROUTING -t nat
$iptables -F OUTPUT -t nat
$iptables -X
$iptables -F

# Define the default Policies
$iptables -P OUTPUT DROP
$iptables -P INPUT DROP
$iptables -P FORWARD DROP

# Allow all already established Connections
$iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
$iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Define the good ones

#Open all Ports
#$iptables -A INPUT -i eth+ -j ACCEPT
#$iptables -A INPUT -i lo -j ACCEPT

#For BF2 Server
$iptables -A INPUT -i eth0 -p udp --dport 27900 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 29900 -j ACCEPT
$iptables -A INPUT -i eth0 -p tcp --dport 29900 -j ACCEPT
$iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 1500:4999 -j ACCEPT
$iptables -A INPUT -i eth0 -p tcp --dport 4711 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 27901 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 1024:1124 -j ACCEPT
$iptables -A INPUT -i eth0 -p tcp --dport 1024:1124 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 29900 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 27900 -j ACCEPT
$iptables -A INPUT -i eth0 -p tcp --dport 27900 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 16567 -j ACCEPT
$iptables -A INPUT -i eth0 -p udp --dport 55123:55125 -j ACCEPT
#For BF2 Server with BF2CC
$iptables -A INPUT -i eth0 -p tcp --dport 6711 -j ACCEPT
$iptables -A INPUT -i eth0 -p tcp --dport 6712 -j ACCEPT

#Allow output on every device
$iptables -A OUTPUT -o eth+ -j ACCEPT
$iptables -A OUTPUT -o lo -j ACCEPT
$iptables -A FORWARD -i eth+ -j ACCEPT

# Define the Bad ones
$iptables -A INPUT -p tcp --dport 113 -j REJECT
$iptables -A FORWARD -p tcp --dport 113 -j REJECT
$iptables -A OUTPUT -p tcp --dport 113 -j REJECT

# Log all the remaining stuff
$iptables -A OUTPUT -j LOG --log-prefix firewall:
$iptables -A INPUT -j LOG --log-prefix firewall:
$iptables -A FORWARD -j LOG --log-prefix firewall:

#Enable IP-Forwarding (not enabled at Boot-Time)
echo 1 > /proc/sys/net/ipv4/ip_forward
r:| I:|H
Last Night i met the Doctor of Madness, but he would not let me use his Equipment.

Stealth

ok tnx aber funzt das auch soo wenn ich ein server auf meinem rechner laufen lassen würde?

ProfAbsurdis

Last Night i met the Doctor of Madness, but he would not let me use his Equipment.

Stealth


Nolo

Hallo Stealt.

Wenn Du Deinen Server aufsetzt, gehe bitte wie folgt vor:

- als erstes lege einen User an
- dann führe die vorgenannte Linux Serverinstalation durch.

Als oberstes Gesetz bei aufsetzen einens neuen Server, bitte nie als " root " , denn
wenn Dein Server gehackt wird und somit den root erlangt, kann man Dir den Server
klauen.

Es gibt eine wunderbare Hilfe, und dass in Deutsch hier: http://www.gameserveradmin.de/

Gruß/ Nolo






ProfAbsurdis

Wer lesen kann ist klar im Vorteil! Es geht um Windows.

Thema verfehlt, setzen, fünf !  :P
Last Night i met the Doctor of Madness, but he would not let me use his Equipment.

Stealth

#13
genau zudem werde ich bald auch ein ranked server haben der ist ja schon fertig eingestellt nur schade das man auf den servern keine ftp rechte bekommt  :( :( :( :( >:( >:( >:( >:( >:(