User:DHC DarkShadow

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:57, 8 October 2009 (edit)
DHC DarkShadow (Talk | contribs)
(OpenDNS with LAN DNS Server)
← Previous diff
Revision as of 03:20, 9 October 2009 (edit) (undo)
DHC DarkShadow (Talk | contribs)

Next diff →
Line 1: Line 1:
-Just to keep track of my project weather it be hardware, software, or Wiki.+Just to keep track of my projects weather it be hardware, software, or Wiki.
__TOC__ __TOC__
-== WRT54G v4.0 JTAG recovery ==+== Linksys WRT54G v4.0 JTAG recovery ==
#Obtain an edited CFE with your MAC address #Obtain an edited CFE with your MAC address
Line 27: Line 27:
#hard reset 30/30/30 #hard reset 30/30/30
 +== Linksys WRT54GS v1.1 JTAG Recovery ==
 +JTAG:
 +
 +#Erase Wholeflash x2
 +#Flash CFE
 +#Unplug Power
 +#Unplug JTAG Cable
 +
 +TFTP
 +
 +#Set Rig ip static 192.168.1.10
 +#Plug network cable from rig to port 1
 +#Plug in power
 +#Wait for DMZ light to do a steady pulse, When it is lit on the 3rd time click upgrade. The DMZ light must be lit when you click upgrade.
 +#Hard Reset 30\30\30
== OpenDNS with LAN DNS Server == == OpenDNS with LAN DNS Server ==

Revision as of 03:20, 9 October 2009

Just to keep track of my projects weather it be hardware, software, or Wiki.

Contents


Linksys WRT54G v4.0 JTAG recovery

  1. Obtain an edited CFE with your MAC address
  2. Plug in JTAG cable
  3. Power up Router (nothing else plugged into router)
  4. tjtag3 -probeonly /noemw
  5. tjtag3 -erase:wholeflash /noemw /nocwd /noreset
  6. tjtag3 -erase:wholeflash /noemw /nocwd /noreset
  7. tjtag3 -flash:cfe /noemw /nocwd /noreset /silent
  8. Unplug power to router
  9. Unplug JTAG cable
  10. Set static ip on computer 192.168.1.100 net mask 255.255.255.0
  11. plug Ethernet cable from computer to router lan port 1
  12. set TFTP Seerver 192.168.1.1 password blank, browse to the firmware WRT54GV4.0_4.21.1_US_code
  13. Plug power back in to router
  14. wait for icon in system tray to connect.
  15. Click upgrade
  16. once it's done wait till the lights show that it's booted
  17. Browse to 192.168.1.1 name blank password admin, You should be looking at the linksys stock firmware
  18. goto the admin tab then firmware upgrade
  19. browse to dd-wrt.v24_web_flash_mini_generic
  20. Click upgrade and wait
  21. once it says success
  22. hard reset 30/30/30

Linksys WRT54GS v1.1 JTAG Recovery

JTAG:

  1. Erase Wholeflash x2
  2. Flash CFE
  3. Unplug Power
  4. Unplug JTAG Cable

TFTP

  1. Set Rig ip static 192.168.1.10
  2. Plug network cable from rig to port 1
  3. Plug in power
  4. Wait for DMZ light to do a steady pulse, When it is lit on the 3rd time click upgrade. The DMZ light must be lit when you click upgrade.
  5. Hard Reset 30\30\30

OpenDNS with LAN DNS Server

Goal - Force 192.168.1.128 - 192.168.1.254 to use opendns servers, while forcing 192.168.1.0 - 192.168.1.127 to use my own DNS server running on my LAN. My DHCP pool has been moved up to 192.168.1.200 +50, so that DHCP will get forced to opendns as well.

Solution - I have static lease assignments under services so that I have control of what machines get what IP address' without having to go to each individual machine to set it or change it. The machine's in my house I want on open DNS but want them to have a staic IP, I set a static lease in services anywhere from 192.168.1.128-192.168.1.200. Making sure not to set an IP in the DHCP pool. Machine's in my house I want to use my DNS sever, I set a static lease of 192.168.1.10 - 192.168.1.127. The first 10 IP's I leave for network devices like WAP's, Client Brides, and Repeaters.

And the rest of the setting, which are credited to P~

#Setup --> Basic Setup --> Network Address Server Settings (DHCP)
Static DNS 1 = 192.168.1.10
Static DNS 2 = 208.67.222.222
Static DNS 3 = 208.67.220.220

#Services --> DNSMasq --> Additional DNSMasq Options
dhccp-option=6,192.168.1.10,192.168.1.1
strict-order

#Administration --> Commands --> Firewall
iptables -I INPUT -i br0 -s 192.168.1.0/25 -p tcp --dport 53 -j DROP
iptables -I INPUT -i br0 -s 192.168.1.0/25 -p udp --dport 53 -j DROP
iptables -t nat -I PREROUTING -p udp -i br0 -s 192.168.1.128/25 --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -p tcp -i br0 -s 192.168.1.128/25 --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -d 208.67.220.220 -j ACCEPT

Reboot router