☰
Current Page
Main Menu
Home
Editing
DD-WRT
Edit
Preview
h1
h2
h3
Keybinding
default
vim
emacs
Markup
Markdown
Plain Text
Pod
RDoc
AsciiDoc
BibTeX
Creole
MediaWiki
Org-mode
reStructuredText
Textile
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
<!-- --- title: DD-WRT --> # DD-WRT ## DNSMasqでDNS+DHCP * 現状の設定(2010-12-21) * Setup - Basic Setup - Network Address Server Settings (DHCP) * Use DNSMasq for DHCP - チェック * Use DNSMasq for DNS - チェック * Services - Services - DHCP Server * Used Domain - WAN * LAN Domain - 空欄 * Static Leasesにホストを列挙 * DNSMasq - Enable * Local DNS - Enable * Additional DNSMasq Options * ``` domain=example.net local=/example.net/ expand-hosts address=/cname1.example.net/192.168.xx.xx address=/cname2.example.net/192.168.xx.xx address=/cname3.example.net/192.168.xx.xx ``` * cname= でなく address= を使っているのはDD-WRTに入ってるdnsmasqのバージョンが古いため((“Cname entries were introduced in dnsmaq 2.46 dd-wrt ships 2.45, this is why it's not working.” ― [dnsmasq: adding local hosts: MyOpenRouter](http://www.myopenrouter.com/forum/thread/19084/dnsmasq-adding-local-hosts/))) ## 広告ブロック用のhostsファイルを使ってみる * http://www.dd-wrt.com/wiki/index.php/DNSMasq_Local_Network * http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html * Services - Services - Additional DNSMasq Options に以下を追加 ``` addn-hosts=/tmp/adblock_hosts ``` * http://someonewhocares.org/hosts/ のファイルを使う * http://someonewhocares.org/hosts/hosts を /tmp/adblock_hosts として保存 * 起動時に自動的にできるようにしたい * Administration - Commands に記述して Save Startup ``` wget http://someonewhocares.org/hosts/hosts -O /tmp/adblock_hosts & ``` ## PPTPサーバにする * [PPTP Server Configuration - DD-WRT Wiki](http://www.dd-wrt.com/wiki/index.php/PPTP_Server_Configuration) ### Windows機を接続 * [HOW TO: Change the Default Maximum Transmission Unit (MTU) Size Settings for PPP Connections or for VPN Connections](http://support.microsoft.com/kb/826159/en-us) * [The Cable Guy ‐ 2003 年 10 月 : インターネットおよびイントラネットへの同時アクセスのためのスプリット トンネリング](http://technet.microsoft.com/ja-jp/library/bb878117.aspx) ### Android端末を接続 * VPN接続がすぐに切断される現象を確認(IS01,IS05) * Force MPPE EncryptionをDisableにする必要があった(IS01) * 別途L2TP/IPSecサーバを立てた(IS05) * Windows Mobile端末(IS02),Windows 7機,Ubuntu機では発生せず * [Issue 4706 - android - Droid phone PPTP VPN dying after a short while. - Android - An Open Handset Alliance Project - Google Project Hosting](http://code.google.com/p/android/issues/detail?id=4706) ## BOOTP * [DD-WRT Forum :: View topic - DD-WRT DHCP options](http://www.dd-wrt.com/phpBB2/viewtopic.php?t=4662) * [Man page of DNSMASQ](http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html)より: * --dhcp-boot=[tag:<tag>,]<filename>,[<servername>[,<server address>|<tftp_servername>]] * Services - Services - Additional DNSMasq Options に以下を追加 ``` dhcp-boot=pxelinux.0,,192.168.xxx.xxx ``` * 192.168.xxx.xxxのtftpサーバにpxelinux.0を取りにいくはず ## MZK-MF300DとWDS * H/W: GW-MF54G2 * v24-sp2 (03/25/13) std (svn rev. 21061) * まず両方暗号化無効にして繋がるのかどうか * 繋がったので設定を詰めてみる ### ポイント * DD-WRTのModeはWDS Station * SSIDは同じにする * 暗号化方式の設定を合わせる * DD-WRT側はWPA2だとWDSできない?(ヘルプにそれっぽい記載) * MZK-MF300D側はWDSをWPA-AESにできない&APをWPA-TKIPにできない * 悲しいことに最大公約数が128bit WEPになってしまう ### MZK-MF300D側 * APモード: AP+WDS * 暗号化方式設定が2カ所ある * 「セキュリティ」の暗号化方式設定 * こっちはWPA(not WPA2)ではAESにしかできない * 「WDS」の「セキュリティ設定」 * こっちだとWPA-TKIPしか選べない ### DD-WRT側 * Mode: WDS Station * チャンネルが設定できなくなるが,DD-WRT側がスキャンして探すみたい ## 参考 * [Man page of DNSMASQ](http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html) * [dnsmasq: adding local hosts: MyOpenRouter](http://www.myopenrouter.com/forum/thread/19084/dnsmasq-adding-local-hosts/)
Uploading file...
Edit message:
Cancel