Crashplan – Route over wlan on Linux

Background:

Have a faster internet connection over wlan0 than eth0. Prefer to route Crashplan backup traffic over wlan0 rather than the default eth0.

Challenge:

The Java GUI for Linux, doesn’t provide controls for selecting the network interface, although the Mac and Windows clients do.
Using the route command worked well for http traffic, but didn’t seem sufficient for directing Crashplan’s application traffic.

Solution:

Editing the Crashplan configuration xml files and specifically excluding the eth0 interface. A helpful utility to confirm traffic is flowing over the correct network interface is: iptraf. The exact lines to add into the configuration file, crashplan/conf/my.service.xml are below:

    <networkinterfacesexcluded>
      <patternlist>
        <windows></windows>
        <macintosh></macintosh>
        <linux>
          <pattern regex="eth0"></pattern>
        </linux>
        <solaris></solaris>
      </patternlist>
    </networkinterfacesexcluded>

Also, adding route commands seemed to help facilitate:

j@j:/etc/rc2.d$ sudo route add -net 216.17.8.0 netmask 255.255.255.0 gw <local gateway ip>
j@j:/etc/rc2.d$ sudo route add -net 38.81.66.0 netmask 255.255.255.0 gw <local gateway ip>

Leave a Reply

Your email address will not be published. Required fields are marked *

*