Home > English, Tech Crunch > HOWTO Activate NAT on Debian

HOWTO Activate NAT on Debian

This article is incomplete and was first written in September 2006
for the BeezNest technical website (http://glasnost.beeznest.org/articles/343).

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: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: