Centroid.EU Blog
(this blog is mostly encrypted - adults only)
|
Previous Page
November 4th, 2013
We had this problem in that we didn't know what facility a certain program was
syslogging to, so we straced it (in linux), check a sample here:
root@raspberrypi:~# tail /tmp/blah.out
read(1, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 118
_llseek(1, -6, [112], SEEK_CUR) = 0
read(1, "\nUTC0\n", 4096) = 6
close(1) = 0
munmap(0xb6caf000, 4096) = 0
socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 1
connect(1, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
send(1, "<13>Nov 3 00:00:14 pi: hi", 26, MSG_NOSIGNAL) = 26
close(1) = 0
exit_group(0) = ?
That was produced with the input "strace -o blah.out logger hi". So syslog
logs a number inside <> at the beginning to indicate what facility and priority
it is. It's sorta a code. So I wrote the following
BSD program
to convert the number into their respective fac and pri. Enjoy!
root@raspberrypi:/tmp# ./facility 13
facility: (8)user, priority: (5)notice
For administrivia, how would you speed up this program? Take a look at
/usr/include/syslog.h and think binary search.
0 comments
Jupiter (computer) now on Radeon
November 3rd, 2013
After 3.5 years of Nvidia, the box is now running a low to medium end
Sapphire Radeon HD5450 card. I'm saving a ton of electricity with this
card too! And OpenBSD is fast again! Wonders!
0 comments
Fast Hellos are on
November 1st, 2013
Yesterday I turned on fast hellos on my OSPF setup. This is what venus'
ospfd.conf file looks like now:
... some cut ...
area 0.0.0.0 {
interface gif0 {
router-priority 1
metric 1
router-dead-time 40
auth-type simple
auth-key $password
router-dead-time minimal
fast-hello-interval msec 333
}
interface gif1 {
router-priority 5
metric 10
router-dead-time 40
auth-type simple
auth-key $password
router-dead-time minimal
fast-hello-interval msec 333
}
}
Notice gif0 has a lower metric than gif1, fast-hello-interval time is 333 msecs.Which is also default so it needn't be there. The "router-dead-time minimal"
causes fast hellos to go on. So when I watch the packets on gif1 which isn't
used for traffic I see:
# netstat -nw 1 -I gif1
gif1 in gif1 out total in total out
packets errs packets errs colls packets errs packets errs colls
200827 0 209273 0 0 75406364 0 80678099 0 0
3 0 3 0 0 29 0 29 0 0
3 0 3 0 0 22 0 22 0 0
...
exactly 3 packets per second in either direction. I suspect now that when
my LTE fritz!box crashes again that the failover to the gif1 link will be
next to instant.
0 comments
OpenBSD 5.4 released
November 1st, 2013
You can now download OpenBSD 5.4 from your favourite OpenBSD FTP mirror.
I usually use ftp.eu.openbsd.org in europe but if I was in north america
I'd use ftp.openbsd.org. Congratulations to the OpenBSD team for yet another
great release!
0 comments
Centroid blog now available in CVS
November 1st, 2013
I have decided to open source the PHP behind this blog. It's all about
letting go and showing the innards isn't it? :-)
Anyhow here
are the sources. This PHP source code has never seen anyone's eyes but mine
before this. Perhaps it's not great but it makes this blog the way it is.
0 comments
A tiny blip on the W commit log screen
October 30th, 2013
Wildcarddnsd didn't get much commit time this year. But this time there
was something. I committed support for Raspberry Pi running raspbian.
That's gotta count for something, however small. Have fun with it!
0 comments
All computers upgraded to OpenBSD 5.4
October 29th, 2013
It's such a joy to upgrade OpenBSD. /bsd.rd and sysmerge followed by a
pkg_add -u. I have upgraded jupiter, luna, uranus and venus all to 5.4.
And there is no errata54 yet. Perfect! Fallout hasn't been noticed
except that the nvidia driver (nv) for OpenBSD 5.4 sucks. I'm considering
buying a new AMD Radeon graphics card in the 60-80 euros range. Since my
nvidia card is fairly old in model number a new card in that price range
will probably be compatible in performance like before.
0 comments
My OSPF Network
October 27th, 2013
I have finally set everything up like I want it to. And so far I have not
created a packetstorm, but who knows what's next. So here is my OSPF Network
the best I can explain it:
+----------------+
Luna & | Fritz!Box LTE |======= LTE Network
Gaia Jupiter +----------------+
|| || ||
|| || ||
|| || }-------- Wifi -------{ ||
|| || }-------- IPSEC ------{ ||
|| || ||
+---------------+ gif0 area 0.0.0.0 +--------------+
| |======================| | +--------+
| Uranus | | Venus |=====| phone 2|
| | gif1 area 0.0.0.1 | | +--------+
| |======================| |
+---------------+ +--------------+
|| || ||
|| || ||
|| || || Static default route
|| || ||
|| || ||
Phone #1 Open +----------------+
|Fritz!Box DSL |======= DSL Network
+----------------+
Venus' ospfd.conf
password="secret"
router-id 0.0.0.0
redistribute static
redistribute 0.0.0.0/0
area 0.0.0.0 {
interface gif0 {
router-priority 1
auth-type simple
auth-key $password
}
}
area 0.0.0.1 {
interface gif1 {
router-priority 5
auth-type simple
auth-key $password
}
}
Uranus' ospfd.conf
password="secret"
router-id 0.0.0.1
fib-update yes
redistribute 192.168.32.0/24
redistribute 192.168.33.0/24
redistribute 192.168.34.0/24
redistribute 192.168.35.0/24
redistribute 192.168.36.0/24
redistribute 192.168.1.0/24
redistribute 192.168.2.0/24
area 0.0.0.0 {
interface gif0 {
router-priority 10
auth-type simple
auth-key $password
}
}
area 0.0.0.1 {
interface gif1 {
router-priority 5
auth-type simple
auth-key $password
}
}
If there is any hints on how to improve on this it'd be appreciated.
0 comments
OpenBSD 5.4 Arrived!
October 26th, 2013
OpenBSD 5.4 arrived. Thank you OpenBSD Europe! And thank you OpenBSD!
0 comments
Next Page
|
Search
RSS Feed
Click here for RSS
On this day in
Other links
Have feedback?
By clicking on the header of an article you will be
served a cookie. If you do not agree to this do not
click on the header. Thanks!
Using a text-based webbrowser?
... such as lynx? Welcome back it's working again for the time being.
Older Blog Entries
March, 2023
February, 2023
January, 2023
December, 2022
November, 2022
October, 2022
September, 2022
August, 2022
July, 2022
June, 2022
May, 2022
April, 2022
March, 2022
February, 2022
January, 2022
December, 2021
November, 2021
October, 2021
September, 2021
March, 2021
February, 2021
January, 2021
December, 2020
November, 2020
October, 2020
September, 2020
August, 2020
July, 2020
June, 2020
May, 2020
April, 2020
March, 2020
February, 2020
January, 2020
December, 2019
November, 2019
October, 2019
September, 2019
August, 2019
July, 2019
June, 2019
May, 2019
April, 2019
March, 2019
February, 2019
January, 2019
December, 2018
November, 2018
October, 2018
September, 2018
August, 2018
July, 2018
June, 2018
May, 2018
April, 2018
March, 2018
February, 2018
January, 2018
December, 2017
November, 2017
October, 2017
September, 2017
August, 2017
July, 2017
June, 2017
May, 2017
April, 2017
March, 2017
February, 2017
January, 2017
December, 2016
November, 2016
October, 2016
September, 2016
August, 2016
July, 2016
June, 2016
May, 2016
April, 2016
March, 2016
February, 2016
January, 2016
December, 2015
November, 2015
October, 2015
September, 2015
August, 2015
July, 2015
June, 2015
May, 2015
April, 2015
March, 2015
February, 2015
January, 2015
December, 2014
November, 2014
October, 2014
September, 2014
August, 2014
July, 2014
June, 2014
May, 2014
April, 2014
March, 2014
February, 2014
January, 2014
December, 2013
November, 2013
October, 2013
September, 2013
August, 2013
July, 2013
June, 2013
May, 2013
April, 2013
March, 2013
February, 2013
January, 2013
December, 2012
November, 2012
October, 2012
September, 2012
August, 2012
July, 2012
June, 2012
May, 2012
April, 2012
March, 2012
February, 2012
January, 2012
December, 2011
November, 2011
October, 2011
September, 2011
August, 2011
July, 2011
June, 2011
May, 2011
April, 2011
March, 2011
February, 2011
January, 2011
December, 2010
November, 2010
October, 2010
September, 2010
August, 2010
July, 2010
June, 2010
May, 2010
April, 2010
March, 2010
February, 2010
January, 2010
December, 2009
November, 2009
October, 2009
September, 2009
August, 2009
July, 2009
June, 2009
May, 2009
Powered by BCHS
|