Linux · Summary

Linux tc-how to work on different IPs

#!/bin/bash interface=eth0 ip1=192.168.1.1 ip2=172.16.1.1 delay1=100ms delay2=200ms tc qdisc add dev $interface root handle 1: prio tc qdisc add dev $interface parent 1:1 netem delay $delay1 10ms 25% tc filter add dev $interface parent 1: protocol ip prio 1 u32 match ip dst $ip1 flowid 1:1 tc qdisc add dev $interface parent 1:2 netem delay $delay2… Continue reading Linux tc-how to work on different IPs

python · Summary

Python: OverflowError: signed char is greater than maximum

Here the pseudo code about the flow: It runs into the error: with a special character ‘À’  which its binary value is 192 My way to resolve this error is to update typecode of the array from ‘b’ (signed char) to ‘B’ (unsigned char). Reason: Data from the file should not in a range which from… Continue reading Python: OverflowError: signed char is greater than maximum

Cisco

Cisco IPS – Inline VLAN Pair mode

Setup Cisco IPS on EVE I failed to setup Cisco IPS on EVE(ver 2.0.3-53). What I did: Download Cisco IPS ova file via: http://certcollection.org/forum/topic/270568-ips-4240-ver-7-unholy-darkness/page__hl__%20cisco%20%20ips (https://mega.nz/#!W99UnTIa!-3k6bQwiD_DhNCDFfL6TWlU69KoRwIYeaJE9JlDOASY) Did everything been listed in following instructions for IPS Interfaces http://certcollection.org/forum/topic/266792-emulating-ips-on-unl/ http://www.cznetlab.cz/index.php?cat=cciesec&subcat=unlips My problem is: Cisco IPS failed to ping anything out of it, I run traffic capture on IPS’s interface,… Continue reading Cisco IPS – Inline VLAN Pair mode

python · windows

Try ansible on Windows

Background: Here is the environment about NetBrain performance testing: 1 windows server for License/Workspace server 5 windows servers for Network Server 5 windows servers for Automation server It really took us a lot of time to deploy our product/collect logs on theses servers. My colleague wrote a client-server application and try to do the things by… Continue reading Try ansible on Windows