You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
|
|
|
|
START=99
|
|
|
|
|
|
|
|
boot() {
|
|
|
|
echo zz_custom started | logger
|
|
|
|
|
|
|
|
# route to the dmz via WAN
|
|
|
|
QFEXT=192.168.3.0/24
|
|
|
|
QFGW=192.168.2.1
|
|
|
|
/sbin/ip route add $QFEXT via $QFGW dev br-wan
|
|
|
|
|
|
|
|
# ipv6 fixed
|
|
|
|
/sbin/ip -6 addr add 2a03:2260:a:b::1:66/64 dev br-client
|
|
|
|
|
|
|
|
# install socat to ram
|
|
|
|
/bin/sleep 30
|
|
|
|
opkg update
|
|
|
|
opkg install socat -d ram
|
|
|
|
|
|
|
|
# start stream proxy
|
|
|
|
/tmp//usr/bin/socat TCP-LISTEN:8000,reuseaddr,fork,su=nobody,pf=ip6 TCP:192.168.3.4:8000 &
|
|
|
|
|
|
|
|
echo zz_custom ended | logger
|
|
|
|
}
|