UARTã€ã³ã¿ãŒãã§ãŒã¹ãä»ããã«ãŒã¿ãŒãã¡ãŒã ãŠã§ã¢ã®ãããã¯ã¯éåžžã«ç©ŽãéããŠãããåã¿ç ãããŠããŸãããã«ãŒã¿ãŒã«é¢ããæ å ±ãèŠã€ããããšãã§ããªãã£ãããããã®ãããã¯ã¯æçšã§ãããšæããŸããããã«é¢ãããã©ãŒã©ã ã«ã¯ããã€ãã®è³ªåããããæªåçã®ãŸãŸã§ããã
ãäœããæ©èœããªãã£ãããããç§ã¯sabzhevyã«ãŒã¿ãŒã®æã«å ¥ããæ¯åã«ä¹ã£ãã
æã¡åž°ããšãã«ãŒã¿ã¯ããŒãäžã«æ®ãã®ã€ã³ãžã±ãŒã¿ã§ç¹æ» ããWANããŒããããã¯ã¢ãããããšããäºå®ã«ãããããããLANããŒãã®åŒãäžããå®å šã«æåŠããããšãããããŸããã é»çã¯ãªã»ããæãšåãããã«åäœããŸãããããªã»ãããã¿ã³ã§ãªã»ããããŠã圹ã«ç«ã¡ãŸããã§ããã
ããŠãæ¯åã¯æ¯åã§ãããç§ã¯ãã®ã«ãŒã¿ãŒã䜿çšããŠãã«ã³ããªãŒããŠã¹ã®3G \ 4Gãã£ãªã¢ãã©ãã·ã¥ãã©ã€ããä»ããŠã€ã³ã¿ãŒãããã«ã¢ã¯ã»ã¹ãããã£ãã®ã§ãã ã¯ããSIPã¡ã¬ãã³ãã楜ãã¿ããã ããŸãã
ããã¥ã¢ã«ãèªãã§ã説æãããç·æ¥ã¢ãŒãã«å ¥ãæ¹æ³ã¯ã©ããæ©èœããªãããšã«æ°ä»ããŸããããé»æºãå ¥ããŠãªã»ãããã¿ã³ãæŒãããŸãŸã«ãããšãã«ãŒã¿ãŒã¯æããã«LANããŒããéåžžäžããã¢ãŒãã«ãªããŸãããããããã¯ãŒã¯ããã¥ã¢ã«192.168.80.20ã«èšèŒãããŠããŸã/ 24ã192.168.1.2 / 24ã192.168.0.2 / 24ã192.168.8.10 / 24ã¯é©åãããã¢ãã¬ã¹ãå¿çããŸããïŒ 192.168.80.21ã192.168.1.1ã192.168.0.1ã192.168.8.254 ïŒã
äžèº«ãèŠãããã«ãã®éçãéããæã ãšæããŸããã
ãã§ã«ã¯ãã ä»ããããUARTãæ°ã¥ãããŸãããå·Šäžé ã®WAN LEDã®äžã«ãããã¢ããã¿ãŒãæŸã£ãŠäœ¿çšããããã ãã«æ®ã£ãŠããŸããã
PL2303çšã®DCU-15ã±ãŒãã«ã¯å°å ã®åºã§30ã«ãŒãã«ã§è³Œå ¥ãããå解ãããŠå¿ èŠãªãã³ã«ã¯ãã ä»ããããŸããïŒã¯ãã ä»ãã¯èªããããã¹ãŠã150gã®äžåœã®ã¬ã¹ã¯ãã ããŠã§è¡ãããŸããã
é»è©±ããŒã¿ã±ãŒãã«ãUARTããŒãã«æ¥ç¶ããããã®ããã¥ã¢ã«ã¯ãããããããŸãã®ã§ãããäžåºŠèª¬æããŸããã
æ¥ç¶ã«Puttyã䜿çšããŸããã38,400ããŒã®é床ã§é©åãªäŒéãéå§ãããŸãããPuttyãšUSB-COMããŒãã®èšå®ã§èšå®ããå¿ èŠããããŸãã
èšå®
ãªã³ã«ãããšãã«ãŒã¿ãŒã¯ç§ã«äœããããããå°ãããªã¹ããå æ°ããçºè¡ããŸããïŒ
DDR DRAM 32 MB @ 195 MHzãSPI FLASH 8 M
--- OcttelïŒRTL89xxBïŒat 2011.05.16-13ïŒ42 + 0800ããŒãžã§ã³1.1.26.0 [16ããã]ïŒ390MHzïŒ
---ã¯ã€ã€ã¬ã¹regDomain --- MACã¢ãã¬ã¹ïŒ84ïŒc9ïŒb2ïŒxxïŒxxïŒxx
ãiããæŒããŠã·ã¹ãã ã€ã¡ãŒãžãæŽæ°ããŸãã
ãkããæŒããŠã«ãŒãã«ã€ã¡ãŒãžãæŽæ°ããŸãã
ã«ãŒãfsã€ã¡ãŒãžãæŽæ°ããã«ã¯ããrããæŒããŸãã
ãlããæŒããŠããŒããŒãæŽæ°ããŸãã
ãcããæŒããŠã¿ãŒã²ããIPãå€æŽããŸã
TFTPãµãŒããŒã®IPãå€æŽããã«ã¯ãtããæŒããŸã
ãzããæŒããŠããããã¯ãŒã¯MACçªå·ã®æ§æãå€æŽããŸãã
ãmããæŒããŠãMACããã³SNæ§æãå€æŽããŸãã
ãyããæŒããŠãã¯ã€ã€ã¬ã¹regDomainæ§æãå€æŽããŸãã
ãããã¯ãŒã¯ã«ã¯D-link DIR-300ãªã©ã®ãã¡ãŒã ãŠã§ã¢ãæŽæ°/埩å ããããã®ããã¥ã¢ã«ãå€æ°ãããtftpãµãŒããŒããããŠã³ããŒãããŠãã¡ãŒã ãŠã§ã¢ãçŽæ¥åŸ©å ããæ¹æ³ã«ã€ããŠèª¬æããŠããŸããããã®ã«ãŒã¿ãŒã®åäžã®æŽæ°ãã€ã³ããå¿ èŠãªãã¡ã€ã«ïŒFTP D-linkããããŠã³ããŒããããã¡ãŒã ãŠã§ã¢ãã¡ã€ã«'aã®æ¡åŒµåã¯.packã§ããã§ã«tftpãµãŒããŒã§ã®ããŠã³ããŒããåŸ ã£ãŠããŸããïŒã
ç§ã¯äžæçã«èœèããã«ãŒã¿ãŒã®ããŒããã°ããäœããååŸã§ãããããããªããšèããŸããã 誰ããèŠããå Žåã¯ãæåãªãªãœãŒã¹ã«æçš¿ããŸãïŒ
http://pastebin.com/hS9zVx5z
äœããã®çç±ã§ããã°ã®ãã¿ãã¬ã¯æ©èœããŸããã§ããã誰ããçç±ãæããŠãããããæè¬ããèšäºã«è»¢éããŸãã
å©çšå¯èœãªãããã¯ãŒã¯ã«é¢ãããã°ã«èšåãèŠã€ãããŸããã§ããã
ããã€ã¹ãå®å šã«ããŒãããããšãå®è£ ãããã³ãã³ãå ¥åã䜿çšã§ããããã«ãªããŸããã
ïŒifconfig
br0ãªã³ã¯encapïŒã€ãŒãµãããHWaddr 84ïŒC9ïŒB2ïŒXXïŒXXïŒXX
inet addrïŒ192.168.8.254 BcastïŒ192.168.8.255 MaskïŒ255.255.255.0
UP BROADCAST RUNNING MULTICAST MTUïŒ1500ã¡ããªãã¯ïŒ1
RXãã±ããïŒ0ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã¬ãŒã ïŒ64
TXãã±ããïŒ41ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã£ãªã¢ïŒ0
è¡çªïŒ0 txqueuelenïŒ0
RXãã€ãïŒ23275ïŒ22.7 KiBïŒTXãã€ãïŒ0ïŒ0.0 BïŒ
eth0ãªã³ã¯encapïŒã€ãŒãµãããHWaddr 84ïŒC9ïŒB2ïŒXXïŒXXïŒXX
UP BROADCAST RUNNING MULTICAST MTUïŒ1500ã¡ããªãã¯ïŒ1
RXãã±ããïŒ0ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã¬ãŒã ïŒ0
TXãã±ããïŒ41ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã£ãªã¢ïŒ0
è¡çªïŒ0 txqueuelenïŒ128
RXãã€ãïŒ0ïŒ0.0 BïŒTXãã€ãïŒ1722ïŒ1.6 KiBïŒ
å²ã蟌ã¿ïŒ15
eth1ãªã³ã¯encapïŒã€ãŒãµãããHWaddr 84ïŒC9ïŒB2ïŒXXïŒXXïŒXX
inet addrïŒ 192.168.8.254 BcastïŒ192.168.8.255 MaskïŒ255.255.255.252
UP BROADCAST RUNNING MULTICAST MTUïŒ1500ã¡ããªãã¯ïŒ1
RXãã±ããïŒ6320ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã¬ãŒã ïŒ0
TXãã±ããïŒ1562ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã£ãªã¢ïŒ0
è¡çªïŒ0 txqueuelenïŒ128
RXãã€ãïŒ1176595ïŒ1.1 MiBïŒTXãã€ãïŒ1301150ïŒ1.2 MiBïŒ
å²ã蟌ã¿ïŒ15
loãªã³ã¯encapïŒããŒã«ã«ã«ãŒãããã¯
inet addrïŒ127.0.0.1ãã¹ã¯ïŒ255.0.0.0
UPLOOPBACK RUNNING MTUïŒ16436ã¡ããªãã¯ïŒ1
RXãã±ããïŒ14ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã¬ãŒã ïŒ0
TXãã±ããïŒ14ãšã©ãŒïŒ0ããããïŒ0ãªãŒããŒã©ã³ïŒ0ãã£ãªã¢ïŒ0
è¡çªïŒ0 txqueuelenïŒ0
RXãã€ãïŒ1100ïŒ1.0 KiBïŒTXãã€ãïŒ1100ïŒ1.0 KiBïŒ
ã芧ã®ãšãããbr0ããã³eth1ã€ã³ã¿ãŒãã§ãŒã¹ã¯åãIPãæã£ãŠããŸãããeth1ã®å Žåãéåžžã®ãªã³ã¯ãããã¯ãŒã¯\ 30ãæ§æãããŠããŸãã
ãã®ãããã¯ãŒã¯ããã¹ãããããã«ãWANããŒãã«ã±ãŒãã«ãæ¥ç¶ããããšã決å®ãããŸããã ã«ãŒã¿ã¯ããŒããæã¡äžããã³ã³ãœãŒã«ã§æ¬¡ã®ããã«æšæž¬ããŸããïŒ
NCSïŒæ¥ç¶WANã確ç«ãããŸãããIP = 192.168.8.254ãµãããããã¹ã¯= 255.255.255.252
ãããŠãããªãã¯ç§ããã©ãã«ãé ããŠããªãããšããæãã§ãç§ã¯192.168.8.253/30ãããã¯ãŒã¯ã«ãŒãã«ä¹ã蟌ã¿ãŸãã
éä¿¡ããã4ã€ã®ãã±ãããã¹ãŠãçããç¶æ ã§è¿ãããŸããã§ããããã³ã³ãœãŒã«ã®ã«ãŒã¿ãŒã¯å¿çããŸããã
NCSïŒIcmp-Smurfæ»æãæ€åºããããSA = 192.168.8.253 DA = 192.168.8.254
NCSïŒIcmp-Smurfæ»æãæ€åºããããSA = 192.168.8.253 DA = 192.168.8.254
NCSïŒIcmp-Smurfæ»æãæ€åºããããSA = 192.168.8.253 DA = 192.168.8.254
NCSïŒIcmp-Smurfæ»æãæ€åºããããSA = 192.168.8.253 DA = 192.168.8.254
telnetãä»ããç¿æ £ããã®æ¬¡ã®ãã°ã€ã³è©Šè¡ã¯æåããããã«ãã©ãŠã¶ãŒã«ã¢ã¯ã»ã¹ããŠWebéå£ãèµ·åããŸããã èµ·åããŸãã!!! åã³ã¯ééããããŸããã§ããã ã€ã³ã¿ãŒãã§ãŒã¹ãä»ããŠãªã»ããããå¿ èŠããããŸããããããã®ã«ãŒã¿ãŒã¯IP 192.168.8.56ã®ã¿ã§tftpãä»ããŠãã¡ãŒã ãŠã§ã¢ãã¢ããããŒãããããšã«åæããããããã®æ®µéã§ã¯ãã¡ãŒã ãŠã§ã¢ã«ã€ããŠèããã®ã¯ææå°æ©ã§ããã
å¥åŠãªã®ã¯ã圌ãèŒããŠããWANã€ã³ã¿ãŒãã§ãŒã¹ã®èšå®ã§ãã
Webãã§ã€ã¹ãä»ããŠãªã»ããããåŸãã«ãŒã¿ãŒã¯WANãä»ããŠçºå ãåæ¢ããLANã€ã³ã¿ãŒãã§ã€ã¹ãäžæããŸããã§ããã ããããWLANã¯äžæããŸããã
圌ã®é¡ãã€ããããšã«ããŸããïŒ
ïŒifconfig br0 down
ïŒifconfig br0 up
ã±ãŒãã«ãLANããŒãã«æ¥ç¶ããåŸãã©ã³ããéœæ°ã«ç¹æ» ããŸããã
ã«ãŒã¿ãŒã¯æ£åžžã«ãã©ãã·ã¥ããã3Gã¢ãã ãä»ããŠã€ã³ã¿ãŒãããã«æ¥ç¶ãããŸããã ããã§SIPã¡ã¬ãã³ãæèµ·ããã倢ãå®çŸããŸããã
ãã®åŸã圌ã¯è¡ã®å€ã®æžå€ã§äžçäŒã¿ããŠã§ãã«ã¡ã©ã«å®ãããŸãã
ãæž èŽããããšãããããŸããïŒ ç§ã¯ååãªæ¹å€ã«åãã§ããã§ãããã