Archive for September, 2006

HOWTO Activate NAT on Debian

September 1, 2006 Leave a comment
This article is incomplete and was first written in September 2006
for the BeezNest technical website (

An example on how to activate NAT on a Debian box (on Etch and up).

First, activate IP forwarding in /etc/sysctl.conf.

Then, you need to activate NAT itself in /etc/network/interfaces:

auto eth0
iface eth0 inet static
        up iptables -t nat -A POSTROUTING -o $IFACE -j MASQUERADE

There you are.

Categories: English, Tech Crunch Tags: ,
%d bloggers like this: