<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ModernAdmin &#187; Networking</title>
	<atom:link href="http://modernadmin.com/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://modernadmin.com</link>
	<description>Everyday admin tasks made easy</description>
	<lastBuildDate>Sat, 26 Sep 2009 18:12:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>**HOW-TO** Half-Bridge for Public IP on firewall/router device behind Modem/Router with Netgear DG834GT</title>
		<link>http://modernadmin.com/2009/06/12/how-to-half-bridge-for-public-ip-on-firewallrouter-device-behind-modemrouter-with-netgear-dg834gt/</link>
		<comments>http://modernadmin.com/2009/06/12/how-to-half-bridge-for-public-ip-on-firewallrouter-device-behind-modemrouter-with-netgear-dg834gt/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 09:46:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ADSL]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://modernadmin.com/?p=58</guid>
		<description><![CDATA[




Want to use your own router/firewall device on an ADSL service with just 1 public IP? Can&#8217;t do this because you are forced to use PPPoA?
Here is the solution to this problem for Netgear DG834GT users though it should work fine with mostly any DG834 based router.
You can download our pre-made image here.
The credit for [...]]]></description>
			<content:encoded><![CDATA[<!-- Easy AdSense V2.50 -->
<!-- Post[count: 3] -->
<div style="text-align:center;margin:12px;" ><script type="text/javascript"><!--
google_ad_client = "pub-0391944147153067";
/* 468x60, created 10/03/09 */
google_ad_slot = "7935435465";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>Want to use your own router/firewall device on an ADSL service with just 1 public IP? Can&#8217;t do this because you are forced to use PPPoA?</p>
<p>Here is the solution to this problem for Netgear DG834GT users though it should work fine with mostly any DG834 based router.</p>
<p>You can download our pre-made image <a href="http://modernadmin.com/downloads/firmware/netgear/DG834GT/DG834GT_V1.02.16_DGTeam_0921-modernadmin.img">here</a>.</p>
<p>The credit for this cannot go entirely to myself &#8211; it is compiled from various sources and is based on the half-bridge script from RouterTech firmware. Thanks to both DGTeam and RouterTech for the nice firmwares they release.</p>
<p>As always, if you can add to or improve on this your comments are welcome!</p>
<p>Note: We have mirrored the sources in our downloads section for convenience but please download the latest copy from DGTeam!</p>
<p>First, download and untar DGTeam firmware:</p>
<blockquote><p>wget http://modernadmin.com/downloads/firmware/netgear/DG834GT/DG834GT_V1.02.16_DGTeam_0848_sources.tar.bz2<br />
tar xjf DG834GT_V1.02.16_DGTeam_0848_sources.tar.bz2<br />
cd DG834GT_V1.02.16_DGTeam_0848_sources<br />
tar xjf target_dgteam.tar.bz2</p></blockquote>
<p>Add our half-bridge script:</p>
<blockquote><p>mkdir target_dgteam/usr/etc/ppp</p>
<p>cat &lt;&lt;EOF &gt; target_dgteam/usr/etc/ppp/ip-up<br />
#!/bin/sh<br />
/bin/cp /proc/uptime /tmp/wan_uptime<br />
/usr/sbin/rc service restart<br />
#/bin/cp /proc/uptime /tmp/wan_uptime<br />
/bin/cp /usr/etc/ppp/ip-down /etc/ppp/<br />
/bin/echo g5on &gt; /proc/led<br />
/usr/sbin/hbStart.sh<br />
EOF</p>
<p>cat &lt;&lt;EOF &gt; target_dgteam/usr/etc/ppp/ip-up-demand<br />
#!/bin/sh<br />
/bin/cp /proc/uptime /tmp/wan_uptime<br />
/usr/sbin/rc service restart<br />
/bin/cp /usr/etc/ppp/ip-down /etc/ppp/<br />
/bin/echo &#8220;/usr/sbin/atm_monitor&#8221; &gt;&gt;/etc/ppp/ip-down<br />
/bin/echo g5on &gt; /proc/led<br />
/usr/sbin/hbStart.sh<br />
EOF</p></blockquote>
<p>add to target_dgteam/usr/sbin/hbStart.sh:</p>
<blockquote><p>cat &lt;&lt;EOF &gt; target_dgteam/usr/sbin/hbStart.sh<br />
#!/bin/sh</p>
<p>IFC=/sbin/ifconfig<br />
IPT=/usr/sbin/iptables<br />
RTE=/sbin/route</p>
<p>WIF=ppp0<br />
LIF=br0</p>
<p>iKx=$($IFC $WIF|grep inet)<br />
iKMK=${iKx#*k:}<br />
iKx=${iKx#*r:};WIP=${iKx%% *}<br />
iKx=${iKx#*P:};GW=${iKx%% *}</p>
<p>$IFC ${WIF:=ppp0} 0.0.0.0<br />
$RTE add -host $WIP dev $LIF<br />
$RTE add -host $GW dev $WIF<br />
$RTE add default gw $GW</p>
<p>/bin/echo &#8220;1&#8243; &gt;/proc/sys/net/ipv4/conf/$WIF/proxy_arp<br />
/bin/echo &#8220;1&#8243; &gt;/proc/sys/net/ipv4/conf/$LIF/proxy_arp<br />
EOF</p></blockquote>
<p>Set permissions:</p>
<blockquote><p>chmod +x target_dgteam/usr/sbin/hbStart.sh</p></blockquote>
<p>Lastly, Pack firmware image:</p>
<blockquote><p>./create_target.sh 1.02.16 GT<br />
./build_dgteam.sh 1.02.16 GT</p></blockquote>
<p>You should now find the .img file in the current folder like follows: DG834GT_V1.02.16_DGTeam_0921.img</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://modernadmin.com/2009/06/12/how-to-half-bridge-for-public-ip-on-firewallrouter-device-behind-modemrouter-with-netgear-dg834gt/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
