On Fedora Core, the iptables rules are stored in /etc/sysconfig/iptables. To change the rules, the iptables(8) utility is used. When done, store the updated rules in /etc/sysconfig/iptables by running the following as root: # /sbin/iptables-save > /etc/sysconfig/iptables I’m sure I’ll need this again, and I’m sure I’ll have forgotten all of it by then.
I feel really dumb at the moment. While debugging, I frequently find myself in need of a “step over function call” functionality. It has always bothered me that the gdb command “step” steps into functions, while I wasn’t interested at all in what was happening inside the function. It turns out that gdb has the […]
I’m working on a project where one program loads an ELF file at runtime and then transfers control to that dynamically loaded file. The file will be loaded at an address obtained by malloc(3), so the address will be arbitrary (from a user perspective). Normally, if a crash occurs while a program is being run […]
Today I updated my router, a Soekris net4801 (I think), to OpenBSD 4.2. I know it’s dumb to upgrade to OpenBSD 4.2 about three weeks before OpenBSD 4.3 is officially released, but today I actually had time and the box was in desperate need of an update. Also, I have recently moved and the network […]