Here you go:

#!/bin/bash

declare FILE="/home/jburns/config1"

function write {
  echo $* >> $FILE
}

declare BEGINPORT=28800
declare ENDPORT=29100

while [ "$BEGINPORT" -lt $(($ENDPORT+1)) ]
  do

  write "tcp,0.0.0.0/0,$BEGINPORT,192.168.1.100,$BEGINPORT,on"
  BEGINPORT=$(($BEGINPORT+1))
done

_______________________________________________
Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list