LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

nftables series - part 1 - baby steps

Posted 12-24-2014 at 07:53 AM by serafean
Updated 12-24-2014 at 07:55 AM by serafean

Nftables introduction

I assume a kernel >=3.18 and nft >= 0.4.

I decided to try out nftables, the would-be iptables successor on my home router/server PC.
As a basic guide I used this guide and the pretty good basic documentation on wiki.nftables.org.

Nft comes with a completely empty ruleset. Meaning no predefined tables, chains or rules.
You as a user create tables, populate those with chains (which hook into kernel netfilter hooks)...
Member
Posted in nftables
Views 2574 Comments 0 serafean is offline
Old

Slow DNS lookups

Posted 11-16-2012 at 05:11 PM by serafean

Since quite some time I had been experiencing slow DNS lookups on some linux boxes. Today I finally got around to fixing it.
Symptoms : KDE fails to load google/wikipedia sometimes. firefox too, less often.

ping was the main tool in this case.
What I found was that
Code:
ping www.google.com
got an IP to ping very fast, however before anything appeared onscreen, it took up to 5 seconds. Pinging the IP address however returned immediately.
On a hunch, I tried disabling...
Member
Posted in Random fixes
Views 1140 Comments 0 serafean is offline
Old

Lirc & xbmc time

Posted 09-21-2011 at 12:34 PM by serafean
Tags htpc, imon, lirc, xbmc

The Enna media center project stagnating, and the KDE Plasma Media center being developed in GSoC bursts, I got back to using xbmc. xbmc supports lirc, and having an imon panel with a remote, I finally decided to set it up.

The key here was understanding that the iMon device is now supported in the kernel using the new infrastructure. What this did is make the iMon device send normal input events. (I think this is mostly because it does the IR decoding directly in hardware). What...
Member
Views 1611 Comments 0 serafean is offline
Old

A little ALSA magic

Posted 03-11-2011 at 06:27 PM by serafean

Wanted configuration :
  • user kde can play sound using the Optical output
  • user enna can play via analog and optical simultaneously (optionaly HDMI)
  • Both users can play via Optical at the same time
  • Both have access to an upmixing device that encodes the stream into A52 and sends via the Optical output

first we name the outputs (link numbers to names, this will be different on your hardware) and add a dmix device for the digital output to the global asoundrc:
Code:
pcm.analog{
...
Member
Views 2399 Comments 0 serafean is offline
Old

My fight against ads.

Posted 12-13-2010 at 10:22 AM by serafean
Updated 12-13-2010 at 03:57 PM by serafean

Running openwrt on my router and hating advertisements, I decided to look into dnsmasq's possibilities. And indeed it supports hard binding of addresses to Domain names.

adding
Code:
conf-dir=/etc/dnsmasq.d/
to dnsmasq.conf, and putting a file generated by http://pgl.yoyo.org/as/ in there (as ablock.conf) quite securely blocks all ads on my network (and from basic testing, it seems that even ads at the beginning of flash videos are filtered out. YAY!).

I know using /etc/hosts...
Member
Posted in Uncategorized
Views 1227 Comments 0 serafean is offline

  



All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration