Script to Limit # of Connections

Could someone show me something I could copy/paste directly into Tomato's Firewall Script box to make the following happen?:

"Limit the number of connections on ports 1025-65535 for only user IP 192.168.1.5"

The intention is to prevent a massive number of P2P connections. The following are scripts I found elsewhere that only partially solve my problem:

#The following limits the number of TCP connections for that user (not sure of the "range" was necessary to specify just one IP). But I don't want him to have problems opening Web Pages because he's at the connection limit.

#The following is supposed to limit total connections on the port rage on the network. I don't want to have problems opening skype and online game connections because one user has too many P2P connections.

Is there a way to combine the 2? Please be aware that I know almost nothing about script so how would you write this into the firewall script box for Tomato exactly? BTW, my hardware is Linksys WRT54GL.