Add Support for IPV6 and Arbitrary Server Address
Add IPV6 support for Apple Devices Note: Works in GUI not CLI Adds Support for Arbitrary Server Address
This commit is contained in:
parent
cca5999214
commit
cade672806
20 changed files with 276 additions and 56 deletions
25
Makefile
25
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
tun_num := $(shell ifconfig | awk -F 'utun|[: ]' '/utun[0-9]/ {print $$2}' | tail -n 1)
|
||||
tun := $(shell ifconfig -l | sed 's/ /\n/g' | grep utun | tail -n 1)
|
||||
cargo_console := RUST_BACKTRACE=1 RUST_LOG=debug RUSTFLAGS='--cfg tokio_unstable' cargo run --all-features
|
||||
cargo_norm := RUST_BACKTRACE=1 RUST_LOG=debug cargo run
|
||||
|
||||
|
|
@ -19,15 +19,28 @@ start:
|
|||
|
||||
test-dns:
|
||||
@sudo route delete 8.8.8.8
|
||||
@sudo route add 8.8.8.8 -interface utun$(tun_num)
|
||||
@sudo route add 8.8.8.8 -interface $(tun)
|
||||
@dig @8.8.8.8 hackclub.com
|
||||
|
||||
test-https:
|
||||
@sudo route delete 193.183.0.162
|
||||
@sudo route add 193.183.0.162 -interface utun$(tun_num)
|
||||
@sudo route add 193.183.0.162 -interface $(tun)
|
||||
@curl -vv https://search.marginalia.nu
|
||||
|
||||
v4_target := 146.190.62.39
|
||||
test-http:
|
||||
@sudo route delete 146.190.62.39
|
||||
@sudo route add 146.190.62.39 -interface utun$(tun_num)
|
||||
@curl -vv 146.190.62.39:80
|
||||
@sudo route delete ${v4_target}
|
||||
@sudo route add ${v4_target} -interface $(tun)
|
||||
@curl -vv ${v4_target}:80
|
||||
|
||||
test-ipv4:
|
||||
@sudo route delete ${v4_target}
|
||||
@sudo route add ${v4_target} -interface $(tun)
|
||||
@ping ${v4_target}
|
||||
|
||||
v6_target := 2001:4860:4860::8888
|
||||
test-ipv6:
|
||||
@sudo route delete ${v6_target}
|
||||
@sudo route -n add -inet6 ${v6_target} -interface $(tun)
|
||||
@echo preparing
|
||||
@sudo ping6 -v ${v6_target}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue