view contrib/quicktun.socks4a/run @ 1202:306a7562f05e draft

????????: abs <post@abslimit.info> ?? ????? master ???? ????? ????????? ? ???????????? ? ?origin/master?. ?????????, ??????? ????? ???????? ? ??????: ????? ????: db/as/49608/owner ????? ????: db/dom/ano/abslimit/owner ????? ????: db/dom/ano/netstalking/owner ????? ????: db/ip/15/0A/0B/00/cidr ????? ????: db/ip/15/0A/0B/00/owner ????? ????: db/usr/abslimit/git
author abs <abs@abslimit.info>
date Sun, 13 May 2018 14:57:04 +0300
parents c6bf58b459dd
children
line wrap: on
line source

#!/bin/sh -e

export          DEBUG='1'
export       TUN_MODE='1'
export       PROTOCOL='nacltai'
export      INTERFACE='ppp-socks'
export   REMOTE_FLOAT='1'

export    PRIVATE_KEY='0000000000000000000000000000000000000000000000000000000000000000'
export     PUBLIC_KEY='2fe57da347cd62431528daac5fbb290730fff684afc4cfc2ed90995f58cb3b74'

export  LOCAL_ADDRESS='127.0.0.1'
export     LOCAL_PORT='2998'

export REMOTE_ADDRESS='127.0.0.2'
export    REMOTE_PORT='2998'

export    DST_ADDRESS='127.0.0.3'
export       DST_PORT='2998'

export  SOCKS_ADDRESS='127.0.0.1'
export     SOCKS_PORT='9050'

(
  sleep 8
  ip addr add $LOCAL_PEER_ADDRESS peer $REMOTE_PEER_ADDRESS/32 dev $INTERFACE scope link
  ip addr add $LOCAL_ROUTER_ADDRESS/32 dev $INTERFACE scope global
  ip link set dev $INTERFACE up
  ping -c 1 -I $INTERFACE $REMOTE_PEER_ADDRESS -r -w 5 >/dev/null 2>&1
) &

exec "`pwd`"/quicktun.socks4a