Logging

Mason Batley mason at section31.com.au
Sun Jun 23 19:23:07 EST 2002


Hey People,

Just curious, I have the following firewall script on my gateway,
If there is a way, Can I log the ammount of traffic going to each
workstation on the network from the PPP interface?

Cheers,
Mason.


/sbin/modprobe ipt_state
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ipt_MASQUERADE

iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

## Secure it ##
 iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
 iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
 iptables -P INPUT DROP
 iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT

echo "[ Firewall Started ]"
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the wireless mailing list