<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ledhed.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=Smoothwall_Override_ISP_DNS</id>
		<title>Smoothwall Override ISP DNS - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=Smoothwall_Override_ISP_DNS"/>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=Smoothwall_Override_ISP_DNS&amp;action=history"/>
		<updated>2026-04-08T02:09:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>//wiki.ledhed.net/index.php?title=Smoothwall_Override_ISP_DNS&amp;diff=3115&amp;oldid=prev</id>
		<title>Ledhed: Created page with &quot;This is a repost, all credit goes to the author of the blog post in the reference section.  ----   If you're using DHCP to get your public IP, Smoothwall doesn't allow you to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=Smoothwall_Override_ISP_DNS&amp;diff=3115&amp;oldid=prev"/>
				<updated>2014-08-24T03:28:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a repost, all credit goes to the author of the blog post in the reference section.  ----   If you&amp;#039;re using DHCP to get your public IP, Smoothwall doesn&amp;#039;t allow you to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a repost, all credit goes to the author of the blog post in the reference section.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you're using DHCP to get your public IP, Smoothwall doesn't allow you to override the DNS addresses given by your ISP through the DHCP protocol. Time to override Smoothwall :)&lt;br /&gt;
&lt;br /&gt;
Edit /etc/rc.d/rc.updatered, and add &amp;quot;DNSMASQ_DNS1=208.67.222.222&amp;quot; and &amp;quot;DNSMASQ_DNS2=208.67.220.220&amp;quot; at the bottom of the DHCP section, making the file look like this:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 . /var/smoothwall/ethernet/settings&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$RED_TYPE&amp;quot; = &amp;quot;DHCP&amp;quot; ]; then&lt;br /&gt;
  DNSMASQ_DNS1=`/usr/bin/smoothwall/getdnsfromdhcpc.pl 1`&lt;br /&gt;
  DNSMASQ_DNS2=`/usr/bin/smoothwall/getdnsfromdhcpc.pl 2`&lt;br /&gt;
  . /var/lib/dhcpc/dhcpcd-${RED_DEV}.info&lt;br /&gt;
  echo &amp;quot;$IPADDR&amp;quot; &amp;gt;/var/smoothwall/red/local-ipaddress&lt;br /&gt;
  echo &amp;quot;$GATEWAY&amp;quot; &amp;gt;/var/smoothwall/red/remote-ipaddress&lt;br /&gt;
  DNSMASQ_DNS1=208.67.222.222                              &amp;lt;------- HERE&lt;br /&gt;
  DNSMASQ_DNS2=208.67.220.220                              &amp;lt;------- HERE&lt;br /&gt;
 elif [ &amp;quot;$RED_TYPE&amp;quot; = &amp;quot;STATIC&amp;quot; ]; then&lt;br /&gt;
  DNSMASQ_DNS1=$DNS1&lt;br /&gt;
  DNSMASQ_DNS2=$DNS2&lt;br /&gt;
  echo &amp;quot;$RED_ADDRESS&amp;quot; &amp;gt;/var/smoothwall/red/local-ipaddress&lt;br /&gt;
  echo &amp;quot;$DEFAULT_GATEWAY&amp;quot; &amp;gt;/var/smoothwall/red/remote-ipaddress&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 echo -n &amp;quot;$RED_DEV&amp;quot; &amp;gt;/var/smoothwall/red/iface&lt;br /&gt;
 touch /var/smoothwall/red/active&lt;br /&gt;
 echo &amp;quot;$DNSMASQ_DNS1&amp;quot; &amp;gt;/var/smoothwall/red/dns1&lt;br /&gt;
 echo &amp;quot;$DNSMASQ_DNS2&amp;quot; &amp;gt;/var/smoothwall/red/dns2&lt;br /&gt;
 &lt;br /&gt;
 /usr/bin/smoothcom dnsproxyrestart $DNSMASQ_DNS1 $DNSMASQ_DNS2&lt;br /&gt;
 &lt;br /&gt;
 /usr/bin/smoothcom setxtaccess&lt;br /&gt;
 /usr/bin/smoothcom setincoming&lt;br /&gt;
 /usr/bin/smoothcom snortrestart&lt;br /&gt;
 /usr/bin/smoothcom upnpdrestart&lt;br /&gt;
 /usr/bin/smoothcom trafficrestart&lt;br /&gt;
 &lt;br /&gt;
 /usr/bin/smoothwall/setddns.pl&lt;br /&gt;
 /usr/bin/smoothwall/updatelists.pl&lt;br /&gt;
 &lt;br /&gt;
 /etc/rc.d/rc.vpn.up&lt;br /&gt;
 /etc/rc.d/rc.machineregister&lt;br /&gt;
The next time you Smoothwall connects, the setting you just put will override the ones from your ISP. Reboot or reconnect to apply.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
http://blog.dhampir.no/content/use-opendns-with-smoothwall-express-3-x&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Smoothwall]]&lt;/div&gt;</summary>
		<author><name>Ledhed</name></author>	</entry>

	</feed>