improve example
fix Ping macro
improve multiport rule generator

It is not allowed to use --sports and --dports together!
use defined() to check fot undefined value