Created
October 4, 2023 16:32
-
-
Save soheilsec/2a708e97d27570f680551c1b78ff70f4 to your computer and use it in GitHub Desktop.
IBSng Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install httpd php postgresql postgresql-server postgresql-python perl iptables-services tar zip unzip wget nano bzip2 install nano lsof net-tools -y | |
nano /etc/selinux/config | |
wget https://managedway.dl.sourceforge.net/project/ibsng/IBSng-A1.24.tar.bz2 | |
tar -xvjf IBSng-A1.24.tar.bz2 -C /usr/local | |
service postgresql initdb | |
service postgresql start | |
nano /var/lib/pgsql/data/pg_hba.conf | |
local IBSng ibs trust | |
su - postgres | |
createdb IBSng | |
createuser ibs | |
createlang plpgsql IBSng | |
exit | |
service postgresql restart | |
/usr/local/IBSng/scripts/setup.py | |
nano /etc/httpd/conf/httpd.conf | |
ServerName 127.0.0.1 | |
<Directory "/usr/local/IBSng/interface/IBSng"> | |
AllowOverride None | |
Options None | |
Require all granted | |
</Directory> | |
nano /usr/local/IBSng/core/lib/IPy.py | |
#coding:utf-8 | |
nano /usr/local/IBSng/core/lib/mschap/des_c.py | |
#coding:utf-8 | |
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT | |
iptables -A INPUT -p udp -m state --state NEW -m tcp --dport 1812 -j ACCEPT | |
iptables -A INPUT -p udp -m state --state NEW -m tcp --dport 1813 -j ACCEPT | |
service iptables save | |
service iptables restart | |
chkconfig httpd on | |
chkconfig postgresql on | |
chkconfig IBSng on | |
nano /usr/local/IBSng/interface/IBSng/inc/error.php | |
$timeArr="IRDT/4.0/DST"; | |
# $timeStr="{$timeArr["tm_year"]}/{$timeArr["tm_mon"]}/{$timeArr["tm_mday"]} {$timeArr["tm_hour"]}:{$timeArr["tm_min"]}"; | |
$phperr=isset($php_errormsg)?$php_errormsg:""; | |
# fwrite($fh,"{$timeStr} {$msg} {$phperr}\n"); | |
return; | |
} | |
nano /usr/local/IBSng/core/server/xmlrpcserver.py | |
from xmlrpclib import Marshaller | |
from decimal import Decimal | |
def dump_decimal(self,value, write): | |
write("<value><double>") | |
write(str(value)) | |
write("</double></value>\n") | |
Marshaller.dispatch[Decimal] = dump_decimal | |
service httpd start | |
service IBSng start | |
service postgresql start | |
برای بک اپ و ریستور | |
su postgres | |
pg_dump IBSng > /var/lib/pgsql/IBSng.sql | |
restore | |
service IBSng stop | |
su postgres | |
dropdb IBSng | |
createdb IBSng | |
exit | |
su postgres | |
psql IBSng < /var/lib/pgsql/IBSng.sql | |
service IBSng start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
با سلام
من هرکاری میکنم این ارور برطرف نمیشه
ممکنه راهنمایی کنید ؟
Error : user authentication failed - radius timeout