IRCALEM.Com Genel Forum, IRC Forumu IF - Genel IRCd (Sunucu, Servis, Botlar, Korumalar) InspIRCd InspIRCd-2.0.25 Oto Kurulumu
irc

InspIRCd-2.0.25 Oto Kurulumu
Aytac
InspIRCd-2.0.25 Oto Kurulumu
0
1109
  • 0 Oy - 0 Ortalama
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Etiketler
inspircd 25 kurulumu oto

Bu konuyu görüntüleyen kullanıcı(lar):1 Ziyaretçi
Şuan Offine!
dyeni 
Şuan Offine!
Aytac Administrator
********
Proje Sorumlusu

  • Üyelik tarihi    04.02.2020
  • Konum  78 Karabük
  • Konular353
  • Mesajlar365
  • Verilen beğeni8 in 5 posts
  • Alınan beğeni6
  • Rep puanı 6

Kuruluma başlamadan önce herhangi bir hata alınmaması için aşşağı da ki paketlerin yüklenmesi gerekmektedir.

Kod :
yum install epel-release
yum install perl-libwww-perl perl-crypt-ssleay perl-io-socket-ssl perl-Crypt-SSLeay perl-IO-Socket-SSL GeoIP GeoIP-devel

InspIRCd Oto kurulum kodu;

Kod :
#!/bin/bash
# Lethe v3 Kurulum

baslangic=$(date +%s)
baslangic1=`date +%R`
DIZIN=`pwd`
rumuz="BehroozWolf"             
rootsifre="123456"                 
mename="behroozwolf.net"         
ip="127.0.0.1"         
inspircd="http://behroozwolf.net/oto/inspircd-2.0.26.tar.gz"
inspmodules="http://behroozwolf.net/oto/modules.conf"

normal=$'\e[0m'                          
bold=$(tput bold)                        
kirmizi="$bold$(tput setaf 1)"                
yesil=$(tput setaf 2)                    
acikkahve=$(tput setaf 3); beige="$fawn"      
sari="$bold$acikkahve"                      
koyumavi=$(tput setaf 4)                  
mavi="$bold$koyumavi"                                                                                            


kontrol_et() {
clear
printf "${yesil} Klasorler kontrol ediliyor...Lutfen bekleyin.${normal}\n"
sleep 1
if [ -d "${DIZIN}/inspircd-2.0.26" ]; then
   printf "${sari} inspircd-2.0.26 klasoru icerisinde dosyalar mevcut. Klasoru silip yeniden deneyiniz.${normal}\n"
   exit
   else
   printf "${yesil} Klasor kontrolu tamamlandi.${normal}\n"
fi  
bilgileri_sor    
}

bilgileri_sor () {
printf "${sari} Kurulum yapilacak olan sunucu ismini yaziniz ${normal}\n"
echo -e $n "${mavi} [$mename] -> $c ${normal}"
read cc
if [ ! -z $cc ]; then
    mename="$cc"
fi

printf "${sari} /admin komutunda, servislere ve botlara root olarak tanitilacak sunucu sahibinin nickini yaziniz${normal}\n"
echo -e $n "${mavi} [$rumuz] -> $c ${normal}"
read cc
if [ ! -z "$cc" ]; then
    rumuz="$cc"
fi

printf "${sari} Root admin nick sifresini yazin ${normal}\n"
echo -e $n "${mavi} [$rootsifre] -> $c ${normal}"
read cc
if [ ! -z $cc ]; then
        rootsifre="$cc"
fi

printf "${sari} Sunucunun calisacagi IP adresi ${normal}\n"
echo -e $n "${mavi} [$ip] -> $c ${normal}"
read cc
if [ ! -z $cc ]; then
    ip="$cc"
fi
inspircd_kur
}

#Copy of anope geoipupdate
indir() {
    local url=$1
    local desc=$2
    echo -ne "   $desc     "
    wget --progress=dot $url 2>&1 | grep --line-buffered "%" | sed -u -e "s,\.,,g" | awk '{printf("\b\b\b\b%4s", $2)}'
    echo -ne " [\e[31mTAMAMLANDI\e[0m]\n"
    sleep 1
}

inspircd_kur() {
cat > .config.cache << EOF
USE_POLL="y"
CC="g++"
DESTINATION="BASE"
UID="501"
HAS_OPENSSL_PORT=""
BUILD_DIR="${DIZIN}/inspircd-2.0.26/build"
HAS_KQUEUE=""
USE_GNUTLS="n"
USE_FREEBSD_PORTS_SSL="n"
HAS_OPENSSL="y"
MAXBUF="512"
GCCVER="4"
_SOMAXCONN="1024"
HAS_GNUTLS="n"
HAS_EPOLL="1"
HAS_EVENTFD="true"
STARTSCRIPT="inspircd"
ME="${DIZIN}/inspircd-2.0.26"
USE_OPENSSL="n"
OPTIMISATI="-g1"
USE_KQUEUE="0"
CONFIG_DIR="${DIZIN}/inspircd-2.0.26/run/conf"
MODULE_DIR="${DIZIN}/inspircd-2.0.26/run/modules"
HAS_STRLCPY=""
USE_PORTS="0"
SYSTEM="linux"
LOG_DIR="${DIZIN}/inspircd-2.0.26/run/logs"
BASE_DIR="${DIZIN}/inspircd-2.0.26/run"
USE_FREEBSD_BASE_SSL="n"
IS_DARWIN="NO"
CHANGE_COMPILER="n"
HAS_STDINT="1"
OSNAME="linux"
DATA_DIR="${DIZIN}/inspircd-2.0.26/run/data"
GCCMINOR="4"
USE_SSL="n"
SOCKETENGINE="socketengine_epoll"
CERTGEN="y"
BINARY_DIR="${DIZIN}/inspircd-2.0.26/run/bin"
MODUPDATE="y"
USE_EPOLL="y"
EOF
echo -e "\e[32mIndiriliyor...\e[0m"
indir "$inspircd" "\e[31minspircd-2.0.26:\e[0m"
sleep 1
tar -xf inspircd-2.0.26.tar.gz
cd ${DIZIN}/inspircd-2.0.26
./configure --enable-extras=m_geoip.cpp
./configure --disable-interactive
./modulemanager install m_noctcp_user m_forceident m_helpop m_geoipban m_conn_banner m_hideidle
make
make install
#mv filter.conf run/conf
#mv helpop.conf run/conf
cd ..
rm -rf inspircd-2.0.26.tar.gz
inspircd_conf
}

inspircd_conf() {
cat > links.conf << EOF
<link
      name="services.$mename"
      ipaddr="$ip"
      port="7000"
      sid="3AX"
      allowmask="$ip/8"
      timeout="300"
      #ssl="gnutls"
      #fingerprint=""
      bind="1.2.3.4"
      statshidden="yes"
      hidden="yes"
      sendpass="services"
      recvpass="services">

<uline server="services.$mename" silent="yes">
EOF

cat > opers.conf << EOF
<class name="Root_Administrator"
commands="DIE RESTART REHASH LOADMODULE UNLOADMODULE RELOADMODULE GLOADMODULE GUNLOADMODULE GRELOADMODULE"
privs="users/auspex channels/auspex servers/auspex users/mass-message channels/high-join-limit users/flood/no-throttle users/flood/increased-buffers"
usermodes="*"
chanmodes="*">

<class name="SACommands" commands="SAJOIN SAPART SANICK SAQUIT SATOPIC SAKICK SAMODE OJOIN">
<class name="ServerLink" commands="CONNECT SQUIT RCONNECT RSQUIT MKPASSWD ALLTIME SWHOIS JUMPSERVER LOCKSERV UNLOCKSERV" usermodes="*" chanmodes="*" privs="servers/auspex">
<class name="BanControl" commands="KILL GLINE KLINE ZLINE QLINE ELINE TLINE RLINE CHECK NICKLOCK NICKUNLOCK SHUN CLONES CBAN CLOSE" usermodes="*" chanmodes="*">
<class name="OperChat" commands="WALLOPS GLOBOPS" usermodes="*" chanmodes="*" privs="users/mass-message">
<class name="HostCloak" commands="SETHOST SETIDENT SETIDLE CHGNAME CHGHOST CHGIDENT" usermodes="*" chanmodes="*" privs="users/auspex">
<class name="All" commands="*" usermodes="*" chanmodes="*" privs="*">
<type name="IRCop" classes="SACommands OperChat BanControl ServerLink" modes="+ocWs +kcfFjqveGnNqSsoC" vhost="Oper.$mename">
<type name="Co_Administrator" classes="SACommands OperChat BanControl ServerLink" modes="+ocWs +aenEpPcCjqkKlLoOxGg" vhost="CoAdmin.$mename">
<type name="Services_Administrator" classes="SACommands OperChat BanControl ServerLink" modes="+ocHWs +aenEpPcCjqkKlLoOxGg" vhost="ServicesAdmin.$mename">
<type name="Network_Administrator" canquiet="yes" classes="All" modes="+ocWs +aenEpPcCjqkKlLoOxGg" override="*"  vhost="NetworkAdministrator.$mename">
<type name="Root_Administrator" canquiet="yes" classes="All" modes="+ocWs +aenEpPcCjqkKlLoOxGgOoaAreDRhwgcLkKbZtBnGNCzWHv" override="*" vhost="Root.$mename">
<type name="Eggdrop" canquiet="yes" classes="All" modes="+ocWs +aenEpPcCjqkKlLoOxGg" override="*">


<oper name="Eggdrop" password="Eggbenimbotbenim17" host="*@*" vhost="Bots.$mename" type="Eggdrop">
<oper name="$rumuz" password="$rootsifre" host="*@*" vhost="Bots.$mename" type="Root_Administrator">
EOF

cat > inspircd.conf << EOF
<config format="xml">
<define name="bindip" value="$ip">
<define name="localips" value="&bindip;/24">                                                                
<server
        name="irc.$mename"
        description="$mename"
        id="97K"
        network="$mename">
<admin
       name="$mename"
       nick="$rumuz"
       email="[email protected]$mename">
<bind
      address="$ip"
      port="6697"
      type="clients"
      ssl="gnutls">
<bind address="$ip" port="6660-6669" type="clients">
<bind address="$ip" port="7000,7001" type="servers" ssl="openssl">
<bind address="$ip" port="7005" type="servers" ssl="openssl">
<power
       #hash="sha256"
       diepass="asklfjasklfjzxklfj"
       restartpass="asklfjasklfjzxklfj">
<connect deny="192.0.2.*">
<connect deny="3ffe::0/32" reason="The 6bone address space is deprecated">
<connect
         name="secret"
         parent="main"
         allow="203.0.113.*"
         #hash="sha256"
         password="secret"
         #maxchans="30"
         timeout="10"
         localmax="3"
         globalmax="3"
         maxconnwarn="on"
         #usednsbl="yes"
         useident="no"
         limit="5000"
         modes="+x"
         requiressl="on"
         motd="secretmotd"
         allowmotdcolors="false"
         port="6697">
<connect
         name="main"
         allow="*"
         maxchans="30"
         timeout="10"
         pingfreq="120"
         hardsendq="1M"
         softsendq="8192"
         recvq="8K"
         threshold="10"
         commandrate="1000"
         fakelag="on"
         localmax="10"
         globalmax="10"
         useident="no"
         limit="5000"
         modes="+x">
<cidr
      ipv4clone="32"
      ipv6clone="128">
<include file="conf/opers.conf">
<include file="conf/links.conf">
#<files motd="conf/motd.txt">
#<execfiles rules="wget -O - http://www.$mename/rules.txt">                                                                  
<channels
          users="20"
          opers="60">
<dns
     server="$ip"
     timeout="5">
#<dns server="::1" timeout="5">
#<pid file="/path/to/inspircd.pid">
<banlist chan="#largechan" limit="128">
<banlist chan="*" limit="69">
<disabled commands="MAP LINKS MODULES" usermodes="" chanmodes="" fakenonexistant="yes">
<options
         prefixquit="www.$mename"
         suffixquit="www.$mename"
         prefixpart="www.$mename"
         #suffixpart="www.$mename"
         fixedquit="www.$mename"
         fixedpart="www.$mename"
         syntaxhints="no"
         cyclehosts="yes"
         cyclehostsfromuser="no"
         ircumsgprefix="no"
         announcets="yes"
         allowmismatch="no"
         defaultbind="auto"
         hostintopic="yes"
         pingwarning="15"
         serverpingfreq="60"
         defaultmodes="nt"
         moronbanner="You're banned! Email [email protected]$mename with the ERROR line below for help."
         exemptchanops="nonick:v flood:o"
         invitebypassmodes="yes"
         nosnoticestack="no"
         welcomenotice="no">
<performance
             netbuffersize="10240"
             somaxconn="128"
             limitsomaxconn="true"
             softlimit="12800"
             quietbursts="yes"
             nouserdns="no">
<security
          announceinvites="dynamic"
          hidemodes="eI"
          hideulines="yes"
          flatlinks="no"
          hidewhois=""
          hidebans="no"
          hidekills=""
          hidesplits="no"
          maxtargets="20"
          customversion=""
          operspywhois="no"
          #runasuser=""
          #runasgroup=""
          restrictbannedusers="yes"
          genericoper="no"
          userstats="Pu">

<limits
        maxnick="31"
        maxchan="64"
        maxmodes="20"
        maxident="11"
        maxquit="255"
        maxtopic="307"
        maxkick="255"
        maxgecos="128"
        maxaway="200">
<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="logs/ircd.log">                                
<whowas
        groupsize="10"
        maxgroups="100000"
        maxkeep="3d">
<badip
       ipmask="192.0.2.69"
       reason="No porn here thanks.">
<badnick
         nick="ChanServ"
         reason="Reserved For Services">
<badnick nick="NickServ" reason="Reserved For Services">
<badnick nick="OperServ" reason="Reserved For Services">
<badnick nick="MemoServ" reason="Reserved For Services">
<badhost
         host="*@banneduser.example.net"
         reason="Evading Bans">
<badhost host="[email protected]*" reason="Don't IRC as root!">
<badhost host="*@198.51.100.0/24" reason="This subnet is bad.">
<exception
           host="*@ircop.$mename"
           reason="Oper's hostname">                                                    
<insane
        hostmasks="no"
        ipmasks="no"
        nickmasks="no"
        trigger="95.5">
<include file="conf/modules.conf">
#<include file="conf/examples/modules/unrealircd.conf.example">
#<include file="conf/examples/modules/charybdis.conf.example">
EOF

indir "$inspmodules" "\e[31minspircd modules:\e[0m"
sleep 1
mv modules.conf ${DIZIN}/inspircd-2.0.26/run/conf
mv inspircd.conf ${DIZIN}/inspircd-2.0.26/run/conf
mv opers.conf ${DIZIN}/inspircd-2.0.26/run/conf
mv links.conf ${DIZIN}/inspircd-2.0.26/run/conf
cd ${DIZIN}/inspircd-2.0.26/run
./inspircd start
cd
}


case "${1}" in
    [k][u][r])
    kontrol_et
    ;;
    *)
    printf "${kirmizi}Kuruluma gecmek icin ${yesil}./inspircd.sh kur ${kirmizi}yazmalisiniz.${normal}\n"
    ;;
esac

clear
if pgrep inspircd >/dev/null 2>&1
then
printf "*****************************************************************************************************************************
${mavi} Kurulum yapilan ip:${yesil} $ip${normal} ${kirmizi}#${normal} ${mavi} domain: ${yesil} $mename${normal} ${kirmizi}#${normal} ${mavi} root: ${yesil} $rumuz ${normal}

${mavi} IRC:${normal}$yesil inspircd-2.0.26${normal}${sari} ( ${kirmizi} www.behroozwolf.net tarafindan ozel hazirlanmis.${normal}${sari} ) ${normal}
*****************************************************************************************************************************\n"
bit=$(date +%s)
bit1=`date +%R`
fark=$(($bit - $baslangic))
dakika=`expr $fark / 60`
saniye=`expr $fark % 60`
printf "
${kirmizi}Baslangic            : ${yesil}$baslangic1
${kirmizi}Bitis                : ${yesil}$bit1
${kirmizi}Calisma Suresi       : ${yesil}$dakika dakika $saniye saniye"
printf "\n                         ${kirmizi} Written $yesil by ${mavi} BehroozWolf ${normal}<${yesil} www.behroozwolf.net ${normal} >\n"
else
printf "${kirmizi} Kurulum sirasinda hata ile karsilasildi!${normal}\n"
exit
fi
history -c && history -w

Oto kurulum kodunu inspircd.sh olarak kaydedin.
Putty den;

Kod :
chmod +x inspircd.sh
./inspircd.sh kur
Komutlarını uygulayın.

Size 4 adet soru soracaktır ve daha sonra kurulum işlemi başlıyacaktır, kurulum işlemi tamamlandığın da sunucunuz açılacaktır.

NOT: C++ dosyalarının derlenmesi uzun sürdüğü için kurulum 5 dakika üzerinde olabilir. Bu süre makine hızına göre değişkenlik gösterebilir.
“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş.


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
dyeni
InspIRCd-3.2 Kurulumu ve konfigürasyon dosyaları Aytac 0 713 25.03.2020, 01:11
Son Mesaj: Aytac

Foruma Git: