sensepost / wiresocks Goto Github PK
View Code? Open in Web Editor NEWA sock, with a wire, so you can tunnel all you desire.
License: GNU General Public License v3.0
A sock, with a wire, so you can tunnel all you desire.
License: GNU General Public License v3.0
Hello
I tried using this and so far couldn't get it to work.
wiresocks | RTNETLINK answers: File exists
wiresocks | time="2023-01-13T04:22:41Z" level=info msg="[STACK] tun://tun0 <-> socks5://<SOCKS_IP>:46202"
wireguard | [custom-init] No custom services found, skipping...
wireguard | [migrations] started
wireguard | [migrations] no migrations found
wireguard |
wireguard | -------------------------------------
wireguard | _ ()
wireguard | | | ___ _ __
wireguard | | | / __| | | / \
wireguard | | | \__ \ | | | () |
wireguard | |_| |___/ |_| \__/
wireguard |
wireguard |
wireguard | Brought to you by linuxserver.io
wireguard | -------------------------------------
wireguard |
wireguard | To support the app dev(s) visit:
wireguard | WireGuard: https://www.wireguard.com/donations/
wireguard |
wireguard | To support LSIO projects visit:
wireguard | https://www.linuxserver.io/donate/
wireguard | -------------------------------------
wireguard | GID/UID
wireguard | -------------------------------------
wireguard |
wireguard | User uid: 1000
wireguard | User gid: 1000
wireguard | -------------------------------------
wireguard |
wireguard | Uname info: Linux 83f6520c6441 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
wireguard | **** It seems the wireguard module is already active. Skipping kernel header install and module compilation. ****
wireguard | **** As the wireguard module is already active you can remove the SYS_MODULE capability from your container run/compose. ****
wireguard | **** Server mode is selected ****
wireguard | **** External server address is set to <VPS IP> ****
wireguard | **** External server port is set to 51280. Make sure that port is properly forwarded to port 51820 inside this container ****
wireguard | **** Internal subnet is set to 10.13.13.0 ****
wireguard | **** AllowedIPs for peers 10.13.13.0/24,0.0.0.0/0 ****
wireguard | **** PEERDNS var is either not set or is set to "auto", setting peer DNS to 10.13.13.1 to use wireguard docker host's DNS. ****
wireguard | **** Server mode is selected ****
wireguard | **** No changes to parameters. Existing configs are used. ****
wireguard | [custom-init] No custom files found, skipping...
wireguard | .:53
wireguard | CoreDNS-1.10.0
wireguard | linux/amd64, go1.19.1, 596a9f9
wireguard | [#] ip link add wg0 type wireguard
wireguard | [#] wg setconf wg0 /dev/fd/63
wireguard | [#] ip -4 address add 10.13.13.1 dev wg0
wireguard | [#] ip link set mtu 1420 up dev wg0
wireguard | [#] ip -4 route add 10.13.13.2/32 dev wg0
wireguard | [#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
wireguard | [ls.io-init] done.
Hi,
I am doing some tests and getting some problems regarding the routing. To verify the setup, I am trying to route everything through the SOCKS connection.
root@wg /h/r/wiresocks (main)# cat .env
# the upstream proxy server location
#
# supports any of the uri formats in the proxy models
# docs here: https://github.com/xjasonlyu/tun2socks/wiki/Proxy-Models
PROXY_ADDRESS=socks5://192.168.178.113:48501
# target information.
#
# this is where you specify information about the remote network.
# you want to provide the subnets you want to to route to (over
# socks), and a dns server (typically a domain controller) to use
# for the internal domain.
# comma seperated list of routes to route
TARGET_ROUTES=0.0.0.0/0
TARGET_DNS_SERVER=8.8.8.8
TARGET_ROOT_DOMAIN=io
# wireguard information.
#
# this is information about where your wireguard server is
# available, how many peers would want to connect to it and
# which port to use for wireguard.
# external host where this wireguard server will be reachable
WG_HOST=192.168.178.113
# number of wireguard client (peer) configurations to generate
WG_PEERS=1
WG_UDP_PORT=51820
Then I set up a SOCKS Port via SSH (-D 48501). If I now make some curl (curl.exe ipinfo.io) from the windows machine, it uses the IP address from my ISP not the server with the SOCKS. The wireguard connection seems to work on the client. So I expect the issue on setting the routes on the Docker side.
Is there anything missing?
Can i use this with softether ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.