jselbie / stunserver

Version 1.2. This is the source code to STUNTMAN - an open source STUN server and client code by john selbie. Compliant with the latest RFCs including 5389, 5769, and 5780. Also includes backwards compatibility for RFC 3489. Compiles on Linux, MacOS, BSD, Solaris, and Win32 with Cygwin. Windows binaries avaialble from www.stunprotocol.org.
http://www.stunprotocol.org
Apache License 2.0
1.42k stars 347 forks source link

Logging when server is started #8

Closed jwoertink closed 9 years ago

jwoertink commented 9 years ago

It would be nice if the server had some sort of logging when it's started. That way I know it actually did start and it's not in some loop or waiting on some other process. Would also be cool if there was actual logs that could be watched for traffic.

jselbie commented 9 years ago

Have you tried some of the different verbosity levels?

For example:

~$   stunserver --verbosity 1

I believe --verbosity 1 just logs startup and shutdown messages. --verbosity 2 will log every binding request and response And --verbosity 3 will log even more stuff

Does that suffice?

Another trick I do occasionally is to just monitor the service with tcpdump. That is:

~$   sudo tcpdump -n 'port 3478 or 3479'
jwoertink commented 9 years ago

Ah, ok. I must have missed that in the --help docs. It's hard to read those things with how the font and single color is. I'll try that out, and I'm sure that would help. Thanks