FreeBSD Socks5 with-syslog-facility option

  • Alkatr0z
  • Mastermind
  • Mastermind
  • Alkatr0z
  • Posts: 1883
  • Loc: Adelaide, Australia

Post 3+ Months Ago

Hiya,

I've installed a test server for myself and have already successfully installed socks5 through the ports collection onto it. Anyway after looking at the /var/log/messages for awhile and seeing how full it was getting with my connecting everything through it I started looking at whether I could limit or stop the logging of it completely.

A look at the Makefile showed me with --with-syslog-facility option which seemed to be ideal so I copied the files to another directory and edited the Makefile manually to set allow me to set --with-syslog-facility to whatever I wished. 'NO' is not a valid response for it though and so I'm wondering if anyone here knows what I can set it to to limit/stop logging?
The extra configuration option is originally set to LOG_AUTH but is commented out.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

did you man syslog-facility?
  • Alkatr0z
  • Mastermind
  • Mastermind
  • Alkatr0z
  • Posts: 1883
  • Loc: Adelaide, Australia

Post 3+ Months Ago

Hmm I get "No manual entry for syslog-facility" but I notice with a google that at least on Linux there is a syslog-facility. It doesn't appear to exist on FreeBSD though as just doing 'syslog-facility' at the prompt returns Command not found.
In the ports collection there are two ports with similar names:
syslog-ng and syslog-ng2 but I see they are syslogd replacements
  • Alkatr0z
  • Mastermind
  • Mastermind
  • Alkatr0z
  • Posts: 1883
  • Loc: Adelaide, Australia

Post 3+ Months Ago

Looking at syslog.conf, if I add 'socks5.* /dev/null' And then set that as my syslog-facility in the Makefile that should presumably redirect the log to nothing..
or
Quote:
!socks5
*.* /dev/null


Thank you AnarchY SI, I feel I'm on the right track now :)
  • Alkatr0z
  • Mastermind
  • Mastermind
  • Alkatr0z
  • Posts: 1883
  • Loc: Adelaide, Australia

Post 3+ Months Ago

A final addition.
I used
Quote:
!socks5
*.* /dev/null

which worked perfectly so changed it to log /var/log/socks5 instead since I figure it could be handy to have.
Thanks for your help AnarchY SI :)
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

any time ^_^
lol no idea what i did, but you're very welcome :]
  • Alkatr0z
  • Mastermind
  • Mastermind
  • Alkatr0z
  • Posts: 1883
  • Loc: Adelaide, Australia

Post 3+ Months Ago

hehe well a further look reveals it didn't actually work out how I thought it had, it would still log to /var/log/message as well as the /var/log/socks5. I tried modifying it to
Quote:
!!socks5
*.* /var/log/socks5
!*

but that didn't work out either.

So deinstalled socks5 and going to edit the Makefile with a custom syslog-facility and use that in the syslog.conf file instead.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.