[SATLUG] DNAT logging

Leif Johnson leif at paisd.net
Fri Jan 13 10:04:12 CST 2006


I'm forwarding some web traffic via iptables to an MS IIS web server that I
must use here at school. My question is how can I log web traffic from the
outside? The requests are not logged in the httpd log files of course and
all the IIS logs show is a request from the Linux gateway. Is there a way 
to log this traffic? My school board wants to know how much traffic we are 
getting on our Gradespeed server.
 
# FORWARD TO WEBSERVER
/sbin/iptables -A PREROUTING -t nat -p tcp -i eth0 --dport 8080 -j DNAT 
 --to 192.168.1.7:80
 
Sincerely,
-Leif Johnson
Port Aransas ISD
100 Station St
Port Aransas Tx 78373
361 749-1200 ext. 316
http://blog.paisd.net





More information about the SATLUG mailing list