Move iptables and uid checks to before arguments processing.
Add option for command simulation.