Peturrr
August 27th, 2006, 06:39 AM
I have configured a server to act as a very simple NAT router.
It all works great, however, when using the internet connection over this router there is lot's and lot's of harddisk activity on the router.
I found out that every connection through the router is logged to the kernel log. I want to disable this logging, since it keeps my harddisk busy 24h/day and that definately reduces it's lifetime.
The following rules are applied, none of them have a -LOG parameter.
#Flush all rules
iptables -F
iptables -t nat -F
#NAT
iptables -t nat -A POSTROUTING -s 10.0.0.2 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.0.0.2 -o ppp0 -j MASQUERADE
#ALLOW Connections
iptables -A FORWARD -s 10.0.0.2 -o ppp0 -j ACCEPT
iptables -A FORWARD -s 10.0.0.2 -o eth0 -j ACCEPT
iptables -A FORWARD -d 10.0.0.2 -m state --state ESTABLISHED,RELATED -i eth0 -j ACCEPT
iptables -A FORWARD -d 10.0.0.2 -m state --state ESTABLISHED,RELATED -i ppp0 -j ACCEPT
How would I disable the logging of these rules?
It all works great, however, when using the internet connection over this router there is lot's and lot's of harddisk activity on the router.
I found out that every connection through the router is logged to the kernel log. I want to disable this logging, since it keeps my harddisk busy 24h/day and that definately reduces it's lifetime.
The following rules are applied, none of them have a -LOG parameter.
#Flush all rules
iptables -F
iptables -t nat -F
#NAT
iptables -t nat -A POSTROUTING -s 10.0.0.2 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.0.0.2 -o ppp0 -j MASQUERADE
#ALLOW Connections
iptables -A FORWARD -s 10.0.0.2 -o ppp0 -j ACCEPT
iptables -A FORWARD -s 10.0.0.2 -o eth0 -j ACCEPT
iptables -A FORWARD -d 10.0.0.2 -m state --state ESTABLISHED,RELATED -i eth0 -j ACCEPT
iptables -A FORWARD -d 10.0.0.2 -m state --state ESTABLISHED,RELATED -i ppp0 -j ACCEPT
How would I disable the logging of these rules?