02.08.2013 Views

Linux IP Masquerade HOWTO - The Linux Documentation Project

Linux IP Masquerade HOWTO - The Linux Documentation Project

Linux IP Masquerade HOWTO - The Linux Documentation Project

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Linux</strong> <strong>IP</strong> <strong>Masquerade</strong> <strong>HOWTO</strong><br />

#Load the main body of the <strong>IP</strong>TABLES module − "iptable"<br />

# − Loaded automatically when the "iptables" command is invoked<br />

#<br />

# − Loaded manually to clean up kernel auto−loading timing issues<br />

#<br />

echo −en "ip_tables, "<br />

$MODPROBE ip_tables<br />

#Load the <strong>IP</strong>TABLES filtering module − "iptable_filter"<br />

# − Loaded automatically when filter policies are activated<br />

#Load the stateful connection tracking framework − "ip_conntrack"<br />

#<br />

# <strong>The</strong> conntrack module in itself does nothing without other specific<br />

# conntrack modules being loaded afterwards such as the "ip_conntrack_ftp"<br />

# module<br />

#<br />

# − This module is loaded automatically when MASQ functionality is<br />

# enabled<br />

#<br />

# − Loaded manually to clean up kernel auto−loading timing issues<br />

#<br />

echo −en "ip_conntrack, "<br />

$MODPROBE ip_conntrack<br />

#Load the FTP tracking mechanism for full FTP tracking<br />

#<br />

# Enabled by default −− insert a "#" on the next line to deactivate<br />

#<br />

echo −en "ip_conntrack_ftp, "<br />

$MODPROBE ip_conntrack_ftp<br />

#Load the IRC tracking mechanism for full IRC tracking<br />

#<br />

# Enabled by default −− insert a "#" on the next line to deactivate<br />

#<br />

echo −en "ip_conntrack_irc, "<br />

$MODPROBE ip_conntrack_irc<br />

#Load the general <strong>IP</strong>TABLES NAT code − "iptable_nat"<br />

# − Loaded automatically when MASQ functionality is turned on<br />

#<br />

# − Loaded manually to clean up kernel auto−loading timing issues<br />

#<br />

echo −en "iptable_nat, "<br />

$MODPROBE iptable_nat<br />

#Loads the FTP NAT functionality into the core <strong>IP</strong>TABLES code<br />

# Required to support non−PASV FTP.<br />

#<br />

# Enabled by default −− insert a "#" on the next line to deactivate<br />

#<br />

echo −en "ip_nat_ftp, "<br />

$MODPROBE ip_nat_ftp<br />

Chapter 3. Setting Up <strong>IP</strong> <strong>Masquerade</strong> 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!