<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To Use Multiple Red IPs With Smoothwall 3.0 Express</title>
	<atom:link href="http://davmp.kimanddave.com/2008/02/11/how-to-use-multiple-red-ips-with-smoothwall-30-express/feed/" rel="self" type="application/rss+xml" />
	<link>http://davmp.kimanddave.com/2008/02/11/how-to-use-multiple-red-ips-with-smoothwall-30-express/</link>
	<description>My mental mumblings on a chaotic timeline</description>
	<lastBuildDate>Sat, 24 Jul 2010 10:51:34 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matthew Smart</title>
		<link>http://davmp.kimanddave.com/2008/02/11/how-to-use-multiple-red-ips-with-smoothwall-30-express/comment-page-1/#comment-104</link>
		<dc:creator>Matthew Smart</dc:creator>
		<pubDate>Fri, 26 Sep 2008 18:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://davmp.kimanddave.com/2008/02/11/how-to-use-multiple-red-ips-with-smoothwall-30-express/#comment-104</guid>
		<description>Great post, but I am having a little difficulty with the script and the latest version of smoothwall express 3. At first the rules were not going in because the index (24) was too large. After reading your post, I set it to 21 so that the rules added preceded the log and reject rules. Now the rules input at the right place without error, I can ping the external ip, but all forwards time out without ever hitting the internal server.  The other external ip address still works fine and forward appropriately.  Here is the output of your script. I can provide the full iptables -L if needed.  Thanks for the help.

Adding external ip forwarding from XXX.XXX.XXX.XXX (on eth1:1) to 192.168.0.109 (on eth0) test eth1
  ifconfig eth1:1 XXX.XXX.XXX.XXX broadcast XXX.XXX.XXX.103 netmask 255.255.255.248
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX --dport 80 -j DNAT --to 192.168.0.109
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 --dport 80 -o eth0 -j ACCEPT
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX --dport 443 -j DNAT --to 192.168.0.109
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 --dport 443 -o eth0 -j ACCEPT
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX --dport 21 -j DNAT --to 192.168.0.109
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 --dport 21 -o eth0 -j ACCEPT
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX --dport 22 -j DNAT --to 192.168.0.109
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 --dport 22 -o eth0 -j ACCEPT
    iptables -t nat -A portfw -p UDP -d XXX.XXX.XXX.XXX --dport 21 -j DNAT --to 192.168.0.109
    iptables -I FORWARD 21 -p UDP -i eth1 -d 192.168.0.109 --dport 21 -o eth0 -j ACCEPT
  iptables -t nat -I POSTROUTING -s 192.168.0.109 -o eth1 -j SNAT --to-source XXX.XXX.XXX.XXX</description>
		<content:encoded><![CDATA[<p>Great post, but I am having a little difficulty with the script and the latest version of smoothwall express 3. At first the rules were not going in because the index (24) was too large. After reading your post, I set it to 21 so that the rules added preceded the log and reject rules. Now the rules input at the right place without error, I can ping the external ip, but all forwards time out without ever hitting the internal server.  The other external ip address still works fine and forward appropriately.  Here is the output of your script. I can provide the full iptables -L if needed.  Thanks for the help.</p>
<p>Adding external ip forwarding from XXX.XXX.XXX.XXX (on eth1:1) to 192.168.0.109 (on eth0) test eth1<br />
  ifconfig eth1:1 XXX.XXX.XXX.XXX broadcast XXX.XXX.XXX.103 netmask 255.255.255.248<br />
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX &#8211;dport 80 -j DNAT &#8211;to 192.168.0.109<br />
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 &#8211;dport 80 -o eth0 -j ACCEPT<br />
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX &#8211;dport 443 -j DNAT &#8211;to 192.168.0.109<br />
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 &#8211;dport 443 -o eth0 -j ACCEPT<br />
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX &#8211;dport 21 -j DNAT &#8211;to 192.168.0.109<br />
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 &#8211;dport 21 -o eth0 -j ACCEPT<br />
    iptables -t nat -A portfw -p TCP -d XXX.XXX.XXX.XXX &#8211;dport 22 -j DNAT &#8211;to 192.168.0.109<br />
    iptables -I FORWARD 21 -p TCP -i eth1 -d 192.168.0.109 &#8211;dport 22 -o eth0 -j ACCEPT<br />
    iptables -t nat -A portfw -p UDP -d XXX.XXX.XXX.XXX &#8211;dport 21 -j DNAT &#8211;to 192.168.0.109<br />
    iptables -I FORWARD 21 -p UDP -i eth1 -d 192.168.0.109 &#8211;dport 21 -o eth0 -j ACCEPT<br />
  iptables -t nat -I POSTROUTING -s 192.168.0.109 -o eth1 -j SNAT &#8211;to-source XXX.XXX.XXX.XXX</p>
]]></content:encoded>
	</item>
</channel>
</rss>
