Git Product home page Git Product logo

v2box's Introduction

v2box

Migrate your v2ray configuration into sing-box.

Usage

v2box migrate -c /path/to/v2ray-config.json > config.json
v2box migrate geoip -i /path/to/geoip.dat -o geoip.db
v2box migrate geosite -i /path/to/geosite.dat -o geosite.db

TODO

  • Inbound
  • Outbound
  • Routing Rule
  • DNS
  • Convert geo resources
  • Xray support

v2box's People

Contributors

h1jk avatar nekohasekai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

v2box's Issues

the result of converting geoip aren't loaded for some geoip

i am trying to use custom geo converted with v2box, i want to use geoip telegram and geoip doh but the log from sing-box won't load it.

+0700 2023-04-29 16:29:14 INFO router: loaded geoip database: 0 codes
+0700 2023-04-29 16:29:14 INFO router: loaded geosite database: 1403 codes

i have try sing-box-geo it's load normally i guess, but geoip doh somehow aren't works for blocking lists IP address DoH/DoQ

+0700 2023-04-29 16:31:20 INFO router: loaded geoip database: 261 codes
+0700 2023-04-29 16:31:24 INFO router: loaded geosite database: 1403 codes

does sing-box support only 2 letter country code + private?

err on compiling

package github.com/sagernet/v2box/cmd/v2box
	imports github.com/sagernet/v2box/types/xrayjson
	imports github.com/xtls/xray-core/infra/conf
	imports github.com/xtls/xray-core/proxy/wireguard
	imports gvisor.dev/gvisor/pkg/bufferv2
	imports gvisor.dev/gvisor/pkg/atomicbitops
	imports gvisor.dev/gvisor/pkg/state
	imports gvisor.dev/gvisor/pkg/state/wire
	imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /home/runner/go/pkg/mod/gvisor.dev/[email protected]/pkg/gohacks
Error: Process completed with exit code 1.

Panic error raised by protobuf due to namespace conflict

input config includes only inbound, outbound and routing objects.

Command:

./v2box migrate -c input.json > output.json

Error:

panic: proto: file "common/log/log.proto" is already registered
        previously from: "github.com/v2fly/v2ray-core/v5/common/log"
        currently from:  "github.com/xtls/xray-core/common/log"
See https://protobuf.dev/reference/go/faq#namespace-conflict


goroutine 1 [running]:
google.golang.org/protobuf/reflect/protoregistry.glob..func1({0x1a70700?, 0xc000460fc0?}, {0x1a70700?, 0xc000461000})
        /home/admin/go/pkg/mod/google.golang.org/[email protected]/reflect/protoregistry/registry.go:56 +0x1ee
google.golang.org/protobuf/reflect/protoregistry.(*Files).RegisterFile(0xc000012180, {0x1a96a88?, 0xc00046da40?})
        /home/admin/go/pkg/mod/google.golang.org/[email protected]/reflect/protoregistry/registry.go:130 +0x39f
google.golang.org/protobuf/internal/filedesc.Builder.Build({{0x1496fb2, 0x24}, {0x2596d20, 0xc6, 0xc6}, 0x1, 0x0, 0x0, 0x0, {0x1a78d90, ...}, ...})
        /home/admin/go/pkg/mod/google.golang.org/[email protected]/internal/filedesc/build.go:112 +0x1d6
google.golang.org/protobuf/internal/filetype.Builder.Build({{{0x1496fb2, 0x24}, {0x2596d20, 0xc6, 0xc6}, 0x1, 0x0, 0x0, 0x0, {0x0, ...}, ...}, ...})
        /home/admin/go/pkg/mod/google.golang.org/[email protected]/internal/filetype/build.go:138 +0x1b8
github.com/xtls/xray-core/common/log.file_common_log_log_proto_init()
        /home/admin/go/pkg/mod/github.com/xtls/[email protected]/common/log/log.pb.go:138 +0x198
github.com/xtls/xray-core/common/log.init.0()
        /home/admin/go/pkg/mod/github.com/xtls/[email protected]/common/log/log.pb.go:120 +0x17

Adding `VPN Kill Switch` as a security feature

Suggest adding a VPN Kill Switch as a security feature.


PngItem_7712480 VPN Kill Switch
Once the VPN is turned on, prevent leaks by blocking traffic from going outside the VPN, including during connection loss.

PngItem_7712480 Advanced Kill Switch
Prevent leaks by blocking any traffic from going outside the VPN, even when the VPN is turned off.

PngItem_7712480 App Kill Switch
Applications to kill if a VPN connection unexpectedly drops.
๐Ÿ”˜ Google Chrome
๐Ÿ”˜ Whatsapp
๐Ÿ”˜ Bank
Add more applications


This would automatically disconnect the device from the internet if the VPN connection is lost, dropping out and reconnecting when the VPN connection is restored. Implementing this feature protects the user's public IP address from being accidentally exposed and prevents any browsing data from being sent over an unsecured internet connection.

This is particularly crucial when users are browsing sensitive domains such as online banking or trading.
Additionally, it helps avoid the IP being blocked by these types of services in case of switching IP due to the connection dropout.

Many thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.