Skip to content

pexcn/transproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Transproxy

A bridge of linux and transparent proxy.

Usage

root@OpenWrt:~# transproxy --help
transproxy 0.4.3
A bridge of linux and transparent proxy.

USAGE:
    transproxy [OPTIONS]

OPTIONS:
    -t, --tcp-port       TCP transparent proxy port, support tproxy only.
    -u, --udp-port       UDP transparent proxy port, support tproxy only.
        --src-direct     Specify one or more source ip lists, outbound traffic from these ips
                         will be directly connected.
        --src-proxy      Specify one or more source ip lists, outbound traffic from these ips
                         will be pass through proxy.
        --src-normal     Specify one or more source ip lists, outbound traffic from these ips
                         will decide whether to pass through proxy according to the destination
                         ip lists.
        --dst-direct     Specify one or more destination ip lists, these ips will be directly
                         connected.
        --dst-proxy      Specify one or more destination ip lists, these ips will be pass
                         through proxy.
        --src-default    Default action for inbound traffic, available values: DIRECT, PROXY, NORMAL.
        --dst-default    Default action for outbound traffic, available values: DIRECT, PROXY.
        --self-proxy     Make local traffic pass through proxy, default as gateway only.
    -s, --server         Specify one or more ip addresses of the remote server, local and server
                         traffic will be directly connected.
    -i, --interface      Apply to specified network interface.
    -e, --extra          The specified parameters will be append to iptables.
    -m, --mark           Bypass outbound traffic with SO_MARK as specified value, it's a workaround
                         when the remote server doesn't have a static ip address.
                         [NOTE]: Not all clients support setting SO_MARK, and there may be
                         performance issues.
    -v, --verbose        Enable verbose logging.
    -f, --flush          Flush transproxy rules then exit.
    -h, --help           Show this help message then exit.

Ports

Credits

It's just a parody of the big guy's work, the design idea was derived from ss-rules by Jian Chang and Yousong Zhou, thanks for their outstanding contribution to FREEDOM!

License

Copyright (C) 2021-2023, Sing Yu Chan <pexcn97@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

A bridge of linux and transparent proxy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages