import os
ips = os.popen("""ifconfig |grep 'inet addr:'|awk '{print $2}'| sed '$d'| sed 's/addr://g'""").read().strip(" ").split(' ')
for (index, ip) in enumerate(ips):
print 'acl ipno%s myip %s'%(index,ip)
print 'tcp_outgoing_address %s ipno%s'%(ip,index)
print ''