Monthly Archives: March 2013

Testing Website response times


for i in {1..20}; do curl -w '\nLookup time:\t%{time_namelookup}\tConnect time:\t%{time_connect}\tPreXfer time:\t%{time_pretransfer}\tStartXfertime:\t%{time_starttransfer}\t\tTotal time:\t%{time_total}\n' -o /dev/null -s http://www.google.com; done

Juniper EX Switch Firewall Filters


root@EXSWITCH> show configuration interfaces ge-0/0/6
description "HOST XXX";
enable;
unit 0 {
family ethernet-switching {
vlan {
members mgmt;
}
filter {
input icmp-request;
output icmp-reply;
}
}
}


root@EXSWITCH> show configuration firewall
family ethernet-switching {
filter icmp-request {
term 1 {
from {
source-address {
10.20.184.3/32;
}
destination-address {
10.20.184.1/32;
}
icmp-type echo-request;
}
then {
accept;
count echo-request;
}
}
term 2 {
then accept;
}
}
filter icmp-reply {
term 1 {
from {
source-address {
10.20.184.1/32;
}
destination-address {
10.20.184.3/32;
}
icmp-type echo-reply;
}
then {
accept;
count echo-reply;
}
}
term 2 {
then accept;
}
}
}