Licence
Creative Commons License

This work by Stephane KATTOOR is licensed under a Creative Commons Attribution 3.0 Unported License.
Feeling like tipping ?
If you find this blog useful, you might consider sending a few bitcoins to support it : 1BTtsC3beGJ6ysd8DhrXjdo6jVw5WD9mvY
RSS
 
RSS Feed
Follow me !
Tech@Sakana on Facebook
Search this site

Newsletter

Get latest posts by email (No spam, only posts):

Enter your email address:

Delivered by FeedBurner

Categories
Monthly archives
October 2006
M T W T F S S
« Sep   Jan »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Month: October 2006
Debian network configuration - October 15, 2006 by Stephane Kattoor

Network configuration, on a Debian System, is stored in /etc/network.

In this directory you’ll find :

  • interfaces : this file describe your NICs according to interfaces(5) (check this man page to see how to setup the interface, fixed IP or DHCP, gateway, netmask, and so on)
  • if-pre-up.d : directory with scripts which will get run before bringing up an interface
  • if-up.d : directory with scripts which will get run right after bringing up an interface
  • if-down.d : directory with scripts which will get run before bringing down an interface
  • if-post-down.d : directory with scripts which will get run after bringing down an interface
  • run/ifstate : the current state of the NICs

You’ll mostly want to tweak with the interfaces file, and probably put some scripts in the various hook directories. For example the /etc/network/if-pre-up.d is great to put the script which will setup your firewall (with iptables commands and ruleset).

Be sure to read the Debian Reference, which covers this and much more in great details.

Keeping track of changes with cfengine and SubVersioN - October 13, 2006 by Stephane Kattoor

Cfengine is a tool which purpose is to describe what is a healthy system and how to bring it back to normal when something fails.

I won’t go into an explanation about how cfengine works, because the project webpage already has a neat tutorial and complete reference. Instead of that, I’ll explain how I used cfengine to build a fool proof Linux firewall.

read this entry »

Who am I ?
Ads