GithubHelp home page GithubHelp logo

sensepost / wiresocks Goto Github PK

View Code? Open in Web Editor NEW
270.0 270.0 28.0 35 KB

A sock, with a wire, so you can tunnel all you desire.

License: GNU General Public License v3.0

Dockerfile 8.54% Shell 91.46%

wiresocks's People

Contributors

cablethief avatar leonjza 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wiresocks's Issues

RTNETLINK answers: File exists

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.

Traffic not getting routed through SOCKS Proxy

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?

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.