|
|||
dnsspoof logging issue
i am trying to output the dnsspoof to a file rather than to console. however this does not work
my command: /usr/local/sbin/dnsspoof -i em1 -f /usr/local/lib/dnsspoof.hosts & > /var/log/dnsspoof the file is created but nothing is logged to it.. |
|
|||
Split from http://www.daemonforums.org/showthread.php?t=4193
Reference: The dnsspoof program was proposed in http://www.daemonforums.org/showthre...4193#post29392 Deserves it's own thread
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Quote:
Code:
/usr/local/sbin/dnsspoof -i em1 -f /usr/local/lib/dnsspoof.hosts > /var/log/dnsspoof &
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
ok so i did this and it used to work. however currently its printing to the console.
secondly I want to start it at boot time so I added this to /etc/rc.local: if [ -x /usr/local/sbin/dnsspoof ]; then echo -n ' dnsspoof -i rl0 -f /usr/local/lib/dnsspoof.hosts > /var/log dnsspoof.log &'; /usr/local/sbin/dnsspoof fi this starts dnsspoof @ boottime but it is not backgrounded; in other words, the boot stops untill i press ctrl+c to break dnsspoof. any tips? Last edited by joostvgh; 18th January 2010 at 11:52 PM. |
|
|||
You are only echo'ing to standard output' dnsspoof -i rl0 -f /usr/local/lib/dnsspoof.hosts > /var/log dnsspoof.log &' and not running it.
The ; usr/local/sbin/dnsspoof part makes it run without logging.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
that was retarded thx!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sshd logging - can we get the ssh command? | Mantazz | FreeBSD Security | 17 | 23rd May 2009 08:34 AM |
pflog not logging. | bsdnewbie999 | OpenBSD General | 9 | 13th March 2009 11:19 PM |
Suggestions for Web Traffic Logging? | Bruco | FreeBSD Ports and Packages | 16 | 18th September 2008 10:54 PM |
Network + aMule Logging Problems | disappearedng | FreeBSD General | 0 | 28th August 2008 09:22 PM |
spamd logging question | roundkat | OpenBSD General | 10 | 11th June 2008 01:27 PM |