Openwrt 如何创建一个TCP server

大家好,我想再openwrt下自己创建一个TCP server,用来接收连接到路由器上的其他设备client发送来的数据,我的wan口是接在上一级路由器下的,所以我想问的是,如果创建一个tcp server的话,这个server的地址是由什么决定的,eth0,br-lan, lo,如果我想设置成固定的,改怎么设置

你好,在编译openwrt时,这个问题您遇到过没有
/home/ekko/Wifi/openwrt_widora/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function ‘rsa_get_exponent’:
/home/ekko/Wifi/openwrt_widora/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:280:21: error: dereferencing pointer to incomplete type
if (BN_num_bits(key->e) > 64)
^

@ekko1 openwrt源码编译过一遍后,就会生成编译器,一般在这个位置:
staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/

@mango 你好,这个固件里面好像没有编译器,我想编译一个自己应用,可以用哪个交叉编译器

/etc/config/firewall

......
config zone
        option name             wan
        list   network          'wan'
        list   network          'wan6'
        option input            REJECT //把这里修改为ACCEPT,允许WAN端传入请求
        option output           ACCEPT
        option forward          REJECT
        option masq             1
        option mtu_fix          1

修改完后需要重启板子生效