Skip to content

Instantly share code, notes, and snippets.

@mattsn0w
mattsn0w / enable-NAT-on-ubuntu-with-ufw.md
Last active September 28, 2024 16:27 — forked from kimus/ufw.md
NAT with Ubuntu ufw firewall

UFW

This gist was originally found at https://gist.github.com/kimus/9315140 and modified for my use case.

Install UFW

sudo apt-get install ufw

Enable NAT

In the file /etc/default/ufw change the parameter DEFAULT_FORWARD_POLICY to enable forwarding policy required for NAT.

/**
* SyntaxHighlighter brush for Tcl
*
* more info:
* http://blog.henix.info/blog/tcl-syntaxhighlighter-brush.html
*
* @version 0.3
*
* @copyright
* Copyright (C) 2011-2012 henix.