User:DHC DarkShadow
From DD-WRT Wiki
Revision as of 23:48, 7 October 2009 (edit) DHC DarkShadow (Talk | contribs) (→OpenDNS with LAN DNS Server) ← Previous diff |
Revision as of 01:57, 8 October 2009 (edit) (undo) DHC DarkShadow (Talk | contribs) (→OpenDNS with LAN DNS Server) Next diff → |
||
Line 53: | Line 53: | ||
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> | </pre> | ||
+ | |||
+ | Reboot router |
Revision as of 01:57, 8 October 2009
Just to keep track of my project weather it be hardware, software, or Wiki.
Contents |
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
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