gogodroid--android 上的IPV6工具

系统需求是 Android 1.6以上的系统,已经root,能够执行modprobe命令(在终端里输入modprobe,如果显示了帮助便可以),内核支持ipv6

和tun(一般情况下基于CM的所有第三方系统都可以)。应用程序安装后需要200K左右的空间。

若提示“您当前使用的设备不支持TUN,请在项目主页上了解详细信息。”则需要下载相应的 kun.ko 文件,TUN.ko Installer

(http://m.163.com/android/software/31h2ui.html)可以帮助下载到 kun.ko 文件

把 kun.ko 复制到/dev/tun/中,要么使用 insmod 命令加载  kun.ko ,不过每次开机都需要这么操作一次、

超级终端使用 connectbot ( http://code.google.com/p/connectbot/

默认的配置文件在 /data/data/com.googlecode.gogodroid/files/gogoc.conf

可修改 GogoDroid.smali 文件来定义这些

更多的参考 https://code.google.com/p/gogodroid/

附gogoc.conf的配置说明

NAME
     gogoc.conf -- gogoCLIENT Configuration File

SYNOPSIS
     The gogoCLIENT gogoc(8) is a client program which enables a host to query
     a tunnel server to establish a tunnel between the host and the server
     using the TSP protocol. The gogoc configuration file contains information
     that is read by gogoc(8) for specific details regarding the server and
     the tunnel to be established.

FILE FORMAT
     This file is designed to be human readable and may be edited with any
     text editor. The file consists of tokens and values, which are separated
     by the equal sign. Each "Token=Value" pair must be on their own line.

The different configuration directives(or options) are grouped in the
     following sections:

BASIC CONFIGURATION
     userid    The userid is used for authentication with the server. The TSP
               protocol supports both anonymous and authenticated tunnels.
               Refer to the server policies for supported modes and related
               Services, as well as for how to register your user name. The
               syntax to use is given below:

userid=user_name

This variable is MANDATORY if you are using an authenticated
               tunnel. Leave empty if you are using anonymous access.

passwd    passwd=your_password

Leave empty if you are using anonymous access.

server    Name and port number of the tunnel server. This variable is
               used to specify the gogoSERVER to be queried. An IPv4 or IPv6
               address or FQDN (Fully Qualified Domain Name) can be used. The
               port number is optional. The default TSP port is 3653.

server=host[:port]

server=broker.freenet6.net

server=192.168.1.1:3653

This variable is MANDATORY.

auth_method
               The tunnel negotiation authentication method. If you are using
               anonymous access, enter `anonymous' here. Otherwise, choose one
               of the following authentication methods: any|digest-
               md5|passdss-3des-1|plain

anonymous sends no username or password.

any is the preferred one. The most secure mechanism common to
               the client and the broker will be used.

digest-md5 sends the username in clear text, but not the
               password.

passdss-3des-1 sends the username in clear text, but not the
               password.

plain sends both username and password in clear text.

Default: any

ROUTER CONFIGURATION
     host_type
               Set the value of this directive to `router' to configure the
               machine as a router. By doing so, you will be given a prefix to
               advertise on a local interface.

host_type=host|router

Default: host

prefixlen
               prefixlen specifies the required prefix length for the
               gogoCLIENT network. Valid values range from 0 to 64; however,
               values are usually between 48 and 64.

Default: 64

if_prefix
               if_prefix is the name of the OS interface that will be
               configured with the first /64 of the received prefix from the
               broker. The router advertisement daemon is started to advertise
               this prefix on the if_prefix interface.

dns_server
               This directive specifies the DNS servers that should be used
               for reverse DNS delegation of the prefix allocated.

Syntax is:

dns_server=fqdn[:fqdn]...

For example, to set ns1.example.net and ns2.example.net as
               authoritative DNS servers for reverse DNS of the prefix, this
               line would be used in gogoc.conf:

dns_server=ns1.example.net:ns2.example.net

NOTE: Never use an IP address as a DNS server name.

ADVANCED CONFIGURATION
     tunnel_mode
               The tunnel encapsulation mode. It can take the following
               values:

v6anyv4 This mode lets the broker determine whether or not the
               gogoCLIENT is behind a NAT. The broker will then inform the
               gogoCLIENT which tunnel mode to use: v6v4 or v6udpv4.

v6v4 Explicitly requests an IPv6-in-IPv4 tunnel.

v6udpv4 Explicitly requests an IPv6-in-UDP-IPv4 tunnel (for
               clients behind a NAT).  This type of tunnel is supported under
               Linux, FreeBSD and Windows.

v4v6 Explicitly requests an IPv4-in-IPv6 tunnel (for dual-stack
               transition mechanism).

Default: v6anyv4

auto_retry_connect
               This directive is used when a keepalive timeout or similar
               error occurred, resulting in a loss of connectivity with the
               tunnel endpoint. If you wish the gogoCLIENT to re-establish
               connectivity with tunnel endpoint when such an error occurs,
               set this variable to `yes'.

auto_retry_connect=yes|no

Default: yes

retry_delay
               The retry_delay directive is used to set the number of seconds
               to sleep before reattempting to establish a tunnel with the
               gogoSERVER. It will retry until it succeeds, unless you have
               set the auto_retry_connect variable to `no'.

Default: 30

keepalive
               keepalive indicates that this client will send keepalive
               packets to maintain tunnel activity and detect inactive tunnels
               (if no response is received from the server). This directive
               must be set to `yes' when using v6udpv4 tunnels to keep the NAT
               entry active.

keepalive=yes|no

Default: yes

keepalive_interval
               The keepalive_interval is a suggestion from the gogoCLIENT to
               the broker for the interval to wait between sending keepalive
               messages. The broker may impose a different interval value to
               the client if the suggested value is too low.

keepalive_interval=30

Default: 30

if_tunnel_v6v4
               The logical interface name that will be used for the configured
               tunnel (IPv6 over IPv4). The syntax is:

if_tunnel_v6v4=name

Under *BSD: gif0

Under Linux: sit0

Under Windows: 2

This variable is MANDATORY.

if_tunnel_v6udpv4
               The logical interface name that will be used for v6udpv4
               tunnels (IPv6 over UDPv4). The syntax is:

if_tunnel_v6udpv4=name

Under FreeBSD: tun1

Under Linux: tun

Under Windows: tunv6

if_tunnel_v4v6
               The logical interface name that will be used for v4v6 tunnels
               (IPv4 over IPv6).  The syntax is:

if_tunnel_v4v6=name

gogoc_dir
               The directory where the gogoCLIENT program is installed.
               Binaries, manual pages, this configuration file and templates
               are all located in this directory.  This variable may resemble
               the following:

gogoc_dir=/usr/local/gogoc

This variable is MANDATORY.

template  This directive indicates which configuration template must be
               used when configuring the tunnel. The configuration template is
               a script file, located in the template directory of the
               package, that contains the system commands to be executed for
               tunnel setup. The directives are passed to the script file as
               environment variables. The template directive is normally set
               when the package is built for the specific operating system.
               View the contents of the template directory to learn which ones
               are available. The template name must be the file name without
               the .sh or .cmd suffix.

template=linux

This variable is MANDATORY.

proxy_client
               The proxy_client directive indicates that this client acts as a
               TSP proxy for a remote client tunnel endpoint machine. It is
               set to `yes' if the machine running the gogoCLIENT requests a
               tunnel for another machine. (e.g.: cisco template).  This
               directive must be used in conjunction with a static IPv4
               address assigned to the client_v4 variable.

NOTE: proxy_client=yes is incompatible with tunnel_mode=v6udpv4

Default: no

client_v4
               The IPv4 address of the client tunnel endpoint. If the host has
               more than one IPv4 address, it is recommended to manually set
               this variable with its local IPv4 address as the value. If set
               to auto, it chooses the source IP address used when
               communicating with the server. This variable may resemble the
               following:

client_v4=auto|a.b.c.d

Default: auto

client_v6
               This directive is similar te client_v4, except that this one is
               for users that have enabled IPv4 in IPv6 encapsulation (i.e.,
               DSTM).

client_v6=auto|XX:XX::XX:XX

Default: auto

broker_list
               The 'broker_list' directive specifies the name of the file
               where the broker list received during broker redirection will
               be saved.

Default: tsp-broker-list.txt

last_server
               The 'last_server' directive specifies the name of the file
               where the address of the last broker to which a connection was
               successfully established will be saved.

Default: tsp-last-server.txt

always_use_same_server
               The value of the 'always_use_same_server' directive determines
               whether the client should always try to connect to the broker
               specified by the 'last_server' directive (if any).

Default: no

LOGGING CONFIGURATION
     log_file  This directive is used to specify the quantity of information
               that will be logged to the file. Values range inclusively from
               0 (no logging) to 3 (full logging).

Default: 0

log_stderr
               This directive is used to specify the quantity of information
               that will be logged to the standard error device. Values range
               inclusively from 0 (no logging) to 3 (full logging).

Default: 1

log_console
               This directive is used to specify the quantity of information
               that will be logged to the console. Values range inclusively
               from 0 (no logging) to 3 (full logging).

Default: 0

log_syslog
               This directive is used to specify the quantity of information
               that will be logged to the syslog. Values range inclusively
               from 0 (no logging) to 3 (full logging).

Default: 0

log_filename
               When logging to file is requested via the 'log_file' directive,
               the name and path of the file to use may be specified using the
               'log_filename' directive.

log_filename=[/path/to/the/]file

Default: gogoc.log

log_rotation
               When logging to file is requested via the 'log_file' directive,
               log file rotation may be enabled using the 'log_rotation'
               directive.

When enabled, the contents of the log file will be moved to a
               backup file just before it reaches the maximum log file size
               specified via the
                `log_rotation_size' directive.

The name of the backup file is the name of the original log
               file with `.<timestamp>' inserted before the file extension. If
               the file does not have an extension, `.<timestamp>' is appended
               to the name of the original log file. The timestamp specifies
               when the rotation occurred.

After the contents of the log file have been moved to the
               backup file, the original file is cleared, and logging resumes
               at the beginning of the file.

log_rotation=yes|no

Default: yes

log_rotation_size
               The `log_rotation_size' directive specifies the maximum size a
               log file may reach before rotation occurs (if rotation has been
               enabled via the `log_rotation' directive).

The value is expressed in kilobytes.

log_rotation_size=16|32|128|1024

Default value: 32

log_rotation_delete
               The `log_rotation_delete' directive specifies that the log file
               will be recycled on rotation. No backup log files will be kept.
               (if rotation has been enabled via the 'log_rotation'
               directive).

log_rotation_delete=yes|no

Default: no

syslog_facility
               When logging to syslog is requested using the `log' directive,
               the facility to use may be specified using the
               `syslog_facility' directive.

Valid values are USER, and LOCAL[0-7].

syslog_facility=FACILITY

Default: USER

FILES
     <gogoc_dir>/bin/gogoc.conf
     <gogoc_dir>/bin/gogoc.conf.sample

SEE ALSO
     gogoc(8)

Freenet6 Web site: http://www.go6.net

gogo6 Web site: http://www.gogo6.com

转载于:https://www.cnblogs.com/yisuo/p/6784088.html

gogodroid--android 上的IPV6工具相关推荐

  1. android 上传头像工具类,Android开发中如何实现头像的更换与上传

    AlertDialog.Builder builder = new AlertDialog.Builder(Main2Activity.this); builder.setTitle("添加 ...

  2. android 上传头像工具类,android 圆角头像工具类

    看看相关文章, [支持圆形.圆角矩形.带边框的自定View]:https://github.com/msandroid/MultiShapeView import android.content.Co ...

  3. 经验总结---编译出可以在Android上执行的可执行文件

    作为一手包揽Ubuntu和Android设备的初级开发者,我不止一次地尝试把这两个同是用Linux内核的操作系统统一起来--让Ubuntu下的可执行程序能够在Android设备上运行.于是我不止一次地 ...

  4. 长微博android,Android 上最强大的长微博工具:BlackLight 长微博

    手机端的长微博工具屈指可数,Android 上的更是寥寥无几.除却官方客户端那不太像样的长微博功能之外,能够将长文字转换成图片的恐怕就只有锤子便签和 Smooth 了.BlackLight 作为新晋的 ...

  5. android上调试H5小工具

    由于android上,部分网页报错,网页直接调试是看不到的或者显示不够具体,此app方便H5开发人员,查看具体错误打印.并未做到分步调试. 而部分类似格式错误,IOS上,由于本身的严谨性可能会反而不报 ...

  6. android类似于ios剪切框图片,不必羡慕 iOS,Android 上也有这些好用的截图处理工具...

    原标题:不必羡慕 iOS,Android 上也有这些好用的截图处理工具 在截图编辑和 GIF 制作方面,iOS 平台有诸多独占且优秀的应用可以使用,例如利用 Picsew 截图拼接.Annotable ...

  7. Android上的C/C++语言开发工具--simpleC开源

    介绍 simpleC是Android上的C/C++语言开发工具,可以编辑并编译C/C++代码,并支持代码高亮显示,头文件和常用函数自动补全,代码自动缩进,编辑器文本大小缩放,快速注释/取消注释代码,编 ...

  8. 基于Android系统的IPv6网络接入分析

                                                                      基于Android系统的IPv6网络接入分析 摘 要:本文深入分析了 ...

  9. Android 开发、测试工具资源汇总

    Android Tools Android SDK在线更新镜像服务器 中国科学院开源协会镜像站地址: IPV4/IPV6: http://mirrors.opencas.cn 端口:80 IPV4/I ...

最新文章

  1. 日本政府用AI分配对象了!给你分一个的话,敢不敢要?
  2. python对话框机制_Chromium 新的弹窗机制以及 HTML 的 dialog 元素
  3. DBUnit使用介绍
  4. 结构型模式---适配器模式
  5. VTK修炼之道47:图形基本操作进阶_法向量计算
  6. Spring IOC 容器根据Bean 名称或者类型进行autowiring 自动依赖注入
  7. 前端学习(2781):底部tabber配置
  8. 一键解决WPS中的VBA支持库安装问题
  9. 基于Ribbon界面的MFC应用程序
  10. spring集成flyway
  11. 电脑任务栏卡死,解决办法
  12. 华北理工计算机学院官网,2019上半年华北理工大学计算机等级考试报名通知
  13. Android自定义view之网易云推荐歌单界面
  14. 相机选型焦距、距离的计算
  15. python实现第三方验证码获取_python利用第三方模块,发送短信验证码(测试案例)...
  16. CDA LEVEL 1 考试,知识点汇总《市场调研》
  17. 2020电赛经验总结+E题解题思路
  18. 解决 vue-router 升级导致的 Uncaught (in promise) NavigationDuplicated
  19. ethereumjs/ethereumjs-block-2-api
  20. cocos2dx 游戏当中的战争迷雾

热门文章

  1. **Python 复数计算会丢失虚部的问题**ComplexWarning: Casting complex values to real discards the imaginary part
  2. 中国偶氮二异丁腈市场供需动态与投资前景展望报告(新版)2022-2027年
  3. 【企业微信】JS-SDK引入实现向企微群聊发送图文消息
  4. 常用设计模式系列(十)—装饰者模式
  5. 【数据分析】python基础必修3—条件语句/运算符/真假值/循环/算法练习
  6. 职场遭遇“小人”,你如何应对?
  7. Excel文件 实用操作小技巧
  8. java实现三角螺旋阵
  9. 智慧之战——农民工大战博士后
  10. 欧姆龙NX1P2编程学习(1)-编写功能块注意事项