I have a NAT gateway box that have to NAT billions of connection from private ips to public world.
I have thousand of strings like that
/usr/local/sbin/iptables -t nat -A POSTROUTING -s 10.10.0.0/23 -o eth0 -j SNAT --to PUBLIC_IP
/usr/local/sbin/iptables -t nat -A POSTROUTING -s 10.10.2.0/23 -o eth0 -j SNAT --to PUBLIC_IP
Now i want to be able to log all that traffic to a specific file ?
Anyonw know how to do this ?
Simone Sestini [ SS971-RIPE ]
Plug IT s.p.a. - Technical Office
Via Galileo Ferraris 216
52100 Arezzo
Titles:
System and Network Administrator
Data Transmission Manager
Fax
Web
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::