It is strange the script use to work fine,but after the proxy went down for a while,it don't work all the time. But the command in script section can still do it's job,and I have no idea what's going on.
description "Secure Gate Through"
# no start option as you might not want it to auto-start
# This might not be supported - you might need a: start on runlevel [3]
stop on runlevel [!2345]
# if you want it to automatically restart if it crashes, leave the next line in
respawn
script
plink -v -N proxy@12.34.96.48 -D 127.0.0.1:8580 -pw ****
end script
After start,I can see plink in ps -A,but the forwarding don't work at all.