<?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/"
	xmlns:series="http://organizeseries.com/"
		>
<channel>
	<title>Comments on: How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch &#8212; page 4 &#8212; IPtables</title>
	<atom:link href="http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/</link>
	<description>Debian/Ubuntu Tips and Tricks</description>
	<lastBuildDate>Tue, 21 May 2013 04:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-29230</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Thu, 10 Jan 2013 07:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-29230</guid>
		<description><![CDATA[Hi Kevin,
please review page 2 of this how-to (basically, there were errors in both dhcp and dns files that prevented the settings to work.
in bind zone, NS should be using A and record.
The DNS issue prevents your client to get the right router ip.
If your client is a debian box, make sure you use:
send host-name &quot;&lt;myclientname&gt;&quot;
in /etc/dhcp/dhclient.conf]]></description>
		<content:encoded><![CDATA[<p>Hi Kevin,<br />
please review page 2 of this how-to (basically, there were errors in both dhcp and dns files that prevented the settings to work.</p>
<p>in bind zone, NS should be using A and record.</p>
<p>The DNS issue prevents your client to get the right router ip.</p>
<p>If your client is a debian box, make sure you use:<br />
send host-name &#8220;<myclientname>&#8221;<br />
in /etc/dhcp/dhclient.conf</myclientname></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-28322</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 09 Jan 2013 05:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-28322</guid>
		<description><![CDATA[Hi Chantra. I have configured my debian machine to be dns and dhcp as shown in the post. Here are some details:
Server Hostname: debtest2
eth0 = DHCP from external router; 192.168.1.x
eth1 = 192.168.2.1, netmask 255.255.255.0
For DNS configuration
------ named.conf.local
#allow dns updates from localhost with key &quot;rndc-key&quot;
include &quot;/etc/bind/rndc.key&quot;;
controls {
  inet 127.0.0.1 allow { localhost; } keys { &quot;rndc-key&quot;; };
};
#defines galaxy.local
zone &quot;galaxy.local&quot; {
  type master;
    file &quot;db.galaxy.local&quot;;
    allow-update { key &quot;rndc-key&quot;; };
};
#defines our local subnet 192.168.2.0/24
zone &quot;2.168.192.in-addr.arpa&quot; {
  type master;
  notify no;
  file &quot;db.2.168.192&quot;;
  allow-update { key &quot;rndc-key&quot;; };
};
------ db.galaxy.local file
$TTL 3D
@       IN      SOA     ns.galaxy.local. postmaster.galaxy.local. (
    201201081; serial, todays date + todays serial #
    8H              ; refresh, seconds
    2H              ; retry, seconds
    4W              ; expire, seconds
    1D )            ; minimum, seconds
;
    NS      ns              ; Inet Address of name server
    MX      10 mail         ; Primary Mail Exchanger
;
    A 192.168.2.1  ; IP address
;
router A   192.168.2.1
ns    CNAME router
dhcp  CNAME ns.galaxy.local.
*     A       192.168.2.1
------ db.2.168.192 file
$TTL 3D
@       IN      SOA     galaxy.local. postmaster.galaxy.local. (
  201201081 ; serial, todays date + todays serial #
  8H              ; refresh, seconds
  2H              ; retry, seconds
  4W              ; expire, seconds
  1D )            ; minimum, seconds
;
@       IN      NS      ns.galaxy.local.
@ IN  PTR galaxy.local.
1 IN PTR  router.galaxy.local.
Issue: nslookup debtest2 gives me error. I believe it does not function as intended.
Server: 206.248.154.22
Address: 206.248.154.22#52
server can&#039;t find debtest2: NXDOMAIN
DHCP server configuration
----- /etc/defaults/isc-dhcp-server file
INTERFACES = &quot;eth1&quot;
------ /etc/dhcp/dhcpd.conf file
server-identifier router;
authoritative;
ddns-update-style interim;
include &quot;/etc/bind/rndc.key&quot;;
# Use what key in what zone
zone galaxy.local. {
  primary 127.0.0.1;
  key &quot;rndc-key&quot;;
}
#Standard DHCP info
option domain-name &quot;galaxy.local&quot;;
option domain-name-servers ns.galaxy.local;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.20 192.168.2.200;
  option routers  router.galaxy.local;
  zone    2.168.192.in-addr.arpa. {
    primary ns.galaxy.local;
    key             &quot;rndc-key&quot;;
  }
  zone    galaxy.local. {
    primary ns.galaxy.local;
    key             &quot;rndc-key&quot;;
  }
}
When I boot up a client PC (configured with internal adapter), it gets the IP address from the DHCP server. Details are:
ifconfig: clientPC#1
eth0      Link encap:Ethernet  HWaddr 08:00:27:b6:9b:d3
          inet addr:192.168.2.21  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feb6:9bd3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:986 (986.0 B)  TX bytes:15307 (15.3 KB)
          Interrupt:10 Base address:0xd020
route -n clientPC#1
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.2.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
hostname -f: client PC#1
Mint12-PC1
Issue: I can&#039;t resolve debtest2 from the client PC. Cannot access Internet as well. I think the gateway address is missing.
Any suggestions or perhaps any obvious error? Thank you again for helping me. Kevin (hot_wireless@yahoo.com)]]></description>
		<content:encoded><![CDATA[<p>Hi Chantra. I have configured my debian machine to be dns and dhcp as shown in the post. Here are some details:</p>
<p>Server Hostname: debtest2<br />
eth0 = DHCP from external router; 192.168.1.x<br />
eth1 = 192.168.2.1, netmask 255.255.255.0</p>
<p>For DNS configuration</p>
<p>&#8212;&#8212; named.conf.local</p>
<p>#allow dns updates from localhost with key &#8220;rndc-key&#8221;<br />
include &#8220;/etc/bind/rndc.key&#8221;;<br />
controls {<br />
  inet 127.0.0.1 allow { localhost; } keys { &#8220;rndc-key&#8221;; };<br />
};<br />
#defines galaxy.local<br />
zone &#8220;galaxy.local&#8221; {<br />
  type master;<br />
    file &#8220;db.galaxy.local&#8221;;<br />
    allow-update { key &#8220;rndc-key&#8221;; };<br />
};<br />
#defines our local subnet 192.168.2.0/24<br />
zone &#8220;2.168.192.in-addr.arpa&#8221; {<br />
  type master;<br />
  notify no;<br />
  file &#8220;db.2.168.192&#8243;;<br />
  allow-update { key &#8220;rndc-key&#8221;; };<br />
};</p>
<p>&#8212;&#8212; db.galaxy.local file</p>
<p>$TTL 3D<br />
@       IN      SOA     ns.galaxy.local. postmaster.galaxy.local. (<br />
    201201081; serial, todays date + todays serial #<br />
    8H              ; refresh, seconds<br />
    2H              ; retry, seconds<br />
    4W              ; expire, seconds<br />
    1D )            ; minimum, seconds<br />
;<br />
    NS      ns              ; Inet Address of name server<br />
    MX      10 mail         ; Primary Mail Exchanger<br />
;<br />
    A 192.168.2.1  ; IP address<br />
;<br />
router A   192.168.2.1<br />
ns    CNAME router<br />
dhcp  CNAME ns.galaxy.local.<br />
*     A       192.168.2.1</p>
<p>&#8212;&#8212; db.2.168.192 file</p>
<p>$TTL 3D<br />
@       IN      SOA     galaxy.local. postmaster.galaxy.local. (<br />
  201201081 ; serial, todays date + todays serial #<br />
  8H              ; refresh, seconds<br />
  2H              ; retry, seconds<br />
  4W              ; expire, seconds<br />
  1D )            ; minimum, seconds<br />
;<br />
@       IN      NS      ns.galaxy.local.<br />
@ IN  PTR galaxy.local.<br />
1 IN PTR  router.galaxy.local.</p>
<p>Issue: nslookup debtest2 gives me error. I believe it does not function as intended.</p>
<p>Server: 206.248.154.22<br />
Address: 206.248.154.22#52<br />
server can&#8217;t find debtest2: NXDOMAIN</p>
<p>DHCP server configuration</p>
<p>&#8212;&#8211; /etc/defaults/isc-dhcp-server file</p>
<p>INTERFACES = &#8220;eth1&#8243;</p>
<p>&#8212;&#8212; /etc/dhcp/dhcpd.conf file</p>
<p>server-identifier router;<br />
authoritative;<br />
ddns-update-style interim;<br />
include &#8220;/etc/bind/rndc.key&#8221;;<br />
# Use what key in what zone<br />
zone galaxy.local. {<br />
  primary 127.0.0.1;<br />
  key &#8220;rndc-key&#8221;;<br />
}<br />
#Standard DHCP info<br />
option domain-name &#8220;galaxy.local&#8221;;<br />
option domain-name-servers ns.galaxy.local;<br />
default-lease-time 600;<br />
max-lease-time 7200;<br />
log-facility local7;<br />
subnet 192.168.2.0 netmask 255.255.255.0 {<br />
  range 192.168.2.20 192.168.2.200;<br />
  option routers  router.galaxy.local;<br />
  zone    2.168.192.in-addr.arpa. {<br />
    primary ns.galaxy.local;<br />
    key             &#8220;rndc-key&#8221;;<br />
  }<br />
  zone    galaxy.local. {<br />
    primary ns.galaxy.local;<br />
    key             &#8220;rndc-key&#8221;;<br />
  }<br />
}</p>
<p>When I boot up a client PC (configured with internal adapter), it gets the IP address from the DHCP server. Details are:</p>
<p>ifconfig: clientPC#1</p>
<p>eth0      Link encap:Ethernet  HWaddr 08:00:27:b6:9b:d3<br />
          inet addr:192.168.2.21  Bcast:192.168.2.255  Mask:255.255.255.0<br />
          inet6 addr: fe80::a00:27ff:feb6:9bd3/64 Scope:Link<br />
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:1000<br />
          RX bytes:986 (986.0 B)  TX bytes:15307 (15.3 KB)<br />
          Interrupt:10 Base address:0xd020</p>
<p>route -n clientPC#1</p>
<p>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br />
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0<br />
192.168.2.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0</p>
<p>hostname -f: client PC#1<br />
Mint12-PC1</p>
<p>Issue: I can&#8217;t resolve debtest2 from the client PC. Cannot access Internet as well. I think the gateway address is missing. </p>
<p>Any suggestions or perhaps any obvious error? Thank you again for helping me. Kevin (hot_wireless@yahoo.com)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-28121</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 08 Jan 2013 23:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-28121</guid>
		<description><![CDATA[**** OK, now it is working on my laptop ****
This time I selected a different NIC in the network settings. Re-installed Debian. Inserted the above four lines. Brought up the interface. I am up and working.
*** Thanks again. Kevin]]></description>
		<content:encoded><![CDATA[<p>**** OK, now it is working on my laptop ****</p>
<p>This time I selected a different NIC in the network settings. Re-installed Debian. Inserted the above four lines. Brought up the interface. I am up and working. </p>
<p>*** Thanks again. Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-28110</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 08 Jan 2013 22:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-28110</guid>
		<description><![CDATA[Hi Chantra. I am facing an issue here. I performed the exact installation for the VM on two different physical machines. One desktop and one laptop. The above suggestion worked perfectly in a desktop environment and hence my comment about working.
On the laptop, the same four lines gives me &quot;Don&#039;t seem to have all the variables for eth1/inet. Failed to bring up eth1&quot;. Not sure why. Both installations are default, no additional package installed.  Any suggestions? Thanks. Kevin]]></description>
		<content:encoded><![CDATA[<p>Hi Chantra. I am facing an issue here. I performed the exact installation for the VM on two different physical machines. One desktop and one laptop. The above suggestion worked perfectly in a desktop environment and hence my comment about working. </p>
<p>On the laptop, the same four lines gives me &#8220;Don&#8217;t seem to have all the variables for eth1/inet. Failed to bring up eth1&#8243;. Not sure why. Both installations are default, no additional package installed.  Any suggestions? Thanks. Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-28036</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 08 Jan 2013 20:21:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-28036</guid>
		<description><![CDATA[Wow! I have been trying combinations of commands since the last night. Nothing seemed to work. This fixed my issue. I really appreciate your help. Now I can move on. Thank you very much.]]></description>
		<content:encoded><![CDATA[<p>Wow! I have been trying combinations of commands since the last night. Nothing seemed to work. This fixed my issue. I really appreciate your help. Now I can move on. Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-28004</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Tue, 08 Jan 2013 16:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-28004</guid>
		<description><![CDATA[most likely your eth1 configurstion is from. It should look like
&lt;code&gt;
auto eth1
iface eth1 inet static
        address 10.10.10.1
        netmask 255.255.255.0
&lt;/code&gt;
in &lt;em&gt;/etc/network/interfaces&lt;/em&gt;, then reload your network settings.
In case it still fails, using:
&lt;code&gt;
ifup eth1
&lt;/code&gt;
might give you some info on why it fails.]]></description>
		<content:encoded><![CDATA[<p>most likely your eth1 configurstion is from. It should look like<br />
<code><br />
auto eth1<br />
iface eth1 inet static<br />
        address 10.10.10.1<br />
        netmask 255.255.255.0<br />
</code><br />
in <em>/etc/network/interfaces</em>, then reload your network settings.</p>
<p>In case it still fails, using:<br />
<code><br />
ifup eth1<br />
</code><br />
might give you some info on why it fails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.debuntu.org/how-to-set-up-a-lan-gateway-with-dhcp-dynamic-dns-and-iptables-on-debian-etch-page-4-iptables/#comment-27904</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 08 Jan 2013 14:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=627#comment-27904</guid>
		<description><![CDATA[Hi Chantra. I am newbie. After extensive searching on the Internet, I came across your post. I have the exact similar setup on my system, i.e. eth0 is get IP via DHCP which can connect to the Internet. eth1 is intended to be the interface for the internal lan. My objective is to setup and internal lan that can reach the internet and get DHCP IP address from the eth1 interface. I want to accomplish more than this however, I&#039;d like to start small.
I am running the system in oracle virtualbox. The eth0 adapter is set as bridge adapter and is getting IP address from my router. eth1 is set as an internal network adapter with the name as intnet-test (in Virtualbox).
My system is running debain squeeze (kernel 2.6.32-5-686) in terminal mode so there is no gui interface. I have not installed any of the server packages from debian. When the system comes to the login prompt, the eth0 interface is up. I am able to ping www.yahoo.com.
My issue is that when I execute ifconfig , I can only see eth0 and the loop back adapter in the listing. eth1 does not show up. I have been trying to set up the interface with a static IP address, by editing the /etc/network/interface file, however, the error message says I don&#039;t have enough variables set for eth1 and the interface does not come up.
Any help with this is really appreciated. Thanks - Kevin]]></description>
		<content:encoded><![CDATA[<p>Hi Chantra. I am newbie. After extensive searching on the Internet, I came across your post. I have the exact similar setup on my system, i.e. eth0 is get IP via DHCP which can connect to the Internet. eth1 is intended to be the interface for the internal lan. My objective is to setup and internal lan that can reach the internet and get DHCP IP address from the eth1 interface. I want to accomplish more than this however, I&#8217;d like to start small.</p>
<p>I am running the system in oracle virtualbox. The eth0 adapter is set as bridge adapter and is getting IP address from my router. eth1 is set as an internal network adapter with the name as intnet-test (in Virtualbox).</p>
<p>My system is running debain squeeze (kernel 2.6.32-5-686) in terminal mode so there is no gui interface. I have not installed any of the server packages from debian. When the system comes to the login prompt, the eth0 interface is up. I am able to ping <a href="http://www.yahoo.com" rel="nofollow">http://www.yahoo.com</a>. </p>
<p>My issue is that when I execute ifconfig , I can only see eth0 and the loop back adapter in the listing. eth1 does not show up. I have been trying to set up the interface with a static IP address, by editing the /etc/network/interface file, however, the error message says I don&#8217;t have enough variables set for eth1 and the interface does not come up. </p>
<p>Any help with this is really appreciated. Thanks &#8211; Kevin</p>
]]></content:encoded>
	</item>
</channel>
</rss>