All Projects → sskaje → 6in4

sskaje / 6in4

Licence: other
IPv6-in-IPv4 Tunnel Server

Programming Languages

shell
77523 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to 6in4

ngx-ip
An Angular network address component (IPv4, IPv6 and MAC)
Stars: ✭ 20 (-84.96%)
Mutual labels:  ipv6, ipv4
Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (-84.21%)
Mutual labels:  ipv6, ipv4
ipaddress
Data analysis of IP addresses and networks
Stars: ✭ 20 (-84.96%)
Mutual labels:  ipv6, ipv4
go-inet
A Go library for reading, formatting, sorting, lookup and converting IP-addresses and IP-blocks
Stars: ✭ 14 (-89.47%)
Mutual labels:  ipv6, ipv4
whereabouts
An HTTP service for mapping IPv4 and IPv6 addresses to cities, countries & continents
Stars: ✭ 16 (-87.97%)
Mutual labels:  ipv6, ipv4
treebitmap
Fast IP lookup table for IPv4/IPv6 prefixes
Stars: ✭ 81 (-39.1%)
Mutual labels:  ipv6, ipv4
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+15.79%)
Mutual labels:  ipv6, ipv4
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (-72.18%)
Mutual labels:  ipv6, ipv4
Ip
🌏根据IpV4、IpV6地址获取定位信息的PHP🐘组件 PHP components that obtain location information based on IpV4, IpV6 addresses
Stars: ✭ 23 (-82.71%)
Mutual labels:  ipv6, ipv4
Aggregator
A stand-alone class implementation of the IPv4+IPv6 IP+CIDR aggregator from CIDRAM.
Stars: ✭ 19 (-85.71%)
Mutual labels:  ipv6, ipv4
net-protocol
golang模拟内核协议栈 实现链路层、网络层、传输层、应用层 用户态协议栈 ,基于虚拟网卡TUN/TAP
Stars: ✭ 129 (-3.01%)
Mutual labels:  ipv6, ipv4
uC-TCP-IP
A compact, reliable, high-performance TCP/IP protocol stack. Features dual IPv4 and IPv6 support, an SSL/TLS socket option, and support for Ethernet, Wi-Fi, and PHY controllers.
Stars: ✭ 66 (-50.38%)
Mutual labels:  ipv6, ipv4
hphr
Halophile Router (a VyOS-based, SaltStack-automated, NetBox-configured router for small provider networks)
Stars: ✭ 39 (-70.68%)
Mutual labels:  ipv6, ipv4
ipapi-python
Python bindings for https://ipapi.co (IP Address Location) - Use with python / django / flask for IP address location lookup
Stars: ✭ 42 (-68.42%)
Mutual labels:  ipv6, ipv4
tracetrout
A magical reverse traceroute HTTP(S) server
Stars: ✭ 48 (-63.91%)
Mutual labels:  ipv6, ipv4
bacnet-stack
BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services.
Stars: ✭ 199 (+49.62%)
Mutual labels:  ipv6, ipv4
ipv6calc
ipv6calc
Stars: ✭ 33 (-75.19%)
Mutual labels:  ipv6, ipv4
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (-75.19%)
Mutual labels:  ipv6, ipv4
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+59.4%)
Mutual labels:  ipv6, ipv4
freebind
IPv4 and IPv6 address rate limiting evasion tool
Stars: ✭ 88 (-33.83%)
Mutual labels:  ipv6, ipv4

IPv6-in-IPv4 Tunnel

Author: sskaje (http://sskaje.me/)

You can set up your own tunnelbroker.net!

More to read: (http://sskaje.me/2016/01/be-your-own-tunnelbroker-net-iproute2/)

Commands

Add

Create a new tunnel, tunnel_id=1, remote ip 211.100.11.11

./bin/6to4 add 1 211.100.11.11

Update

Change remote ip to 211.100.11.12 for tunnel_id=1

./bin/6to4 update 1 211.100.11.12

Delete

Delete tunnel tunnel_id=1

./bin/6to4 del 1

Config

Config file locates at etc/config.ini

Case: You have 2400:1234:1234:1200::/56 routed to your VPS, eth0 is your internet network device.

IPV6_NETWORK

IPv6 network , must be ending with '::'

IPV6_CIDR

IPV6 CIDR, must be a multiple of 8, accepted CIDR: 8,16,24,32,40,48,56,64,72,80,88,96.

If your IPV6_CIDR is smaller than /64, assigned blocks are /64; if smaller than /48, /48 is used.

If IPV6_CIDR is greater than /64, assigned blocks are /(IPV6_CIDR + 16 [ + 8 ]), e.g.: 64->80, 72->96, 80->96

INTERFACE

Bind tunnel to device INTERFACE

BIND_IP

Bind a specific IP from $INTERFACE, this is optional, if it's not set, script reads first IP from $INTERFACE

LINK_MTU

MTU, default to 1480

Settings for http API

Add following to /etc/sudoers

php-user ALL=(ALL) NOPASSWD: /path/to/v6/bin/6to4

Add following to nginx vhost

rewrite ^/v6/(.+)$ /v6/cgi/$1 break;
location ~ ^/v6 {
    auth_basic "Username: tunnel id; Password: Secret.";
    auth_basic_user_file $document_root/v6/etc/htpasswd;

    fastcgi_split_path_info ^(.+\.php)(/.+)$;

    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi.conf;
}

Add user for tunnel id 0

htpasswd etc/htpasswd 0

Client Settings

Clients configuration on Debian

auto ss-ipv6
iface ss-ipv6 inet6 v4tunnel
        address 'Client IPv6 Address'
        netmask 80
        gateway 'Server IPv6 Address'
        endpoint 'Server IPv4 Address'
        local 0.0.0.0
        ttl 255

Update EndPoint IP

curl --silent --user 'TUNNEL_ID:PASSWORD' http://your.v6.api.domain/v6/update.php

You can also add this to your crontab or somewhere like /etc/network/if-up.d/

EOF

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].