User:DHC DarkShadow
From DD-WRT Wiki
Revision as of 04:31, 11 December 2009 (edit) DHC DarkShadow (Talk | contribs) (→Linksys WRT54GS v1.1 JTAG Recovery) ← Previous diff |
Revision as of 20:03, 16 December 2009 (edit) (undo) DHC DarkShadow (Talk | contribs) (→OpenDNS with LAN DNS Server) Next diff → |
||
Line 58: | Line 58: | ||
<pre> | <pre> | ||
- | + | 1. Setup --> Basic Setup --> Network Address Server Settings (DHCP) | |
Static DNS 1 = 192.168.1.10 | Static DNS 1 = 192.168.1.10 | ||
Static DNS 2 = 208.67.222.222 | Static DNS 2 = 208.67.222.222 | ||
Static DNS 3 = 208.67.220.220 | Static DNS 3 = 208.67.220.220 | ||
- | + | 2. Services --> DNSMasq --> Additional DNSMasq Options | |
dhccp-option=6,192.168.1.10,192.168.1.1 | dhccp-option=6,192.168.1.10,192.168.1.1 | ||
strict-order | strict-order | ||
- | + | 3. 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 tcp --dport 53 -j DROP | ||
iptables -I INPUT -i br0 -s 192.168.1.0/25 -p udp --dport 53 -j DROP | iptables -I INPUT -i br0 -s 192.168.1.0/25 -p udp --dport 53 -j DROP | ||
Line 73: | Line 73: | ||
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 -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 | iptables -t nat -I PREROUTING -d 208.67.220.220 -j ACCEPT | ||
- | </pre> | ||
- | Reboot router | + | 4. Reboot router |
+ | </pre> |
Revision as of 20:03, 16 December 2009
Just to keep track of my projects weather it be hardware, software, or Wiki.
Contents |
Asus RT-N16
Linksys WRT54G v4.0
JTAG recovery
- Obtain an edited CFE with your MAC address
- Plug in JTAG cable
- Power up Router (nothing else plugged into router)
- tjtag3 -probeonly /noemw
- tjtag3 -erase:wholeflash /noemw /nocwd /noreset
- tjtag3 -erase:wholeflash /noemw /nocwd /noreset
- tjtag3 -flash:cfe /noemw /nocwd /noreset /silent
- Unplug power to router
- Unplug JTAG cable
- Set static ip on computer 192.168.1.100 net mask 255.255.255.0
- plug Ethernet cable from computer to router lan port 1
- set TFTP Seerver 192.168.1.1 password blank, browse to the firmware WRT54GV4.0_4.21.1_US_code
- Plug power back in to router
- wait for icon in system tray to connect.
- Click upgrade
- once it's done wait till the lights show that it's booted
- Browse to 192.168.1.1 name blank password admin, You should be looking at the linksys stock firmware
- goto the admin tab then firmware upgrade
- browse to dd-wrt.v24_web_flash_mini_generic
- Click upgrade and wait
- once it says success
- 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
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~
1. 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 2. Services --> DNSMasq --> Additional DNSMasq Options dhccp-option=6,192.168.1.10,192.168.1.1 strict-order 3. 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 4. Reboot router