My docsis_server 3.5 Working Installation - Centos 7 | docsis.org

You are here

My docsis_server 3.5 Working Installation - Centos 7

1 post / 0 new
lalodj83
My docsis_server 3.5 Working Installation - Centos 7

yum update

- yum install wget
- yum install unzip
wget https://github.com/bschirrmeister/docsis_server/archive/master.zip
unzip master.zip

- yum install gcc (probably not necessary)
- yum install gcc-c++
- yum install m4
- rpm -Uvh http://repo.mysql.com/mysql57-community-release-el7-7.noarch.rpm
- yum install mysql-community-server
- yum install mysql-community-devel
service start mysqld
service status mysqld

cd docsis_server-master
./configure
make
make install

these are optional if you will install phpmyadmin:
- yum install httpd <- optional
- yum install php <- optional
- yum install php-mysql <-optional
- yum install openssh-server <-optional
- yum install net-snmp <-optional

mkdir /home/docsis
cd /scripts_and_docs
sh INSTALL.uid
vi docsisd--RedHat_Startup_Script
- Change Line "DOCSISD=/usr/sbin/docsis_server" by "DOCSISD=/usr/local/sbin/docsis_server"
vi INSTALL.Usefull_Scripts
- Add the following:
# Installing config
cp -f ./docsis-server.conf /etc
mkdir /usr/local/etc
ln -s /etc/docsis-server.conf /usr/local/etc/docsis-server.conf
sh INSTALL.Usefull_Scripts
- Note: if mkdir errors comes up, create directories manually
mysql < INSTALL.mysql_1_users
mysql < INSTALL.mysql_2_dhcp_tables
mysql < INSTALL.mysql_3_pdns_tables
mysql < INSTALL.mysql_4_data <- optional

edit /etc/docsis-server.conf as your convenience

service docsisd start

Usefull commands:
netstat -antup | grep docsis_server
ps -ef | grep docsis_server

iptables -I INPUT -p tcp --dport 22 -j ACCEPT -> SSH for external control
iptables -I INPUT -p udp --dport 69 -j ACCEPT -> TFTP
iptables -I INPUT -p udp --dport 67 -j ACCEPT -> DHCP
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT -> Mysql for external control

--------------------------------------------- Example of running service ------------------------------------------------
[root@localhost]$ service docsisd status
docsisd.service - SYSV: docsisd is a combination DHCP, syslog, TFTP, and ToD service for DOCSIS cable modems.
Loaded: loaded (/etc/rc.d/init.d/docsisd)
Active: active (running) since jue 2015-11-05 12:25:19 CST; 2s ago
Process: 33742 ExecStop=/etc/rc.d/init.d/docsisd stop (code=exited, status=0/SUCCESS)
Process: 33749 ExecStart=/etc/rc.d/init.d/docsisd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/docsisd.service
├─33755 docsis_server (DHCP) ver
├─33756 docsis_server (TFTP) rver
├─33757 docsis_server (TIME) rver
└─33758 docsis_server (SYSLOG) ver

nov 05 12:25:19 localhost.localdomain systemd[1]: Starting SYSV: docsisd is a combination DHCP, syslog, TFTP, and ToD service for D...ms....
nov 05 12:25:19 localhost.localdomain docsisd[33749]: [46B blob data]
nov 05 12:25:19 localhost.localdomain systemd[1]: Started SYSV: docsisd is a combination DHCP, syslog, TFTP, and ToD service for DO...dems..
Hint: Some lines were ellipsized, use -l to show in full.