Asterisk PBX server behind NAT (asterisk port forwarding)

Asterisk PBX server behind NAT (asterisk port forwarding)

If Your asterisk server is behind NAT then to access asterisk from outside world you need to use the port forwarding features of iptables in Linux. Steps for asterisk Port forwarding 1] Check rtp.conf file in asterisk root@indiangnu.org:/etc/asterisk# cat rtp.conf ; ; RTP Configuration ; [general] ; ; RTP start and RTP end configure start …

Read More Read More

Squid with MySQL – authentication

Squid with MySQL – authentication

Squid is the widly used proxy server. We are using squid as proxy cahcing server with authnetication with PAM.. Now we have replace this squid with PAM authentication with squid with MySQL. Installation and configuration – * Download squid_mysql plugin from here… 1] go to directory where you have extracted squid_mysql plugin.. root@indiangnu.org:/home/arun# cd mysql_auth-0.8 …

Read More Read More

sify autodialer – with expect tools

sify autodialer – with expect tools

1] command to start Sify internet connection automatically root@indiangnu.org:~# cat /usr/local/bin/sify_autodialer #!/bin/bash /usr/bin/sifyconnect -o /etc/init.d/sifybb stop sifyd /etc/sify/sifyautoconnect /usr/bin/sifyconnect –info root@indiangnu.org:~# 2] Modify  sify configuration file root@indiangnu.org:~# head -n 5 /etc/sify/sifyautoconnect #!/usr/bin/expect -f # # This Expect script was generated by autoexpect # Expect and autoexpect were both written by Don Libes, NIST. # ….. …

Read More Read More

HTTP and HTTPS with Apache server

HTTP and HTTPS with Apache server

Apache is the most widely used web server. For secure HTTP protocol we need to check whether mod_ssl (Secure Socket Layer) module of Apache is installed/loaded or not… this mod_ssl module may be loaded as static or daynamic module. The static mean SSL support will be part of apache binary and in case of dynamic …

Read More Read More

Willing to contribute ? – openLSM

Willing to contribute ? – openLSM

Introduction- openLSM – is open source Linux Server Management project. This project is hosted by sourceforge.net. We all know how our life is easy due to open source projects and communites. But there are very few Indians who were contributing to Global open and free software community. We really don’t know why?.. * openLSM projects …

Read More Read More

how to reset MySQL root user password with different methods

how to reset MySQL root user password with different methods

 when  you loss  mysql  root  pasword. then  stop  mysql  server.. then  follow  below  steps.  * Method -1 1]  Start  MySQL without  loading  grant access… root@indiangnu:~# mysqld –skip-grant-tables & [1] 10197 root@indiangnu:~# 071129  9:41:39  InnoDB: Started; log sequence number 0 43655 071129  9:41:39 [Note] mysqld: ready for connections. Version: ‘5.0.22-Debian_0ubuntu6.06.3-log’  socket: ‘/var/run/mysqld/mysqld.sock’  port: 3306  Debian Etch …

Read More Read More

MySQL full DB dump -shell script

MySQL full DB dump -shell script

#!/bin/bash #Shell script to backup MySQL database #To set permission to user which can take  backup of all the DB in #MySQL server. plzsee query below #mysql> grant SELECT, LOCK TABLES  on  *.*  to #’backup_user’@’localhost’ identified  by  ‘pwd_of_user’; # #(c)arunbagul@indiangnu.org ############################################################### #DB details user_name=”user” user_pwd=”password” myhost=”localhost” # Linux bin paths, change this if it can’t …

Read More Read More

python script for sending mail.

python script for sending mail.

#!/usr/bin/python #This  scritp  will send mail  in both HTML and Text format #@arunbagul@indiangu.org #@GPL import smtplib import os import sys from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMASPACE, formatdate from email import Encoders #guess = sys.argv[1] fromaddr = “arunbagul@indiangnu.org” toaddrs = “toaddress@indiangnu.org” #———————————– file_name = “/home/arunbagul/mail-body.txt” file …

Read More Read More

Load Balancing – shell script

Load Balancing – shell script

#!/bin/bash echo “——————————————-” echo “” echo -e “Wel come to Load Balancing………….” echo -e “@arunbagul@indiangnu.org” echo “” echo “——————————————-” ################################# #**root@proxy# cat  /etc/iproute2/rt_tables # # reserved values # #**255     local #**254     main #**253     default #**0       unspec #Entry manually added #please  add this two line each internet connections #for example two connections #**251    sify3 #**252    tata …

Read More Read More

Samba as PDC

Samba as PDC

1 Samba Server 2 Samba Configuration File 3 Machine Account Creation 4 User Account Creation 5 How the “smbpasswd” is updated 6 Windows Backup using Samba Share 1] Samba Server We are using samba as PDC so that windows machine will be authenticated using same mysql DB. But samba as mysql is not supported for …

Read More Read More