2
0
Fork 0
This repository has been archived on 2019-12-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ffka-querfunk/assets/zz_custom

22 lines
511 B
Text
Raw Normal View History

2015-09-25 02:24:59 +02:00
#!/bin/sh /etc/rc.common
START=99
boot() {
echo zz_custom started | logger
/bin/sleep 10
2015-11-15 05:25:24 +01:00
# route to the dmz via WAN
2015-09-25 02:24:59 +02:00
QFDMZ=212.86.210.200/29
QFGW=192.168.2.1
/sbin/ip route add $QFDMZ via $QFGW dev br-wan
2015-11-15 05:25:24 +01:00
# ipv6 fixed
/sbin/ip -6 addr add 2a03:2260:a:b::1:66/64 dev br-client
2015-09-25 02:24:59 +02:00
# 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
}