Posts Tagged ‘Networking’

no “setup” command – CentOS

Posted: 12th October 2012 by Babar Shafiq in System Administration
Tags: , , , , ,

  I usually use “setup” to do the firewall setup for permissive or not and setting of SELINUX, etc…. But on a minimal install you don’t have access to setup command, which is my favorite [root@tel ~]# setup -bash: setup: command not found So how to install it in minimal install ? yum –y install […]

8 steps to protect your Cisco router

Posted: 27th August 2010 by Babar Shafiq in Networking
Tags: , , , ,

Network security is a completely changing area; new devices like IDS (Intrusion Detection systems), IPS (Intrusion Prevention systems), and Honeypots are modifying the way people think about security. Companies are spending thousand of dollars on new security devices, but forgetting the basic, the first line of defense: the border router. Although a lot of people […]

Simple Construction of a RAW TCP/IP Packet

Posted: 11th August 2010 by Babar Shafiq in Programming
Tags: , , ,

#!/usr/local/bin/perl use Socket; $src_host = $ARGV[0]; # The source IP/Hostname $src_port = $ARGV[1]; # The Source Port $dst_host = $ARGV[2]; # The Destination IP/Hostname $dst_port = $ARGV[3]; # The Destination Port. if(!defined $src_host or !defined $src_port or !defined $dst_host or !defined $dst_port) { print “Usage: $0 <source host> <source port> <dest host> <dest port>\n”; exit; […]