タグ: WN-G300R3

WN-G300R3

東久留米のハードオフに立ち寄った際、ACアダプタ無しジャンク324円だったため確保した機種。MT7620であることを予想していたため、そのうちやろうかな、と考えていた。
開けてみたところRAMが32MBだったりFlashが4MBだったりととても残念で最初放置しようと決めたものの、他機種でシリアルのピンヘッダを立てる際についでに立て、折角なので自フォーク内でのみサポートを持つことにした。

Switch

未確認

MAC

  • LAN: 34:76:C5:xx:xx:F4 (Config, ethaddr (text))
  • WAN: 34:76:C5:xx:xx:F5 (Config, wanaddr (text))
  • 2G: 34:76:C5:xx:xx:F4 (Factory, 0x4 (hex))

U-Boot

  • help
    U-Boot 1.1.3 (Aug  8 2014 - 12:01:55)
    MT7620 # help
    ?       - alias for 'help'
    bootm   - boot application image from memory
    cp      - memory copy
    erase   - erase SPI FLASH memory
    go      - start application at address 'addr'
    help    - print online help
    loadb   - load binary file over serial line (kermit mode)
    md      - memory display
    mdio   - Ralink PHY register R/W command !!
    mm      - memory modify (auto-incrementing)
    nm      - memory modify (constant address)
    printenv- print environment variables
    reset   - Perform RESET of the CPU
    rf      - read/write rf register
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version
    

  • version
    MT7620 # version
    
    U-Boot 1.1.3 (Aug  8 2014 - 12:01:55)
    

  • printenv
    MT7620 # printenv
    bootcmd=tftp
    bootdelay=1
    baudrate=115200
    ethaddr="34:76:C5:**:**:F4"
    ipaddr=192.168.99.9
    serverip=192.168.99.8
    sn=2599078U1
    hw_ver=1.1.0
    hw_id=030A0065
    pro_id=000
    country=000
    domain=1
    wanaddr=34:76:C5:**:**:F5
    wlanaddr=00:AA:BB:CC:DD:12
    iNICaddr=00:AA:BB:CC:DD:22
    eth_en=0
    snextra=BBE2599078U1********
    bootfile=uImageWLR-3100v2003
    op_mode=0
    uboot_ver=1.0.0.14
    stdin=serial
    stdout=serial
    stderr=serial
    
    Environment size: 401/4092 bytes
    

Kernel

パスワードが掛けられている。

  • uname -a
    # uname -a
    Linux WN-G300R3 2.6.36 #2 Wed Jun 21 11:25:05 CST 2017 mips unknown
    

  • cat /proc/version
    # cat /proc/version
    Linux version 2.6.36 (root@******-******-******-******) (gcc version 4.3.4 (Buildroot 2010.05) ) #2 Wed Jun 21 11:25:05 CST 2017
    

  • cat /proc/cpuinfo
    # cat /proc/cpuinfo
    system type             : Ralink SoC
    processor               : 0
    cpu model               : MIPS 24Kc V5.0
    BogoMIPS                : 399.36
    wait instruction        : yes
    microsecond timers      : yes
    tlb_entries             : 32
    extra interrupt vector  : yes
    hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
    ASEs implemented        : mips16 dsp
    shadow register sets    : 1
    core                    : 0
    VCED exceptions         : not available
    VCEI exceptions         : not available
    

  • cat /proc/meminfo
    # cat /proc/meminfo
    MemTotal:          29552 kB
    MemFree:            6660 kB
    Buffers:            2064 kB
    Cached:             8032 kB
    SwapCached:            0 kB
    Active:             3784 kB
    Inactive:           7352 kB
    Active(anon):       1488 kB
    Inactive(anon):      116 kB
    Active(file):       2296 kB
    Inactive(file):     7236 kB
    Unevictable:         628 kB
    Mlocked:             628 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                 0 kB
    Writeback:             0 kB
    AnonPages:          1684 kB
    Mapped:             2132 kB
    Shmem:               116 kB
    Slab:               7384 kB
    SReclaimable:        596 kB
    SUnreclaim:         6788 kB
    KernelStack:         472 kB
    PageTables:          312 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       14776 kB
    Committed_AS:       5012 kB
    VmallocTotal:    1048372 kB
    VmallocUsed:        3228 kB
    VmallocChunk:    1034064 kB
    

  • cat /proc/mtd
    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00400000 00001000 "ALL"
    mtd1: 00030000 00001000 "Bootloader"
    mtd2: 00010000 00001000 "Config "
    mtd3: 00010000 00001000 "Factory"
    mtd4: 00390000 00001000 "Kernel"
    mtd5: 00244000 00001000 "app"
    mtd6: 00010000 00001000 "backup"
    mtd7: 00010000 00001000 "storage"
    

  • bootlog (op_mode=0)
    U-boot Ver:1.0.0.14 2014/08/08 12:01:55
    
    
    Board: Ralink APSoC DRAM:  32 MB
    ******************************
    Software System Reset Occurred
    ******************************
    spi_wait_nsec: 28 
    spi device id: 1c 70 16 1c 70 (70161c70)
    Warning: un-recognized chip ID, please update bootloader!
    ============================================ 
    ASIC 7620_MP (Port5None)
    Product Name: WN-G300R3
    DRAM bus: 16 bit
    Total memory: 32 MBytes
    Flash component: SPI Flash
    Date:Aug  8 2014  Time:12:01:55
    ============================================ 
    EMBEDAD SWITH init
    
    Please choose the operation: 
       2: Load system code then write to Flash via TFTP. 
       3: Boot system code via Flash (default).
       9: Load Boot Loader code then write to Flash via TFTP. 
                                                                                                                               0 
       
    3: System Boot system code via Flash.
    ## Booting image at bc050000 ...
       Image Name:   Linux Kernel Image
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1359398 Bytes =  1.3 MB
       Load Address: 80000000
       Entry Point:  8000c110
       Verifying Checksum ... OK
       Uncompressing Kernel Image ... OK
    
    Starting kernel ...
    
    
    LINUX started...
    
     THIS IS ASIC
    init started: BusyBox v1.13.3 (2017-06-21 11:21:37 CST)
    starting pid 714, tty '/dev/console': '/sbin/config_init'
    mknod: /dev/ttyS0: File exists
    mknod: /dev/ttyS1: File exists
    Config Init version: 1.10.000.48 date: 2017/06/21
    Sun Jan  1 00:00:00 UTC 2017
    mount: can't find /sys in /etc/fstab or /etc/mtab
    ln: /lib/./modules: File exists
    switch reg write offset=2004, value=ff0003
    switch reg write offset=2104, value=ff0003
    switch reg write offset=2204, value=ff0003
    switch reg write offset=2304, value=ff0003
    switch reg write offset=2404, value=ff0003
    switch reg write offset=2504, value=ff0003
    switch reg write offset=2010, value=810000c0
    switch reg write offset=2110, value=810000c0
    switch reg write offset=2210, value=810000c0
    switch reg write offset=2310, value=810000c0
    switch reg write offset=2410, value=810000c0
    switch reg write offset=2510, value=810000c0
    switch reg write offset=2610, value=81000000
    switch reg write offset=2710, value=81000000
    switch reg write offset=2604, value=20ff0003
    switch reg write offset=2704, value=20ff0003
    switch reg write offset=2014, value=10001
    switch reg write offset=2114, value=10001
    switch reg write offset=2214, value=10001
    switch reg write offset=2314, value=10001
    switch reg write offset=2414, value=10002
    switch reg write offset=2514, value=10001
    REG_ESW_WT_MAC_ATC is 0x7ff0002
    done.
    Checking [/dev/mtdblock5] .... Matched.
    Checking [/apps/appscore.sqsh] .... Matched.
    starting pid 816, tty '/dev/ttyS1': '/sbin/config_term'
    ************************************************************************
    *                                WN-G300R3                             *
    ************************************************************************
    
    KernelApp/Ramdisk Ver:1.10.000.48                        Date:2017/06/21
    password: 
    

  • bootlog (op_mode=1)
    U-boot Ver:1.0.0.14 2014/08/08 12:01:55
    
    
    Board: Ralink APSoC DRAM:  32 MB
    ******************************
    Software System Reset Occurred
    ******************************
    spi_wait_nsec: 28 
    spi device id: 1c 70 16 1c 70 (70161c70)
    Warning: un-recognized chip ID, please update bootloader!
    ============================================ 
    ASIC 7620_MP (Port5None)
    Product Name: WN-G300R3
    DRAM bus: 16 bit
    Total memory: 32 MBytes
    Flash component: SPI Flash
    Date:Aug  8 2014  Time:12:01:55
    ============================================ 
    EMBEDAD SWITH init
    
    Please choose the operation: 
       2: Load system code then write to Flash via TFTP. 
       3: Boot system code via Flash (default).
       9: Load Boot Loader code then write to Flash via TFTP. 
                                                                                                                               0 
       
    3: System Boot system code via Flash.
    ## Booting image at bc050000 ...
       Image Name:   Linux Kernel Image
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1359398 Bytes =  1.3 MB
       Load Address: 80000000
       Entry Point:  8000c110
       Verifying Checksum ... OK
       Uncompressing Kernel Image ... OK
    
    Starting kernel ...
    
    
    LINUX started...
    
     THIS IS ASIC
    init started: BusyBox v1.13.3 (2017-06-21 11:21:37 CST)
    starting pid 714, tty '/dev/console': '/sbin/config_init'
    mknod: /dev/ttyS0: File exists
    mknod: /dev/ttyS1: File exists
    Config Init version: 1.10.000.48 date: 2017/06/21
    Sun Jan  1 00:00:00 UTC 2017
    mount: can't find /sys in /etc/fstab or /etc/mtab
    ln: /lib/./modules: File exists
    switch reg write offset=2004, value=ff0003
    switch reg write offset=2104, value=ff0003
    switch reg write offset=2204, value=ff0003
    switch reg write offset=2304, value=ff0003
    switch reg write offset=2404, value=ff0003
    switch reg write offset=2504, value=ff0003
    switch reg write offset=2010, value=810000c0
    switch reg write offset=2110, value=810000c0
    switch reg write offset=2210, value=810000c0
    switch reg write offset=2310, value=810000c0
    switch reg write offset=2410, value=810000c0
    switch reg write offset=2510, value=810000c0
    switch reg write offset=2610, value=81000000
    switch reg write offset=2710, value=81000000
    switch reg write offset=2604, value=20ff0003
    switch reg write offset=2704, value=20ff0003
    switch reg write offset=2014, value=10001
    switch reg write offset=2114, value=10001
    switch reg write offset=2214, value=10001
    switch reg write offset=2314, value=10001
    switch reg write offset=2414, value=10002
    switch reg write offset=2514, value=10001
    REG_ESW_WT_MAC_ATC is 0x7ff0002
    done.
    Checking [/dev/mtdblock5] .... Matched.
    Checking [/apps/appscore.sqsh] .... Matched.
    starting pid 815, tty '/dev/ttyS1': '/sbin/config_term'
    ************************************************************************
    *                                WN-G300R3                             *
    ************************************************************************
    
    KernelApp/Ramdisk Ver:1.10.000.48                        Date:2017/06/21
    password: Application Ver:1.10.000.48            Date:2017/06/21
    
    cmd [mkdir -p /appscore]
    cmd [cp /apps/appscore.sqsh /appscore.sqsh]
    cmd [mount -o loop -t squashfs -r /appscore.sqsh /appscore]
    cmd [test -d /appscore/sbin && ln -sf /appscore/sbin/* /sbin]
    cmd [test -f /appscore/sbin/httpd && ln -sf /appscore/sbin/httpd /sbin/httpsd]
    cmd [test -d /appscore/lib && ln -sf /appscore/lib/* /lib]
    cmd [rm -rf /lib/modules/2.6.36]
    cmd [mkdir -p /lib/modules/2.6.36/kernel]
    cmd [ln -s /apps/lib/modules/2.6.36/kernel/* /lib/modules/2.6.36/kernel]
    cmd [cp /apps/lib/modules/2.6.36/modules.* /lib/modules/2.6.36/]
    cmd [ln -s /apps/sbin/* /sbin]
    ln: /sbin/apps_init: File exists
    ln: /sbin/factory_apps_init: File exists
    ln: /sbin/opmode.sh: File exists
    cmd [rm /sbin/utelnetd]
    cmd [ls /apps/bin/* 1>/dev/null 2>/dev/null && ln -s /apps/bin/* /bin]
    cmd [ls /apps/usr/sbin/* 1>/dev/null 2>/dev/null && ln -s /apps/usr/sbin/* /usr/sbin]
    cmd [ls /apps/usr/bin/* 1>/dev/null 2>/dev/null && ln -s /apps/usr/bin/* /usr/bin]
    cmd [ls /apps/usr/local/* 1>/dev/null 2>/dev/null && ln -s /apps/usr/local/* /usr/local]
    cmd [ls /apps/usr/lib/* 1>/dev/null 2>/dev/null && ln -s /apps/usr/lib/* /usr/lib]
    cmd [mkdir -p /etc/udhcpc]
    cmd [ln -s /apps/etc/udhcpc/* /etc/udhcpc]
    cmd [mkdir -p /usr/lib/tc]
    cmd [ls /apps/usr/lib/tc/* 1>/dev/null 2>/dev/null && ln -s /apps/usr/lib/tc/* /usr/lib/tc]
    cmd [ln -s /apps/etc/xml /etc/xml]
    cmd [/sbin/apcfg_init]
    createShareMem keyid 7001 shmId 0
    Set Str value fail but len not in 1 to 32
    checkpApCfg i=28 [ap2ssid]
    Set Str value fail but len not in 1 to 32
    checkpApCfg i=46 [ap3ssid]
    Set Schedule value fail due to wrong value uid
    checkpApCfg i=585 [sys_ver_manual_sch]
    Set Int value 0 but not in rage 1000 to 50000
    checkpApCfg i=693 [wan2_dl_bw]
    Set Int value 0 but not in rage 1000 to 50000
    checkpApCfg i=709 [wan2_ul_bw]
    checkpApCfg error!!
    cmd [/sbin/sysconfd -dddd &]
    cmd [mkdir -p /mnt/sysconfd]
    cmd [ln -s /mnt/sysconfd /var/sysconfd]
    MSGQ_GETID: Cannot get message queue for key[fwmanager]!
    MSGQ_CREATE: create message queue for key[fwmanager], msgQ Id 0
    CTRL_INTERFACE:[/var/sysconfd_if]  CTRL_INTERFACE_IF:[if0]
    
    System Monitoring
    cmd [apcfgClid &]
    cmd [/sbin/sysconf_cli -t 60 sysinit]
    *********************************************************************
    Initializing system environment
    Setting up /tmp directory ...
    cmd [chmod 777 /tmp]
    Setting up loopback device ...
    cmd [ifconfig lo up 127.0.0.1 netmask 255.0.0.0]
    ***************************************************
    System is in    AP Router Mode [0]
    ***************************************************
    SEM_GETID got id -1
    cmd [sysctl -w net.ipv4.netfilter.ip_conntrack_max=10000]
    net.ipv4.netfilter.ip_conntrack_max = 10000
    cmd [sysctl -w net.ipv4.netfilter.ip_conntrack_icmp_timeout=10]
    net.ipv4.netfilter.ip_conntrack_icmp_timeout = 10
    cmd [sysctl -w net.ipv4.netfilter.ip_conntrack_udp_timeout=180]
    net.ipv4.netfilter.ip_conntrack_udp_timeout = 180
    cmd [sysctl -w net.ipv4.netfilter.ip_conntrack_udp_timeout_stream=180]
    net.ipv4.netfilter.ip_conntrack_udp_timeout_stream = 180
    cmd [sysctl -w net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=600]
    net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 600
    cmd [sysctl -w kernel.shmmax=3145728]
    kernel.shmmax = 3145728
    cmd [sysctl -w vm.dirty_expire_centisecs=100]
    vm.dirty_expire_centisecs = 100
    cmd [sysctl -w vm.dirty_background_ratio=1]
    vm.dirty_background_ratio = 1
    cmd [sysctl -w vm.dirty_expire_centisecs=300]
    vm.dirty_expire_centisecs = 300
    cmd [sysctl -w vm.dirty_ratio=10]
    vm.dirty_ratio = 10
    cmd [sysctl -w vm.vfs_cache_pressure=150]
    vm.vfs_cache_pressure = 150
    cmd [sysctl -w vm.min_free_kbytes=1024]
    vm.min_free_kbytes = 1024
    cmd [sysctl -w vm.overcommit_memory=0]
    vm.overcommit_memory = 0
    cmd [sysctl -w vm.swappiness=0]
    vm.swappiness = 0
    cmd [sysctl -w fs.file-max=2048]
    fs.file-max = 2048
    cmd [sysctl -w vm.panic_on_oom=1]
    vm.panic_on_oom = 1
    cmd [sysctl -w kernel.panic=3]
    kernel.panic = 3
    Mac: 0, rtcTime:1483228801
    cmd [echo 1483228801 > /dev/urandom]
    cmd [dmesg |grep "CPU feqenuce" > /var/cpumhz]
    sh: dmesg: not found
    Open file err: /var/cpumhz!
    Starting system logging daemon ...cmd [echo JST-9 > /etc/TZ]
    cmd [date -s 2009.1.1-0:0:0]
    Thu Jan  1 00:00:00 JST 2009
    cmd [echo JST-9 > /etc/TZ]
    cmd [logserver -d]
    connect: No such file or directory
    -----> LOG : TIME, Daylight saving status: Disable
    -----> LOG : TIME, Local time=2009/01/01 00:00:00
    cmd [/sbin/klogd]
    sh: /sbin/klogd: not found
    cmd [/sbin/logserver &]
    cmd [/sbin/syslogd -k 0 -R 192.168.0.250]
    cmd [/sbin/logserver -t "Start Log Message Service!" ]
    /tmp/log_tmp open error!
    -----> LOG : SYS, Application Version: 1.10
    OK
    cmd [rm -rf /lib/raeth.ko]
    Setting up Ethernet devices ...
    cmd [/sbin/ifconfig eth2 down]
    cmd [/sbin/ifconfig eth2 hw ether 34:76:C5:A7:D1:F4 
    ]
    cmd [/sbin/ifconfig eth2 up]
    cmd [vconfig add eth2 1]
    cmd [vconfig add eth2 2]
    cmd [/sbin/ifconfig eth2.1 down]
    cmd [/sbin/ifconfig eth2.1 hw ether 34:76:C5:A7:D1:F4 
    ]
    cmd [/sbin/ifconfig eth2.1 up]
    cmd [/sbin/ifconfig eth2.2 down]
    cmd [/sbin/ifconfig eth2.2 hw ether 34:76:C5:A7:D1:F5 
    ]
    cmd [/sbin/ifconfig eth2.2 up]
    cmd [ifconfig eth2.1 0.0.0.0]
    cmd [ifconfig eth2.2 0.0.0.0]
    cmd [mii_mgr -s -p 20 -r 14 -v 0x0065 ]
    Set: phy[20].reg[14] = 0065
    OK
    Configuring Bridge device ...          -----> LOG : BR, start
    cmd [brctl addbr br0]
    cmd [/sbin/ifconfig br0 down]
    cmd [/sbin/ifconfig br0 hw ether 34:76:C5:A7:D1:F4 
    ]
    cmd [/sbin/ifconfig br0 up]
    cmd [brctl setfd br0 0.1]
    cmd [brctl setbridgeprio br0 32768]
    OK
    Setting the host&domain name ...Finished.
    Configuring net ...          cmd [sysctl -p /etc/sysctl.conf]
    net.ipv4.neigh.default.proxy_qlen = 96
    net.ipv4.neigh.default.unres_qlen = 6
    net.ipv4.ip_local_port_range = 32768 65535
    net.ipv4.tcp_timestamps = 0
    net.ipv4.tcp_sack = 0
    net.ipv4.tcp_window_scaling = 0
    net.ipv4.tcp_rmem = 1048576 1048576 1048576
    net.ipv4.tcp_wmem = 1048576 1048576 1048576
    net.ipv4.tcp_mem = 1048576 1048576 1048576
    net.ipv4.tcp_ecn = 0
    net.ipv4.tcp_reordering = 3
    net.ipv4.tcp_fack = 0
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.icmp_ignore_bogus_error_responses = 1
    net.ipv4.icmp_echo_ignore_all = 0
    net.ipv4.tcp_max_syn_backlog = 2048
    net.ipv4.tcp_syncookies = 1
    net.ipv4.tcp_fin_timeout = 30
    net.ipv4.tcp_retries2 = 15
    net.ipv4.tcp_retries1 = 3
    net.ipv4.tcp_rfc1337 = 1
    net.ipv4.tcp_keepalive_time = 3600
    net.ipv4.tcp_synack_retries = 5
    net.ipv4.tcp_syn_retries = 5
    net.core.somaxconn = 512
    net.core.netdev_max_backlog = 1024
    net.core.dev_weight = 64
    net.core.optmem_max = 1048576
    net.core.rmem_default = 1048576
    net.core.wmem_default = 1048576
    net.core.rmem_max = 1048576
    net.core.wmem_max = 1048576
    cmd [echo 0 > /proc/sys/net/ipv4/conf/br0/rp_filter]
    OK
    cmd [mkdir -p /etc/ipv4ll]
    cmd [ln -s /apps/etc/ipv4ll/* /etc/ipv4ll/.]
    Configuring LAN device ...          -----> LOG : LAN, start
    -----> LOG : LAN, IP address=192.168.0.1
    cmd [/sbin/ifconfig br0 down]
    cmd [/sbin/ifconfig eth2.1 0.0.0.0 up]
    cmd [brctl addif br0 eth2.1]
    cmd [/sbin/ifconfig br0 192.168.0.1 netmask 255.255.255.0]
    cmd [brctl stp br0 0]
    cmd [route add -net 239.0.0.0 netmask 255.0.0.0 br0]
    OK
    cmd [mkdir -p /etc/Wireless/RT2860]
    [WlanOpenWithoutOpenINIC 1407] (0 0)ra0 /mnt/wps_sta_status
    [WlanOpenWithoutOpenINIC 1407] (0 1) 
    [WlanOpenWithoutOpenINIC 1407] (0 2) 
    [WlanOpenWithoutOpenINIC 1407] (0 3)apcli0 /tmp/wps_status
    getRegularDomain,1
    cmd [ifconfig ra2 down]
    ifconfig: SIOCGIFFLAGS: No such device
    cmd [ifconfig ra1 down]
    ifconfig: SIOCGIFFLAGS: No such device
    cmd [ifconfig ra0 down]
    ifconfig: SIOCGIFFLAGS: No such device
    Configuring RT28XX device ...Wlan is in AP Mode
    cmd [insmod /lib/rt2860v2_ap.ko]
    -----> LOG : WLAN[2.4G], CountryRegion = 1
    -----> LOG : WLAN[2.4G], Channel = AutoSelect
    cmd [ifconfig ra0 0.0.0.0 up]
    cmd [ifconfig ra1 0.0.0.0 up]
    cmd [iwpriv ra0 set RadioOn=0]
    cmd [brctl addif br0 ra0]
    cmd [brctl addif br0 ra1]
    cmd [mkdir -p /etc/wsc_xml]
    cmd [ln -s /apps/etc/xml/* /etc/wsc_xml]
    -----> LOG : UPnP, start
    cmd [route add -net 239.0.0.0 netmask 255.0.0.0 br0]
    route: SIOCADDRT: File exists
    cmd [wscd -i ra0 -m 1 -w /etc/wsc_xml -a 192.168.0.1&]
    cmd [iwpriv ra0 set IgmpSnEnable=0]
    sh: wscd: not found
    cmd [iwpriv ra1 set IgmpSnEnable=0]
    cmd [rm -f /etc/Wireless/RT2860/version]
    cmd [touch /etc/Wireless/RT2860/version]
    cmd [echo 2.7.2.0 > /etc/Wireless/RT2860/version]
    cmd [iwpriv ra0 set RadioOn=1]
    cmd [iwpriv ra0 set WscConfMode=7]
    cmd [echo BSF 0 > /proc/netpktconfig/config_interface]
    sh: can't create /proc/netpktconfig/config_interface: nonexistent directory
    cmd [ln -s /apps/usr/sbin/pppd /usr/sbin/pppd0]
    cmd [ln -s /apps/usr/sbin/pppd /usr/sbin/pppd1]
    Wan Manager...
    Configuring WAN device[WAN0] ...
    Connect to ISP using PPPoE ... -----> LOG : WAN, start PPPoE mode
    cmd [chmod 755 /etc/ppp/pap-secrets]
    cmd [chmod 755 /etc/ppp/chap-secrets]
    cmd [chmod 755 /etc/ppp/options.tty0]
    cmd [chmod 0755 /etc/wanconn0.conf]
    cmd [ifconfig eth2.2 hw ether 34:76:C5:A7:D1:F5 0.0.0.0   up]
    -----> LOG : WAN, No PHY Link
    No PHY Link
    cmd [/sbin/wanmanager &]
    -----> LOG : DNS, start DNS Proxy
    Set Domain Routing for FLET'S Square Connection...            
    failed to read /etc/wanconn1.conf
    Failed to load /etc/wanconn1.conf
    Starting DNS Proxy ...            cmd [/sbin/dnsmasq -C /etc/dnsmasq.conf -i br0 -k &]
    OK
    -----> LOG : DHCP, start DHCP Server
    Starting DHCP(udhcpd) server ...            cmd [udhcpd &]
    udhcpd (v1.7.5) started
    Unable to open /etc/udhcpd.leases for reading
    OK
    Starting FW manager ...           cmd [/sbin/fwmanager&]
    OK
    cmd [echo JST-9 > /etc/TZ]
    Starting ntpclient ...            
    -----> LOG : NTP, start NTP Client
    Setup tc for QoS ... Disabled
    
    SCHEDULE, ServiceWlanLowRateInit ...service_index[0].
    
    SCHEDULE, ServiceWlsRadioOffInit ...service_index[1].
    cmd [iwpriv ra0 set RadioOn=1]
    fwmMsgqId is 0
    === Firmware Manager start === 
    -----> LOG : SCHEDULE, 2.4G Wireless Radio On
    
    SCHEDULE, ServiceLedOffInit ...service_index[2].
    -----> LOG : SCHEDULE, LED On
    cmd [gpio -c 9 1]
    cmd [iwpriv ra0 set LedOff=0]
    
    SCHEDULE, ServiceLanOffInit ...service_index[3].
    -----> LOG : SCHEDULE, Set LAN Interface Up
    cmd [mii_mgr -s -p 0 -r 0 -v 3100]
    Set: phy[0].reg[0] = 3100
    cmd [mii_mgr -s -p 1 -r 0 -v 3100]
    Set: phy[1].reg[0] = 3100
    cmd [mii_mgr -s -p 2 -r 0 -v 3100]
    Set: phy[2].reg[0] = 3100
    cmd [mii_mgr -s -p 3 -r 0 -v 3100]
    Set: phy[3].reg[0] = 3100
    
    SCHEDULE, ServiceWanOffInit ...service_index[4].
    -----> LOG : SCHEDULE, Set WAN Interface Up
    cmd [mii_mgr -s -p 4 -r 0 -v 3100]
    Set: phy[4].reg[0] = 3100
    
    SCHEDULE, ServicePowerLedInit ...service_index[5].
    
    
    Schedule starting  [scheduleOpen], ...wait result..
    Schedule result :[Disable (No rules)]. 
    -----> LOG : NET, start NAT
    -----> LOG : NET, start Firewall
    Configuring network routing and filtering ...FCMD[iptables --flush]
    FCMD[iptables -t nat --flush]
    FCMD[iptables -t mangle --flush]
    FCMD[iptables -A INPUT -i lo -j ACCEPT]
    FCMD[iptables -A OUTPUT -o lo -j ACCEPT]
    FCMD[iptables --policy INPUT DROP]
    FCMD[iptables --policy OUTPUT DROP]
    FCMD[iptables --policy FORWARD DROP]
    FCMD[iptables -t nat --policy PREROUTING ACCEPT]
    FCMD[iptables -t nat --policy OUTPUT ACCEPT]
    FCMD[iptables -t nat --policy POSTROUTING ACCEPT]
    FCMD[iptables -t mangle --policy PREROUTING ACCEPT]
    FCMD[iptables -t mangle --policy POSTROUTING ACCEPT]
    FCMD[iptables -t mangle --policy OUTPUT ACCEPT]
    FCMD[iptables --delete-chain]
    FCMD[iptables -t nat --delete-chain]
    FCMD[iptables -t mangle --delete-chain]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ALL NONE -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ALL NONE -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ALL ALL -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags SYN,RST SYN,RST -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN,RST -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags FIN,RST FIN,RST -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags FIN,RST FIN,RST -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ACK,FIN FIN -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ACK,FIN FIN -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ACK,PSH PSH -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ACK,PSH PSH -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ACK,URG URG -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ACK,URG URG -j DROP]
    FCMD[iptables -N synflood]
    FCMD[iptables -A synflood -p tcp --syn -m limit --limit 20/s --limit-burst 20 -j RETURN]
    FCMD[iptables -A synflood -p tcp -j REJECT --reject-with tcp-reset]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp -m state --state NEW -j synflood]
    FCMD[iptables -t filter -N urlfilter]
    FCMD[iptables -t nat -A PREROUTING -i br0 -p tcp -d 192.168.0.1 --dport 8080 -j DROP]
    FCMD[iptables -t nat -A PREROUTING -i br0 -p tcp --sport 1024:65535 -d 192.168.0.1 --dport 80 -j DNAT --to-destination 192.168.0.1:8080]
    FCMD[iptables -t nat -A PREROUTING -i br0 -p tcp --sport 1024:65535 ! -d 192.168.0.1 --dport 80 -j DNAT --to-destination 192.168.0.1:10404]
    FCMD[iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT]
    FCMD[iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT]
    FCMD[iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT]
    FCMD[iptables -A INPUT -s 192.168.0.1 -j DROP]
    FCMD[iptables -A FORWARD -s 192.168.0.1 -j DROP]
    FCMD[iptables -A OUTPUT -o br0 ! -s 192.168.0.1 -j DROP]
    FCMD[iptables -A INPUT -i br0 -p udp --dport 1900 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p tcp --dport 2869 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -d 0.0.0.0 -j DROP]
    FCMD[iptables -A INPUT   -d 224.0.0.0/4 -j ACCEPT]
    FCMD[iptables -A FORWARD -d 224.0.0.0/4 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -s 239.0.0.0/8 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -d 239.0.0.0/8 -j ACCEPT]
    FCMD[iptables -A OUTPUT -o br0 -p udp -s 0.0.0.0 --sport 67 -d 255.255.255.255 --dport 68 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p tcp --dport 53 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p udp --dport 53 -j ACCEPT]
    FCMD[iptables -A OUTPUT -o eth2.2 -p udp --dport 53 -j ACCEPT]
    FCMD[iptables -A OUTPUT -o eth2.2 -p tcp --dport 53 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p udp --dport 69 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p udp -s 192.168.0.0/255.255.255.0 --dport 123 -j ACCEPT]
    FCMD[iptables -A INPUT --fragment -p icmp -j DROP]
    FCMD[iptables -A OUTPUT --fragment -p icmp -j DROP]
    FCMD[iptables -A FORWARD --fragment -p icmp -j DROP]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type source-quench -j ACCEPT]
    FCMD[iptables -A FORWARD -p icmp --icmp-type source-quench -j ACCEPT]
    FCMD[iptables -A INPUT -p icmp --icmp-type parameter-problem -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type parameter-problem -j ACCEPT]
    FCMD[iptables -A FORWARD -p icmp --icmp-type parameter-problem -j ACCEPT]
    FCMD[iptables -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT]
    FCMD[iptables -A OUTPUT -o br0 -p icmp --icmp-type destination-unreachable -d 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A FORWARD -o br0 -p icmp --icmp-type destination-unreachable -d 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type fragmentation-needed -j ACCEPT]
    FCMD[iptables -A FORWARD -p icmp --icmp-type fragmentation-needed -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type destination-unreachable -j DROP]
    FCMD[iptables -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT]
    FCMD[iptables -A FORWARD -o br0 -p icmp --icmp-type time-exceeded -d 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type echo-request -m state --state NEW -j ACCEPT]
    FCMD[iptables -N bad-ping]
    FCMD[iptables -A bad-ping -p icmp --icmp-type echo-request -m limit --limit 20/s --limit-burst 20 -j ACCEPT]
    FCMD[iptables -A bad-ping -p icmp --icmp-type echo-request -j DROP]
    FCMD[iptables -A INPUT -i br0 -p icmp --icmp-type echo-request -j bad-ping]
    FCMD[iptables -A OUTPUT -o br0 -s 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A FORWARD -i br0 -o br0 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -j ACCEPT]
    FCMD[/sbin/ifconfig eth2.1 up]
    FCMD[/sbin/ifconfig ra0 up]
    FCMD[echo 1 > /proc/sys/net/ipv4/ip_forward]
    FCMD[echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter]
    FCMD[echo 15 > /proc/sys/net/ipv4/route/gc_interval]
    FCMD[echo 1 > /proc/sys/net/ipv4/ip_dynaddr]
    FCMD[echo 1 > /proc/sys/net/ipv4/conf/eth2.2/arp_filter]
    cmd [sh /var/sysconfd/iptables.sh]
    OK
    cmd [cp /apps/etc/ethertypes /etc/ethertypes]
    Configuring Bridge filtering ...cmd [sh /var/sysconfd/ebtables.sh]
    OK
    Starting SiteBlock server ...            
    Netpacket Filter Open ....              sysGetKernelInfo: netv :1.0
    Kernel netpkt ver netv: 1.0
    cmd [insmod /lib/netpktfilter.ko]
    cmd [echo lan-add eth2.1 > /proc/netpktconfig/config_interface]
    cmd [echo lan-add ra2 > /proc/netpktconfig/config_interface]
    cmd [echo lan-add ra1 > /proc/netpktconfig/config_interface]
    cmd [echo lan-add ra0 > /proc/netpktconfig/config_interface]
    cmd [echo BSF 0 > /proc/netpktconfig/config_interface]
    cmd [echo wlan-add ra2 > /proc/netpktconfig/config_interface]
    cmd [echo wlan-add ra1 > /proc/netpktconfig/config_interface]
    cmd [echo wlan-add ra0 > /proc/netpktconfig/config_interface]
    cmd [echo wan-add eth2.2 > /proc/netpktconfig/config_interface]
    cmd [echo pppoe 0 > /proc/netpktconfig/config_interface]
    cmd [echo ipv6 1 > /proc/netpktconfig/config_interface]
    cmd [echo lan-ip c0a80001 > /proc/netpktconfig/config_interface]
    cmd [echo ratectrl 1 > /proc/netpktconfig/config_interface]
    cmd [echo ratemax 2667 > /proc/netpktconfig/config_interface]
    OK
    Starting UPNPD  ...  -----> LOG : UPnP, Start
    cmd [uuidgen -m 3476c5a7d1f4]
    WAN Speed = 10 Mbps
    cmd [route add -net 239.0.0.0 netmask 255.0.0.0 br0]
    route: SIOCADDRT: File exists
    cmd [mkdir -p /etc/linuxigd]
    cmd [ln -sf /apps/etc/linuxigd/* /etc/linuxigd/.]
    cmd [upnpd -f  ppp0 br0&]
    FAILED
    -----> LOG : HTTP, start
    cmd [ httpd&]
    Starting DDNS  ...  Disabled
    Starting netbios daemon ...  cmd [netbiosd airport 192.168.0.1 &]
    cmd [route add -net 224.0.0.0 netmask 224.0.0.0 br0]
    cmd [llmnrd airport 192.168.0.1&]
    OK
    cmd [echo WN-G300R3 > /etc/hostname]
    cmd [echo "iface br0 static" > /etc/network/interfaces]
    cmd [echo -540 > /etc/gmoffset]
    cmd [HDLFind -c /etc/HDLFind.conf]
    Starting llmnrd....
    rf_data=0xc22
    cmd [route add -net 224.0.0.0 netmask 224.0.0.0 br0]
    route: SIOCADDRT: File exists
    cmd [HDLQC -c /etc/HDLQC.conf]
    Starting Watchdog ...            cmd [watchdog &]
    Initialization has completed
    cmd [date > /var/sysconfd_start_time]
    *We used 8.830000 seconds to initialize all modules*
    cmd [/sbin/processmanager &]
    cmd [/sbin/rmgmt &]
    pSEM_GETID got id 65538
    cmd [/etc/rc.d/rc.local &]
    [RMGMT DBG] RMGMT_VERSION: 3.45.34
    cmd [kill -SIGUSR2 1469]
    *** PROCESS MANAGER Starts ***
    Processmanager update modules
    Reload WAN: ppp0 ...
    Close WAN: ppp0 ...
    -----> LOG : WAN, stop PPPoE mode
    cmd [/sbin/wanmanager -m stop0]
    cmd [/sbin/wanmanager -m stop1]
    cmd [ifconfig eth2.2   0.0.0.0   up]
    Configuring WAN device[WAN0] ...
    Connect to ISP using PPPoE ... -----> LOG : WAN, start PPPoE mode
    cmd [chmod 755 /etc/ppp/pap-secrets]
    cmd [chmod 755 /etc/ppp/chap-secrets]
    cmd [chmod 755 /etc/ppp/options.tty0]
    cmd [chmod 0755 /etc/wanconn0.conf]
    cmd [ifconfig eth2.2   0.0.0.0   up]
    cmd [/sbin/wanmanager -m reload0]
    Sending ACK to 192.168.0.2
    -----> LOG : WAN, No PHY Link
    No PHY Link
    Phy(eth2.2) link disconnected ...Wait for link recover
    Restarting Iptables ....-----> LOG : NET, stop NAT
    -----> LOG : NET, stop Firewall
    Clean iptable...cmd [iptables --flush]
    cmd [iptables -t nat --flush]
    cmd [iptables -t mangle --flush]
    cmd [iptables --policy INPUT   ACCEPT]
    cmd [iptables --policy OUTPUT  ACCEPT]
    cmd [iptables --policy FORWARD ACCEPT]
    OK
    -----> LOG : NET, start NAT
    -----> LOG : NET, start Firewall
    Configuring network routing and filtering ...FCMD[iptables --flush]
    FCMD[iptables -t nat --flush]
    FCMD[iptables -t mangle --flush]
    FCMD[iptables -A INPUT -i lo -j ACCEPT]
    FCMD[iptables -A OUTPUT -o lo -j ACCEPT]
    FCMD[iptables --policy INPUT DROP]
    FCMD[iptables --policy OUTPUT DROP]
    FCMD[iptables --policy FORWARD DROP]
    FCMD[iptables -t nat --policy PREROUTING ACCEPT]
    FCMD[iptables -t nat --policy OUTPUT ACCEPT]
    FCMD[iptables -t nat --policy POSTROUTING ACCEPT]
    FCMD[iptables -t mangle --policy PREROUTING ACCEPT]
    FCMD[iptables -t mangle --policy POSTROUTING ACCEPT]
    FCMD[iptables -t mangle --policy OUTPUT ACCEPT]
    FCMD[iptables --delete-chain]
    FCMD[iptables -t nat --delete-chain]
    FCMD[iptables -t mangle --delete-chain]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ALL NONE -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ALL NONE -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ALL ALL -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags SYN,RST SYN,RST -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN,RST -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags FIN,RST FIN,RST -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags FIN,RST FIN,RST -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ACK,FIN FIN -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ACK,FIN FIN -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ACK,PSH PSH -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ACK,PSH PSH -j DROP]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp --tcp-flags ACK,URG URG -j DROP]
    FCMD[iptables -A FORWARD -p tcp --tcp-flags ACK,URG URG -j DROP]
    FCMD[iptables -N synflood]
    FCMD[iptables -A synflood -p tcp --syn -m limit --limit 20/s --limit-burst 20 -j RETURN]
    FCMD[iptables -A synflood -p tcp -j REJECT --reject-with tcp-reset]
    FCMD[iptables -A INPUT  ! -i br0  -p tcp -m state --state NEW -j synflood]
    FCMD[iptables -t filter -N urlfilter]
    FCMD[iptables -t nat -A PREROUTING -i br0 -p tcp -d 192.168.0.1 --dport 8080 -j DROP]
    FCMD[iptables -t nat -A PREROUTING -i br0 -p tcp --sport 1024:65535 -d 192.168.0.1 --dport 80 -j DNAT --to-destination 192.168.0.1:8080]
    FCMD[iptables -t nat -A PREROUTING -i br0 -p tcp --sport 1024:65535 ! -d 192.168.0.1 --dport 80 -j DNAT --to-destination 192.168.0.1:10404]
    FCMD[iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT]
    FCMD[iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT]
    FCMD[iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT]
    FCMD[iptables -A INPUT -s 192.168.0.1 -j DROP]
    FCMD[iptables -A FORWARD -s 192.168.0.1 -j DROP]
    FCMD[iptables -A OUTPUT -o br0 ! -s 192.168.0.1 -j DROP]
    FCMD[iptables -A INPUT -i br0 -p udp --dport 1900 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p tcp --dport 2869 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -d 0.0.0.0 -j DROP]
    FCMD[iptables -A INPUT   -d 224.0.0.0/4 -j ACCEPT]
    FCMD[iptables -A FORWARD -d 224.0.0.0/4 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -s 239.0.0.0/8 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -d 239.0.0.0/8 -j ACCEPT]
    FCMD[iptables -A OUTPUT -o br0 -p udp -s 0.0.0.0 --sport 67 -d 255.255.255.255 --dport 68 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p tcp --dport 53 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p udp --dport 53 -j ACCEPT]
    FCMD[iptables -A OUTPUT -o eth2.2 -p udp --dport 53 -j ACCEPT]
    FCMD[iptables -A OUTPUT -o eth2.2 -p tcp --dport 53 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p udp --dport 69 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -p udp -s 192.168.0.0/255.255.255.0 --dport 123 -j ACCEPT]
    FCMD[iptables -A INPUT --fragment -p icmp -j DROP]
    FCMD[iptables -A OUTPUT --fragment -p icmp -j DROP]
    FCMD[iptables -A FORWARD --fragment -p icmp -j DROP]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type source-quench -j ACCEPT]
    FCMD[iptables -A FORWARD -p icmp --icmp-type source-quench -j ACCEPT]
    FCMD[iptables -A INPUT -p icmp --icmp-type parameter-problem -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type parameter-problem -j ACCEPT]
    FCMD[iptables -A FORWARD -p icmp --icmp-type parameter-problem -j ACCEPT]
    FCMD[iptables -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT]
    FCMD[iptables -A OUTPUT -o br0 -p icmp --icmp-type destination-unreachable -d 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A FORWARD -o br0 -p icmp --icmp-type destination-unreachable -d 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type fragmentation-needed -j ACCEPT]
    FCMD[iptables -A FORWARD -p icmp --icmp-type fragmentation-needed -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type destination-unreachable -j DROP]
    FCMD[iptables -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT]
    FCMD[iptables -A FORWARD -o br0 -p icmp --icmp-type time-exceeded -d 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A OUTPUT -p icmp --icmp-type echo-request -m state --state NEW -j ACCEPT]
    FCMD[iptables -N bad-ping]
    FCMD[iptables -A bad-ping -p icmp --icmp-type echo-request -m limit --limit 20/s --limit-burst 20 -j ACCEPT]
    FCMD[iptables -A bad-ping -p icmp --icmp-type echo-request -j DROP]
    FCMD[iptables -A INPUT -i br0 -p icmp --icmp-type echo-request -j bad-ping]
    FCMD[iptables -A OUTPUT -o br0 -s 192.168.0.1 -j ACCEPT]
    FCMD[iptables -A FORWARD -i br0 -o br0 -j ACCEPT]
    FCMD[iptables -A INPUT -i br0 -j ACCEPT]
    FCMD[/sbin/ifconfig eth2.1 up]
    FCMD[/sbin/ifconfig ra0 up]
    FCMD[echo 1 > /proc/sys/net/ipv4/ip_forward]
    FCMD[echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter]
    FCMD[echo 15 > /proc/sys/net/ipv4/route/gc_interval]
    FCMD[echo 1 > /proc/sys/net/ipv4/ip_dynaddr]
    FCMD[echo 1 > /proc/sys/net/ipv4/conf/eth2.2/arp_filter]
    cmd [sh /var/sysconfd/iptables.sh]
    OK
    OK
    Reloading dnsProxy ...            Stopping DNS Proxy ...            Err: read_to_buf failed to open file /proc/1647/status!
    Err: read_to_buf failed to open file /proc/1648/status!
    OK
    -----> LOG : DNS, start DNS Proxy
    Set Domain Routing for FLET'S Square Connection...            
    Starting DNS Proxy ...            cmd [/sbin/dnsmasq -C /etc/dnsmasq.conf -i br0 -k &]
    OK
    cmd [kill -SIGUSR1 1469]
    Processmanager update modules
    

広告