https://unix.stackexchange.com/questions/23579/how-to-apply-updates-on-openbsd-netbsd-and-freebsd/103661#103661
http://undeadly.org/cgi?action=article&sid=20130509120042
https://stable.mtier.org/
Archive for June, 2018
OpenBSD -stable upgrade
Tuesday, June 26th, 2018pptp client linux: quick and dirty
Tuesday, June 26th, 2018root@lexus:~# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
user_name PPTP PpTpPaSs 85.233.x.x
Create connection config file /etc/ppp/peers/SLC
pty "pptp 85.233.x.x --nolaunchpppd"
name user_name
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
Create a script to auto-add route to the target host, to which you want to connect via VPN (172.24.10.13) /etc/ppp/ip-up.d/routes
#!/bin/sh
/bin/ip route add 172.24.10.13 dev ppp0
Fire!
pppd call SLC
Disconnect:
killall pppd
rsyslog: do not collect logs from some application
Tuesday, June 26th, 2018If there’s no settings in the application itself, you can configure rsyslog not to write apps logs.
CentOS 6.6, rsyslog 5.8.10-10.el6_6:
Asterisk is configured to write logs to remote syslog server (syslog02.core) but still writes not only there but also locally.
To prevent this:
create ‘/etc/rsyslog.d/10-asterisk.conf’ with lines
:syslogtag, contains, "asterisk" @syslog02.core
& stop
Debian 9.4 Stretch, rsyslog 8.24.0-1:
Asterisk is nt configured to write to remote syslog, but also writes everything to local rsyslog.
Create ‘/etc/rsyslog.d/10-asterisk.conf’:
if $programname == "asterisk" then {
stop
}
https://www.rsyslog.com/doc/v8-stable/configuration/filters.html
https://www.rsyslog.com/discarding-unwanted-messages/