Delete user-defined chains for the "nat" and "mangle" tables. Create Net::Netmask objects using the new2() constructor, which returns undef in cases when the address or mask can't be parsed.