Skip to content

Instantly share code, notes, and snippets.

View danish-rehman's full-sized avatar

danish-rehman

View GitHub Profile
@danish-rehman
danish-rehman / firewall_rule
Created January 9, 2015 18:43
Firewall rule unreachable
>> sudo iptables -I OUTPUT -p icmp --icmp-type destination-unreachable -j DROP
@danish-rehman
danish-rehman / delete_routes
Created January 9, 2015 18:45
Delete entries from the routing table
# Delete lan0 entry
>> sudo route del -net 10.0.0.0 netmask 255.0.0.0
# Delete the lan1 entry
>> sudo route del -net 10.1.2.0 netmask 255.255.255.0
# Delete the link to rtr2
>> sudo route del -net 10.10.3.0 netmask 255.255.255.0
# Delete the link to rtr1
@danish-rehman
danish-rehman / iperf_test
Created January 9, 2015 18:51
Iperf testing in custom ip router
# Server
>> iperf -u -s -w 1 -l 12
# Client
>> iperf -u -c node4 -w 1 -l 12
@danish-rehman
danish-rehman / untar_quagga
Created January 9, 2015 18:56
Untar Quagga code
>> tar -xvzf quagaa.tar.gz
@danish-rehman
danish-rehman / execute_quagga
Last active August 29, 2015 14:13
Execute quagga command
>> ./configure --enable-user=root --enable-group=root
>> make
@danish-rehman
danish-rehman / quagga conf
Created January 9, 2015 19:00
Sample quagga conf
!
! Example zebra configuration
!
hostname zebrad
password zebra
!
interface eth5
ip address 10.10.1.1/24
!
interface eth7
@danish-rehman
danish-rehman / execute_quagga2
Created January 9, 2015 19:03
Execute command quagga 2
>> ./zebra -d -u root -f /mnt/conf/zebra.conf
@danish-rehman
danish-rehman / ripd conf file
Created January 9, 2015 19:04
Sample ripd conf file
router rip
network 10.1.3.0/24
network eth0
network 10.1.2.0/24
network eth2
@danish-rehman
danish-rehman / ripd
Created January 9, 2015 19:05
Run ripd
>> ./ripd -d
@danish-rehman
danish-rehman / check_ripd
Created January 9, 2015 19:07
Check rip is running
>> cat /var/run/ripd.pid