Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-9) was last changed on 19-Jul-2021 14:52 by Ada Csaba

This page was created on 29-Dec-2020 05:25 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 2 lines
!Start a Single Tunnel
At line 14 added one line
!Start a Tunnel in Code
At line 15 changed one line
com.crushtunnel.gui.Common.trustEverything(); //ignore SSL validation issues…bad for prod use
com.crushftp.client.Common.trustEverything(); //ignore SSL validation issues…bad for prod use
At line 25 changed one line
Here is another example for installing the tunnel as a service on Windows. First, make sure you have CrushFTP installed as a service on windows. You need this as we need the "service" folder that this creates. Copy this service folder somewhere else and call it "CrushTunnel". For my example, I put this in my program files folder.
!Install as a Service on Windows for an Always on Tunnel
At line 27 changed one line
Now edit the wrapper.conf file to make it have these contents, with adjustments to the bottom part which applies to your server.
Run CrushTunnel.jar in command line client mode.\\
{{{
java -jar CrushTunnel.jar
}}}
At line 35 added one line
Now issue the service tunnel command to install as a service. The parameters are: protocol host port user pass. Example:\\
At line 30 changed 5 lines
wrapper.java.command=C:\\Program Files (x86)\\Java\\jre6\\bin\\java
wrapper.working.dir=C:\\Program Files (x86)\\CrushTunnel\\
wrapper.java.app.mainclass=com.crushtunnel.gui.GUIFrame
wrapper.console.visible=false
wrapper.console.title=CrushTunnel
service tunnel https www.CrushFTP.com 443 demo demo
}}}
At line 36 changed 3 lines
wrapper.ntservice.name=CrushTunnel
wrapper.ntservice.displayname=CrushTunnel
wrapper.ntservice.description=CrushTunnel
Your done, type "quit" to exit the CrushClient command line.
----
__Command Line JNLP Launch__\\
You could also launch a specific tunnel from the command line using Java WebStart.
At line 40 changed one line
wrapper.tray=false
{{{
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="https://www.crushftp.com">
<information>
<title>CrushTunnel</title>
<vendor>Ben Spink</vendor>
<offline-allowed/>
<shortcut online="true">
<desktop/>
</shortcut>
</information>
<security><all-permissions/></security>
<resources>
<j2se version="1.2+" /><jar href="/WebInterface/CrushTunnel.jar"/>
</resources>
<application-desc main-class="com.crushftp.tunnel2.Tunnel2">
<argument>protocol=https</argument>
<argument>host=www.crushftp.com</argument>
<argument>port=443</argument>
<argument>username=demo</argument>
<argument>password=demo</argument>
</application-desc>
</jnlp>
At line 42 removed 2 lines
wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART
At line 45 removed 7 lines
wrapper.java.classpath.1=CrushTunnel.jar
wrapper.java.additional.1=-Xmx128m
wrapper.java.additional.2=-Dcrushtunnel.remote.protocol=https
wrapper.java.additional.3=-Dcrushtunnel.remote.ip=www.crushftp.com
wrapper.java.additional.4=-Dcrushtunnel.remote.port=443
wrapper.java.additional.5=-Dcrushtunnel.remote.user=demo
wrapper.java.additional.6=-Dcrushtunnel.remote.pass=demo
At line 53 removed 12 lines
Now you can test this config from the DOS prompt, or install the service.
{{{
#test
java -jar wrapper.jar -c wrapper.conf
#install
java -jar wrapper.jar -i wrapper.conf
#remove
java -jar wrapper.jar -r wrapper.conf
}}}
(If installing the service, your DOS prompt needs to be running as an administrator.)
Version Date Modified Size Author Changes ... Change note
9 19-Jul-2021 14:52 2.675 kB Ada Csaba to previous
8 29-Dec-2020 05:25 2.675 kB Ben Spink to previous | to last
7 29-Dec-2020 05:25 3.976 kB Ben Spink to previous | to last
6 29-Dec-2020 05:25 3.14 kB Ben Spink to previous | to last
5 29-Dec-2020 05:25 3.029 kB Ben Spink to previous | to last
4 29-Dec-2020 05:25 1.309 kB Ben Spink to previous | to last
3 29-Dec-2020 05:25 1.63 kB Ben Spink to previous | to last
2 29-Dec-2020 05:25 1.629 kB Ben Spink to previous | to last
1 29-Dec-2020 05:25 1.186 kB Ben Spink to last
« This page (revision-9) was last changed on 19-Jul-2021 14:52 by Ada Csaba
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by
LeftMenu

JSPWiki