User:DHC DarkShadow

From DD-WRT Wiki

Revision as of 23:41, 7 October 2009 by DHC DarkShadow (Talk | contribs)
Jump to: navigation, search

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

Contents


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


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~

#basic setup
192.168.1.10
208.67.222.222
208.67.220.220

#dnsmasq
dhcp-option=6,192.168.1.10,192.168.1.1
strict-order

#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