Tag Archives: Linux

CONVERTING CISCO 7940 PHONES TO WORK WITH ASTERISK / ELASTIX

This is a third part of Hosting Cisco Phone Files on TFTP Server, to make Cisco Phones work with SIP Server such as Asterisk / Elastix.

You can Download the third part from here:  CONVERTING CISCO 7940 PHONES TO WORK WITH ASTERISK- Elastix -Part III

 

Thanks,

Salman Aftab

Setting up Linux DHCP Server for Cisco Phone Files PART -II

This is the second part of three part series. In this part we will setup DHCP Server on our Linux box. This DHCP will provide automatic IP addresses to our Cisco Phones.(If it’s set to YES)

So Lets setup a simple DHCP Server on Linux.

You can Download the Pdf from here Setting up Linux TFTP Server for Cisco Phone Files -Part II

 

Don’t forget to Comment

Thanks,

Salman Aftab

Setting up Linux TFTP Server for Cisco Phone Files PART -I

Hey Guys this time its Linux and Cisco working hand to hand. This post is kind of a multipost and consist of :

1. TFTP Server Setup on CentOS 6.4

2. DHCP Server Setup on CentOS 6.4

3. Hosting Cisco Phones Firmware on TFTP Server

4. Converting SCCP to SIP to use Cisco VOIP Phones with Elastix.

At the End of this Tutorial we would be able to setup working Cisco VOIP Phones with Elastix / Asterisk.

You can Download Part -I from here Setting up Linux TFTP Server for Cisco Phone Files-I

Please comment,

Thanks,

Salman Aftab

www.itpings.com

Python for Linux Admins – IV

Simple Python Script which will show linux logs (dmesg and lastlog) from selection.

#!/usr/bin/env python

import os

os.system (‘clear’)

print “Pylog Created by Hyp3ri0n”

print “Version 0.1”

print “Respect Linux…………….”

print “=” * 50

print ” ”

value = 1

value2 = 2

answer = int(input (“Enter the Value 1 or 2: “)

if answer == value:

os.system (‘tail -20 /var/log/dmesg’)

if anwer == value2:

os.system (‘lastlog -u 0 && lastlog -u 1001-10000’)

#End

IPSEC Site-To-Site VPN on CENTOS LINUX

centos_image2

How To Setup IPSEC Site-To-Site VPN on Linux CentOS

Scenario

Linux Gateway Server with 2 Lan Cards on Each office Location. Lets Call them A and B.
A is Head Office Linux Server and B is Branch Office Linux Server.
A has CentOS 6.4 , Extenal IP Address 1.1.1.1 , Local Lan Subnet 192.168.100.0/24
B has CentOS 5.9, External IP Address 2.2.2.2, Local Lan Subnet 10.1.1.0/24
To Accomplish the task we will use OpenSwan.
Continue reading