}
private Channel openChannel(TunnelConfiguration conf) throws IOException {
try {
LocalForwardingChannel channel = new LocalForwardingChannel(conf.getDestinationHost(), conf.getDestinationPort());
vpn.getConnection().openChannel(channel);
return channel;
} catch (Exception e) {
throw new IOException("Failed to open direct-tcpip channel to " + conf.getDestinationHost() + ":" + conf.getDestinationPort());
}