Anyway to define connlimit iptables rule?

I didn’t see a configuration command to do this, is it ok to define it in iptables directly?