conntrack messages are filling my screen!
I'm putting Debian Sarge on all of my systems: I have a server/firewall that doesn't have X installed and that serves a few workstations. My problem is that certain messages about network activity are being sent to the text screen on the server. The messages look something like this:
Code:
IN=ppp0 OUT= MAC= SRC=66.2.31.2 DST=66.2.88.99 LEN=48 TOS=0x00 PREC=0x00 TTL |
Check your /etc/syslog-ng/syslog-ng.conf or /etc/syslog.conf file. It could also be that you are logged in as root, which should be only done temporarily.
On my computer, there is an /etc/syslog-ng/syslog-ng.conf.in file that I would edit instead. Look that this part: Code:
# |
You could try this sequence of commands (the first character, "$" or "#", represents the shell prompt):
$ su # echo "dmesg -n1" > /etc/init.d/local # chmod +x /etc/init.d/local # update-rc.d local start 80 2 3 4 5 . # /etc/init.d/local start # exit $ A better alternative would be to redirect the log messages to some file instead. This is easy with the FireHOL firewall and ulogd but I don't know how to do it with other firewalls. |
Thanks for the replies. jschiwal: I am using syslog and I edited /etc/syslog.conf in an effort to fix it so here's what I have currently (I've omitted all the comments and empty lines):
Code:
auth,authpriv.* /var/log/auth.log |
You can just remove logging from the firewall. Something glike this might help:
Code:
/sbin/iptables-save | grep -v LOG | /sbin/iptables-restore |
Quote:
|
Quote:
|
Quote:
START_FIREHOL=YES FIREHOL_LOG_MODE="ULOG" I used Firestarter before discovering FireHOL+ulogd and the log messages in console were quite annoying. :mad: So when I found out that enabling ulogd in FireHOL was that easy, it really saved my day. :) And the firewall configuration with FireHOL is also not that difficult. There's a command line tool named "firehol-wizard" ("firehol-wizard > /etc/firehol/firehol.conf") that checks your running services and then creates an initial firewall config file for you. If you want to, for example, open port 6881 in order to speed up bittorrent downloads, you can add something like this to /etc/firehol/firehol.conf: # Allow BitTorrent server ports server_bittorrent_ports="tcp/6881" client_bittorrent_ports=any server bittorrent accept client all accept Then you just restart FireHOL ("/etc/init.d/firehol restart" or simply "/sbin/firehol restart") and you're ready to go. :) |
All times are GMT -5. The time now is 07:17 PM. |