FreeBSD Socks5 with-syslog-facility option

  • Alkatr0z
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 1883
  • Loc: Adelaide, Australia
  • Status: Offline

Post August 1st, 2008, 7:58 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 1st, 2008, 7:58 am

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post August 1st, 2008, 4:31 pm

did you man syslog-facility?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Alkatr0z
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 1883
  • Loc: Adelaide, Australia
  • Status: Offline

Post August 1st, 2008, 5:53 pm

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
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 1883
  • Loc: Adelaide, Australia
  • Status: Offline

Post August 1st, 2008, 6:04 pm

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
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 1883
  • Loc: Adelaide, Australia
  • Status: Offline

Post August 1st, 2008, 6:18 pm

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
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post August 1st, 2008, 7:15 pm

any time ^_^
lol no idea what i did, but you're very welcome :]
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Alkatr0z
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 1883
  • Loc: Adelaide, Australia
  • Status: Offline

Post August 1st, 2008, 7:22 pm

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 138 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.