I have read numerous guides combined, but I cannot get my Mac to connect to the Crashplan plugin on FreeNAS!
I have a script on my Mac: (servicePort in ui.properties = 4200)
FYI: 192.168.1.100 is the Ip of my Macbook, and 192.168.1.3 is the IP of my Crashplan jail.
#!/bin/bash
# Port forward to FreeNAS for Crashplan plugin
SERVICE_PORT=`cat /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties | grep servicePort | egrep -v '#' | awk -F "=" '{print $2}'`
CRASHPLAN_USER="crashplan"
CRASHPLAN_JAIL=192.168.1.3
echo "Connecting on Service Port: $SERVICE_PORT"
echo "Expecting Crashplan FreeNAS Jail at: $CRASHPLAN_USER@$CRASHPLAN_JAIL"
# Connect to crashplan
ssh -L $SERVICE_PORT:127.0.0.1:4243 $CRASHPLAN_USER@$CRASHPLAN_JAIL -N
I can verify that when I run this script, the result of
lsof -i tcp | grep ^ssh
is:
ssh 11688 Jamie 3u IPv4 0xb6edbbe79e08473 0t0 TCP jamies-mbp:61437->192.168.1.3:ssh (ESTABLISHED)
ssh 11688 Jamie 6u IPv6 0xb6edbbe8bb21f03 0t0 TCP localhost:4200 (LISTEN)
ssh 11688 Jamie 7u IPv4 0xb6edbbe8bf20d7b 0t0 TCP localhost:4200 (LISTEN)
On the server, in the Crashplan jail I see this:
root@crashplan_1:/ # sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
crashplan sshd 72514 5 tcp4 192.168.1.3:22 192.168.1.100:61437
root sshd 72512 5 tcp4 192.168.1.3:22 192.168.1.100:61437
root java 8386 59 tcp4 127.0.0.1:4243 *:*
root java 8386 60 tcp4 *:4242 *:*
root java 5740 59 tcp4 127.0.0.1:4243 *:*
root java 5740 60 tcp4 *:4242 *:*
root java 5739 59 tcp4 127.0.0.1:4243 *:*
root java 5739 60 tcp4 *:4242 *:*
etc..
But when I start the Crashplan Desktop App on my Mac, it looks no different to when I started it on my Mac without being tunneled to the FreeNAS. Also, I can confirm in the Crashplan logs that it is still stuck on 3.6.3.
I'm aware of the fix listed here:
https://forums.freenas.org/index.php?threads/crashplan-3-6-3.18416/#post-101205
But im not even at that stage yet (and I verified that my run.conf looks as it should)
Any help much appreciated, I've been pulling my hair out for weeks over this!
Thank you
I have a script on my Mac: (servicePort in ui.properties = 4200)
FYI: 192.168.1.100 is the Ip of my Macbook, and 192.168.1.3 is the IP of my Crashplan jail.
#!/bin/bash
# Port forward to FreeNAS for Crashplan plugin
SERVICE_PORT=`cat /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties | grep servicePort | egrep -v '#' | awk -F "=" '{print $2}'`
CRASHPLAN_USER="crashplan"
CRASHPLAN_JAIL=192.168.1.3
echo "Connecting on Service Port: $SERVICE_PORT"
echo "Expecting Crashplan FreeNAS Jail at: $CRASHPLAN_USER@$CRASHPLAN_JAIL"
# Connect to crashplan
ssh -L $SERVICE_PORT:127.0.0.1:4243 $CRASHPLAN_USER@$CRASHPLAN_JAIL -N
I can verify that when I run this script, the result of
lsof -i tcp | grep ^ssh
is:
ssh 11688 Jamie 3u IPv4 0xb6edbbe79e08473 0t0 TCP jamies-mbp:61437->192.168.1.3:ssh (ESTABLISHED)
ssh 11688 Jamie 6u IPv6 0xb6edbbe8bb21f03 0t0 TCP localhost:4200 (LISTEN)
ssh 11688 Jamie 7u IPv4 0xb6edbbe8bf20d7b 0t0 TCP localhost:4200 (LISTEN)
On the server, in the Crashplan jail I see this:
root@crashplan_1:/ # sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
crashplan sshd 72514 5 tcp4 192.168.1.3:22 192.168.1.100:61437
root sshd 72512 5 tcp4 192.168.1.3:22 192.168.1.100:61437
root java 8386 59 tcp4 127.0.0.1:4243 *:*
root java 8386 60 tcp4 *:4242 *:*
root java 5740 59 tcp4 127.0.0.1:4243 *:*
root java 5740 60 tcp4 *:4242 *:*
root java 5739 59 tcp4 127.0.0.1:4243 *:*
root java 5739 60 tcp4 *:4242 *:*
etc..
But when I start the Crashplan Desktop App on my Mac, it looks no different to when I started it on my Mac without being tunneled to the FreeNAS. Also, I can confirm in the Crashplan logs that it is still stuck on 3.6.3.
I'm aware of the fix listed here:
https://forums.freenas.org/index.php?threads/crashplan-3-6-3.18416/#post-101205
But im not even at that stage yet (and I verified that my run.conf looks as it should)
Any help much appreciated, I've been pulling my hair out for weeks over this!
Thank you