Simple Configuration of iptables on Debian
I do not use any GUI application to configure the network interfaces on my Linux machines. Instead, I simply edit the configuration files.The simplest way, among many solutions found on the web, was to write a script that runs
iptables with various command line switches.So I wrote a simple script,
/etc/network/if-up.d/iptables, as
follows. Whenever a network interface is brought up, the scripts in
/etc/network/if-up.d are executed. If the file does not exist,
you can create one.#!/bin/sh # Flushing all rules iptables -F iptables -X # Setting default filter policy iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT # Block the use of http://www-proxy:3128 iptables -A OUTPUT -p tcp --dport 3128 -j DROP
Please, refer to the man page if you desire to know what each
iptables command does.Now, all you need to do is run
chmod to set the right
permission.chmod a+x /etc/network/if-up.d/iptables
21 Oct 2009 | Permalink | debian, iptables, network.
NVIDIA Research Summit
- September 30 - October 2, 2009 - The Fairmont Hotel, San Jose, California
For more information, visit http://www.nvidia.com/researchsummit
02 Aug 2009 | Permalink | cuda, gpgpu.
The Slides from Workshop on High Performance GPU Computing with NVIDIA
CUDA The slides from the workshop are available at:http://www.cse.unsw.edu.au/~pls/cuda-workshop09.
Thanks to Mark Harris, Manuel Chakravarty and Dragan Dimitrovici for the great talks, and NVIDIA and Xenon Systems for sponsoring the workshop.
21 Apr 2009 | Permalink | cuda, gpgpu, workshop.
Workshop on High Performance GPU Computing with NVIDIA CUDA
It is now open for registration.Level 1 Seminar Room, K17, CSE, UNSW, Sydney
April 17, 2009
http://www.cse.unsw.edu.au/~pls/cuda-workshop09.
02 Apr 2009 | Permalink | cuda, gpgpu, workshop.
xmobar battery plugin using sysfs, not procfs
As the lastest kernel image (2.6.29-1) on Debian Sid did not have CONFIG_ACPI_PROCFS_POWER enabled by default, the battery plugin of xmobar, a status bar application for xmonad, stopped working.I could easily think of two options: (1) recompile the kernel image with CONFIG_ACPI_PROCFS_POWER enabled, or (2) write a xmobar plugin that does not depend on procfs. After giving a bit of thought to it, I decided to write a xmobar plugin that does not depend on procfs. It seemed that procfs was deprecated and, in a long run, sysfs would be preferred over procfs.
The plugin, SysfsBatt.hs, has been written, and Monitors.hs has been modified.
In order to recompile xmobar with the above files, you could simply follow these steps, assuming that you are in the xmobar src directory:
- $ cd Plugins/Monitors
- $ wget http://www.cse.unsw.edu.au/~seanl/misc/SysfsBatt.hs
- $ cd ..
- $ wget http://www.cse.unsw.edu.au/~seanl/misc/Monitors.hs
- $ runhaskell Setup.lhs configure
- $ runhaskell Setup.lhs build
- $ runhaskell Setup.lhs install
29 Mar 2009 | Permalink | haskell, sysfs, xmobar, xmonad.
EPHAM 2009 program has been finalised
The program for EPHAM 2009 has been finalised and can be found at17 Mar 2009 | Permalink | gpgpu.
GPU Kernels as Data-Parallel Array Computations in Haskell
The final version of GPU Kernels as Data-Parallel Array Computations in Haskell has been submitted. Thanks to Manuel, Vinod and Gabi. It will be presented at EPHAM 2009.