public NAT_rule getRule(int i, boolean dynamic){
		Vector<NAT_rule> rules = static_rules;
		if(dynamic) rules = dynamic_rules;
		if(i>=0 && i<rules.size()){
			return rules.get(i);
		}
		return null;
	}