<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DHCP Relay through NAT in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/dhcp-relay-through-nat/m-p/2825351#M170687</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have an ASA 5510 with OS 9.1(6)1. The ASA is connected to the outside internet, to the intranet and to a guest network. A pair of ISC DHCP servers is in the intranet and on the firewall DHCP relay is configured for the guest network. This works fine so far. The clients in the guest network send DHCP broadcasts and get an IP address from the intranet DHCP server. We can't use the builtin DHCP server on the ASA because the range is limited to 255 addresses.&lt;/P&gt;
&lt;P&gt;The problem we currently have is, that the client sees the DHCP response coming from the IP address in the intranet (192.168.100.7 or .8). This doesn't matter much in normal case. But when the clients start Cisco AnyConnect to connect from the guest network to the intranet, then they can't contact the IP address anymore from which the got a DHCP reply. The DNS and DHCP server are on the same host and nslookup from the client to that server IP address results in a timeout because AnyConnect thinks this IP address is not through the tunnel and split-tunneling is disabled.&lt;/P&gt;
&lt;P&gt;I would like to hide the intranet IP addresses and configure static NAT for the DHCP server IP addresses to an address on the guest network interface&amp;nbsp;(192.168.0.7 or .8). I think I have applied the correct NAT rule for this, but it still doesn't work. The client sees responses to DHCP broadcast requests coming from the original address and not the NAT address.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a bug, a limitation of dhcprelay or am I missing something? I don't want separate DHCP servers only for the guest network.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The ASA configuration:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE class="prettyprint"&gt;interface Ethernet0/1.900&lt;BR /&gt; description Guest Network&lt;BR /&gt; vlan 666&lt;BR /&gt; nameif guests&lt;BR /&gt; security-level 1&lt;BR /&gt; ip address 192.168.0.1 255.255.252.0 standby 192.168.0.2&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;object-group network DHCP_Intranet&lt;BR /&gt; network-object host 192.168.100.7&lt;BR /&gt; network-object host 192.168.100.8&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;object-group network DHCP_Guestnet&lt;BR /&gt; network-object host 192.168.0.7&lt;BR /&gt; network-object host 192.168.0.8&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;nat (guests,outside) source dynamic any interface&lt;BR /&gt;nat (inside,guests) source static DHCP_Intranet DHCP_Guestnet&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;dhcprelay server 192.168.100.7 inside&lt;BR /&gt;dhcprelay server 192.168.100.8 inside&lt;BR /&gt;dhcprelay enable guests&lt;BR /&gt;dhcprelay setroute guests&lt;BR /&gt;dhcprelay timeout 60&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;access-list guests_access_in extended permit udp any eq bootpc object-group DHCP_Intranet eq bootps &lt;BR /&gt;access-list guests_access_in extended permit icmp any object-group DHCP_Intranet &lt;BR /&gt;access-list guests_access_in extended deny icmp any object-group Intranet &lt;BR /&gt;access-list guests_access_in extended deny ip any object-group Intranet &lt;BR /&gt;access-list guests_access_in extended permit gre any any &lt;BR /&gt;access-list guests_access_in extended permit esp any any &lt;BR /&gt;access-list guests_access_in extended permit ip any any &lt;BR /&gt;access-list guests_access_in extended permit icmp any any&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;access-list guests_access_out extended permit udp object-group DHCP_Intranet eq bootps any eq bootpc &lt;BR /&gt;access-list guests_access_out extended permit icmp object-group DHCP_Intranet any &lt;BR /&gt;access-list guests_access_out extended deny icmp object-group Intranet any &lt;BR /&gt;access-list guests_access_out extended deny ip object-group Intranet any &lt;BR /&gt;access-list guests_access_out extended permit icmp any any&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;access-group guests_access_in in interface guests&lt;BR /&gt;access-group guests_access_out out interface guests&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Mar 2019 06:52:43 GMT</pubDate>
    <dc:creator>adn25</dc:creator>
    <dc:date>2019-03-12T06:52:43Z</dc:date>
    <item>
      <title>DHCP Relay through NAT</title>
      <link>https://community.cisco.com/t5/network-security/dhcp-relay-through-nat/m-p/2825351#M170687</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have an ASA 5510 with OS 9.1(6)1. The ASA is connected to the outside internet, to the intranet and to a guest network. A pair of ISC DHCP servers is in the intranet and on the firewall DHCP relay is configured for the guest network. This works fine so far. The clients in the guest network send DHCP broadcasts and get an IP address from the intranet DHCP server. We can't use the builtin DHCP server on the ASA because the range is limited to 255 addresses.&lt;/P&gt;
&lt;P&gt;The problem we currently have is, that the client sees the DHCP response coming from the IP address in the intranet (192.168.100.7 or .8). This doesn't matter much in normal case. But when the clients start Cisco AnyConnect to connect from the guest network to the intranet, then they can't contact the IP address anymore from which the got a DHCP reply. The DNS and DHCP server are on the same host and nslookup from the client to that server IP address results in a timeout because AnyConnect thinks this IP address is not through the tunnel and split-tunneling is disabled.&lt;/P&gt;
&lt;P&gt;I would like to hide the intranet IP addresses and configure static NAT for the DHCP server IP addresses to an address on the guest network interface&amp;nbsp;(192.168.0.7 or .8). I think I have applied the correct NAT rule for this, but it still doesn't work. The client sees responses to DHCP broadcast requests coming from the original address and not the NAT address.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a bug, a limitation of dhcprelay or am I missing something? I don't want separate DHCP servers only for the guest network.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The ASA configuration:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE class="prettyprint"&gt;interface Ethernet0/1.900&lt;BR /&gt; description Guest Network&lt;BR /&gt; vlan 666&lt;BR /&gt; nameif guests&lt;BR /&gt; security-level 1&lt;BR /&gt; ip address 192.168.0.1 255.255.252.0 standby 192.168.0.2&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;object-group network DHCP_Intranet&lt;BR /&gt; network-object host 192.168.100.7&lt;BR /&gt; network-object host 192.168.100.8&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;object-group network DHCP_Guestnet&lt;BR /&gt; network-object host 192.168.0.7&lt;BR /&gt; network-object host 192.168.0.8&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;nat (guests,outside) source dynamic any interface&lt;BR /&gt;nat (inside,guests) source static DHCP_Intranet DHCP_Guestnet&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;dhcprelay server 192.168.100.7 inside&lt;BR /&gt;dhcprelay server 192.168.100.8 inside&lt;BR /&gt;dhcprelay enable guests&lt;BR /&gt;dhcprelay setroute guests&lt;BR /&gt;dhcprelay timeout 60&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;access-list guests_access_in extended permit udp any eq bootpc object-group DHCP_Intranet eq bootps &lt;BR /&gt;access-list guests_access_in extended permit icmp any object-group DHCP_Intranet &lt;BR /&gt;access-list guests_access_in extended deny icmp any object-group Intranet &lt;BR /&gt;access-list guests_access_in extended deny ip any object-group Intranet &lt;BR /&gt;access-list guests_access_in extended permit gre any any &lt;BR /&gt;access-list guests_access_in extended permit esp any any &lt;BR /&gt;access-list guests_access_in extended permit ip any any &lt;BR /&gt;access-list guests_access_in extended permit icmp any any&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;access-list guests_access_out extended permit udp object-group DHCP_Intranet eq bootps any eq bootpc &lt;BR /&gt;access-list guests_access_out extended permit icmp object-group DHCP_Intranet any &lt;BR /&gt;access-list guests_access_out extended deny icmp object-group Intranet any &lt;BR /&gt;access-list guests_access_out extended deny ip object-group Intranet any &lt;BR /&gt;access-list guests_access_out extended permit icmp any any&lt;/PRE&gt;
&lt;PRE class="prettyprint"&gt;access-group guests_access_in in interface guests&lt;BR /&gt;access-group guests_access_out out interface guests&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 06:52:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/dhcp-relay-through-nat/m-p/2825351#M170687</guid>
      <dc:creator>adn25</dc:creator>
      <dc:date>2019-03-12T06:52:43Z</dc:date>
    </item>
  </channel>
</rss>

