Skip to content

Instantly share code, notes, and snippets.

@soheilsec
Created October 4, 2023 16:32
Show Gist options
  • Save soheilsec/2a708e97d27570f680551c1b78ff70f4 to your computer and use it in GitHub Desktop.
Save soheilsec/2a708e97d27570f680551c1b78ff70f4 to your computer and use it in GitHub Desktop.
IBSng Install
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
@Tesla2550
Copy link

hi
how can i change ibsng username ?
thanks for helping

@soheilsec
Copy link
Author

soheilsec commented Dec 13, 2024 via email

@Tesla2550
Copy link

thanks
but, I want to change username before installing.

@soheilsec
Copy link
Author

soheilsec commented Dec 13, 2024 via email

@Tesla2550
Copy link

ok,thanks for answer

@Tesla2550
Copy link

با سلام
من هرکاری میکنم این ارور برطرف نمیشه
ممکنه راهنمایی کنید ؟
Error : user authentication failed - radius timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment