Giter VIP home page Giter VIP logo

udpsocksify's Introduction

How does it work?

And here's how: three rules are created in iptables on the router

Let our router have two addresses: 192.168.1.1 and 192.168.2.1
Socks5 server has address 192.168.2.4
Then the rules for clients will be:

iptables -t raw -A PREROUTING -s xxx.xxx.xxx.xxx -p udp -j NFQUEUE --queue-num xx
iptables -t raw -A PREROUTING -s 192.168.2.4 -d 192.168.2.1 -p udp -j NFQUEUE --queue-num xx
iptables -t mangle -A POSTROUTING -s xxx.xxx.xxx.xxx -d 192.168.2.4 -p udp -j NFQUEUE --queue-num xx

As a result, all udp packets from the specified hosts that match the address mask xxx.xxx.xxx.xxx will be forwarded through the SOCKS5 server to the destination address.

Naturally, the raw table must be activated in the kernel settings ... For some reason, it does not work in other tables.

The soxifier is launched with the following command:

udps-static -q xx. If it is necessary to run in daemon mode, but the -D option is added.

The udps.conf file is located in the /opt/udps/ directory


requires:
kernel >= 2.6.14
iptables >= 1.3.4
libnetfilter_queue >= 0.0.10
libconfig >= ?

udpsocksify's People

Contributors

dlebedev avatar akibsayyed avatar

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.