---
title: "HTC HERO上运行OpenVPN"
author: "lveyo"
date: "2010-07-06T10:05:58Z"
tags: ["Android", "Google", "HTC", "HTML"]
categories: ["移动开发"]
slug: "htc-hero-openvpn"
draft: false
lastmod: "2010-07-06T10:06:28Z"
id: 706353
url: "https://lveyo.iteye.com/blog/706353"
---

在VPS上配置好OpenVPN之后，用电脑的OpenVPN GUI可以连接到OpenVPN上，于是我就想在自己的HTC G3上也试试OpenVPN，现在2.1ROM都差不多普及了，一般都提供了OpenVPN需要的tun.so库，我用的是Superhero2.0 ROM，将4个OpenVPN的config文件复制到SD卡上openvpn目录，又在Android Market里搜索了OpenVPN Setting软件安装上，运行OpenVPN Setting连接的时候失败。用Logcat看好像是没有找到ifconfig命令，GOOGLE之后找到解决方法：

> adb remount
> adb shell
> 
> su
> 
> #mount -o remount,rw /system
> 
> #ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
> 
> #ln -s /system/xbin/busybox /system/xbin/bb/route
> 
> #reboot

重启之后，就可以顺利的连接上OpenVPN了。

原文链接:<http://lveyo.info/htc-hero-openvpn.html>