From fb284e004c749663b96c4b140bd8f4391f67efec Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 25 Sep 2015 02:24:59 +0200 Subject: [PATCH] initial git commit --- assets/zz_custom | 28 ++++++++++++++++++++++++++++ install | 12 ++++++++++++ 2 files changed, 40 insertions(+) create mode 100755 assets/zz_custom create mode 100755 install diff --git a/assets/zz_custom b/assets/zz_custom new file mode 100755 index 0000000..068625d --- /dev/null +++ b/assets/zz_custom @@ -0,0 +1,28 @@ +#!/bin/sh /etc/rc.common + +START=99 + +boot() { + echo zz_custom started | logger + /bin/sleep 10 + + # route to the vpn and to the dmz via WAN + ALBUFER0=78.46.150.244/32 + ALBUFER1=144.76.47.106/32 + QFDMZ=212.86.210.200/29 + QFGW=192.168.2.1 + /sbin/ip route add $ALBUFER0 via $QFGW dev br-wan + /sbin/ip route add $ALBUFER1 via $QFGW dev br-wan + /sbin/ip route add $QFDMZ via $QFGW dev br-wan + + # get client ip on br-client + /sbin/udhcpc -p /var/run/udhcpc-br-client.pid -i br-client -x hostname:ffka-querfunk + + # and ipv6 fixed + /sbin/ip -6 addr add 2a03:2260:a:a::1:66/64 dev br-client + + # start stream proxy + /usr/bin/socat TCP-LISTEN:8000,reuseaddr,fork,su=nobody,pf=ip6 TCP:212.86.210.204:8000 & + + echo zz_custom ended | logger +} diff --git a/install b/install new file mode 100755 index 0000000..0bb5445 --- /dev/null +++ b/install @@ -0,0 +1,12 @@ +#!/bin/sh +ffka_querfunk_mgmt=2a03:2260:a:a:ea94:f6ff:fea1:98f6 + +ssh root@$ffka_querfunk_mgmt "sh -c 'opkg update && opkg install socat'" +scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/ +ssh root@$ffka_querfunk_mgmt "/etc/init.d/zz_custom enable" + +ssh root@$ffka_querfunk_mgmt "reboot" +sleep 30 + +ffka_querfunk=2a03:2260:a:a::1:66 +ping6 -c 10 $ffka_querfunk