用Fedora9做网关,装了squid做代理服务器,内网口eth1的IP为192.168.1.1,外网口eth0的IP为192.168.0.254,
用ntop做流量统计时出现一个问题,内网机器192.168.1.***流量都被计算在192.168.0.254上,
请问该怎么样设置才能解决这个问题?非常感谢!!
我的ntop的配置ntop.conf如下:
[root@Test1 ~]# cat /etc/ntop.conf
# tells ntop the user id to run as
--user ntop
#save messages into the system log
--use-syslog=daemon
# sets the directory that ntop runs from
--db-file-path /var/lib/ntop
# the amount and severity of messages that ntop will put out
--trace-level 3
# limit ntop to listening on a specific interface and port
--http-server 127.0.0.1:3000 --https-server 127.0.0.1:3001
# Under certain circumstances, the sched_yield() function causes the ntop web
# server to lock up. It shouldn't happen, but it does. This option causes
# ntop to skip those calls, at a tiny performance penalty.
--disable-schedyield