Giter Club home page Giter Club logo

proximac's People

Contributors

csujedihy avatar loriowar avatar sijad 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  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

proximac's Issues

Not able to start after upgrading OSX to 10.11 EI Capitan

$  proximac start -c proximac.conf 
/usr/local/proximac/proximac.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).
Kernel extension cannot be loaded! Maybe it is already loaded so you have to unload it first. Or installing third-party kext is now allowed on your OS.

为 kext 设置正确的权限

今天更新代码之后重新 kextload proximac.kext,结果出现以下提示:

/usr/local/share/proximac/proximac.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8).

一开始以为是 dev mode 的原因

sudo nvram boot-args 发现 kext-dev-mode 已经设置好了。

查了一圈,原来必须要给 kext 设置以下权限:

drwxr-xr-x 3 root wheel

chown & chmod 之后就可以 kextload 了。建议更新下使用说明。

Will Python 3 support be added?

Hi all,

Thanks for the great work here! I've been able to use ssh-based command line utils again by proximac in China.

By the way, I found that the install.py in curl -fsSL https://raw.githubusercontent.com/proximac-org/proximac-install/master/install.py |python only supports python 2 (I swapped to py 2 to install it), and proximac is also only work in py 2, will py 3 be added in future?

I'd like to contribute (not recently, maybe after May 2016) python 3 support. However, I may not be able to work fast 😄

Best,
Frank

无法后台运行

使用

 sudo proximac start -c ~/config.json &

后不会挂起,关掉 Terminal 后 Proximac 也随之关闭了

Does not work in 11.4

Log start:

Executing: /usr/bin/kmutil load -p /usr/local/proximac/proximac.kext
2021-08-16 18:01:58 INFO: Process List:
2021-08-16 18:01:58 INFO: 1. Google Chrome hash 1308122363
2021-08-16 18:01:58 INFO: Hook Succeed!
2021-08-16 18:01:58 INFO: The total number of process that will be hooked = 1
2021-08-16 18:01:58 INFO: Listening on 8558

Config file:
{
"process_name":
["Google Chrome"],
"local_port":3128,
"local_address":"127.0.0.1",
"proximac_port":8558
}

能加入udp模式吗

shadowsocks-libev支持udp,但Proximac不支持,希望加入,在Mac上玩游戏

support multiple proxys(bypass)

I think proxyapp_name is like 'bypass',sometimes i want to bypass processes for some reason

{
    "local_port":51081,
    "local_address":"127.0.0.1",
    "proximac_port":8558,
    "VPN_mode":1,
    "proxyapp_name":["ssh","ss-server","ss-local"]
}

代理只能使用127.0.0.1?

配置文件如下, local_address是可用的代理(域名)

{
    "process_name":
    ["Application Loader", "curl"],
    "local_port":14601,
    "local_address":"test.com",
    "proximac_port":8558,
}

代理curl后使用curl ip.cn -v返回如下

* Rebuilt URL to: ip.cn/
*   Trying 118.184.180.46...
* TCP_NODELAY set
* Connected to ip.cn (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: ip.cn
> User-Agent: curl/7.51.0
> Accept: */*
>
* Curl_http_done: called premature == 0
* Empty reply from server
* Connection #0 to host ip.cn left intact
curl: (52) Empty reply from server

因此我疑惑为什么把数据扔到127.0.0.1去了

impossible to go online

Hello,

I have done tests with Chrome and Mail and I do not get out on the Internet with the SOCKS proxy IPVanish.
Here is my configuration file :

{
    "process_name":
    ["Google Chrome","Mail"], 
    "local_port":1080,
    "local_address":"81.171.98.16",
    "proximac_port":8558,
    "username":"xxxxxx",
    "password":"xxxxxx"
}

My OSX version 10.11.6.

Here is an excerpt of proximac.log file:

2016-10-16 15:23:29 Warning: server_accept_cb 35005c0 12
2016-10-16 15:23:29 Warning: server_accept_cb 3600000 12
2016-10-16 15:23:29 Warning: final_after_close_cb
2016-10-16 15:23:29 Warning: final_after_close_cb
2016-10-16 15:23:29 Warning: server_accept_cb 35005c0 12
2016-10-16 15:23:29 Warning: server_accept_cb 3403dd0 12
2016-10-16 15:23:29 Warning: server_accept_cb 37000e0 12
2016-10-16 15:23:29 Warning: server_accept_cb 3700420 12
2016-10-16 15:23:29 Warning: final_after_close_cb
2016-10-16 15:23:34 Warning: server_accept_cb 3600000 12

when I run proximac :

imac-de-guillaume-reynaud:Temp guillaumereynaud$ proximac start -c config-proxymac-socks.txt -d
Password:
 2016-10-16 15:29:50 INFO: Process List:
 2016-10-16 15:29:50 INFO: 1. Google Chrome hash 1308122363
 2016-10-16 15:29:50 INFO: 2. Mail hash 2876355
 2016-10-16 15:29:50 INFO: Hook Succeed!
 2016-10-16 15:29:50 INFO: The total number of process that will be hooked = 2
 2016-10-16 15:29:50 INFO: Listening on 8558

Here are the system messages when I try to connect with proximac with Yummy FTP :

16/10/2016 15:37:40,000 kernel[0]: [Proximac]: pid hash value = 1187517675 proc_name = Yummy FTP
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: after RB_FIND pid = 1187517675 pid_num 3
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: A process is now hooked
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: pid hash value = 457067283 proc_name = kernel_task
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: notify_cb -- do hook operations to pid
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: getsockopt addrString 5.39.126.39
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: pid hash value = -1080695544 proc_name = proximac-cli
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
16/10/2016 15:37:40,000 kernel[0]: [Proximac]: Traffic from this process is not allowed to be forwarded. PID = 4016
16/10/2016 15:37:41,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
16/10/2016 15:37:42,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
16/10/2016 15:37:44,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
16/10/2016 15:38:03,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
16/10/2016 15:38:12,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
16/10/2016 15:38:12,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
16/10/2016 15:38:14,000 kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket

Error while starting the program

You get this error when you run the program:

/usr/local/proximac/proximac.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).
Kernel extension cannot be loaded! Maybe it is already loaded so you have to unload it first. Or installing third-party kext is not allowed on your OS.

macOS 10.12.6 (16G1114)

DNS Leak

  • OS X El Capitan
  • my config:
{
    "local_port":9150,
    "local_address":"127.0.0.1",
    "proximac_port":8558,
    "VPN_mode":1,
    "proxyapp_name":"tor.real"
}
  • starting:
    • 2015-10-08 21:21:35 INFO: Proxy App name is tor.real
    • 2015-10-08 21:21:35 INFO: Hook Succeed!
    • 2015-10-08 21:21:35 INFO: All traffic will be redirected to this SOCKS5 proxy
    • 2015-10-08 21:21:35 INFO: Listening on 8558

Checking my public IP:

$ curl ipecho.net/plain ; echo
OK.FOREIGN.IP.ADDRESS
$ dig +short myip.opendns.com @resolver1.opendns.com
MY.REAL.IP.ADDRESS!!!!!!!!

Maybe UDP traffic is not redirecting?

Install Error : Cannot create fodler!

I follow the install guide on README, when install ,i see following msg :

curl -fsSL https://raw.githubusercontent.com/proximac-org/proximac-install/master/install.py |python
Cannot create fodler!

env :

OS : 10.11.6 Mac Mini 2014 Late
csrutil disabled
shell : bash

Proximac may not be able to work in OSX 10.11

If you still want to use proximac, stay away from OSX 10.11 until I figure out how to solve this problem.

The kext must be signed but I do not have Apple Dev Membership to do it. It's too expensive for a non-iOS developer....

10.11.4 不能使用

已执行sudo nvram boot-args="debug=0x146 kext-dev-mode=1"
proximac start -c /Users/ss.conf [10:02:43]
/usr/local/proximac/proximac.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).
Kernel extension cannot be loaded! Maybe it is already loaded so you have to unload it first. Or installing third-party kext is not allowed on your OS.
qq:~/ $ proximac stop [10:02:45]
No matching processes belonging to you were found
Proximac may not be started or may be killed accidentally.

Nice work, some issues...

Hi, first of all, nice work! Thank you for the great app.
After i followed your instruction and start up by VPN mode, the following screenshot is the message
screen shot 2016-08-25 at 01 26 46
Is that mean it is running ok? I found my chrome still need to browser facebook or youtube by switching on the ShadowsocksX "Global Mode" or "Auto Proxy Mode".
And can it run as background?

Looking forward to your reply, cheers~

macOS Sierra compatibility?

INFO: Hook Succeed!
INFO: All traffic will be redirected to this SOCKS5 proxy
INFO: Listening on 8558

Installed, configured and started, no error messages.. but idk where the traffic is redirected to.. apps cannot connect anymore..
My proxy is working, I tested it with FoxyProxy extension in Firefox.. but all the other application using proximac cannot connect to it..

macOS 10.12.0
Enabled SIP without kext and without debug

为何提示“env: python2: No such file or directory”?

hi。

我的mac是10.10.4版。我运行了sudo nvram boot-args="debug=0x146 kext-dev-mode=1",也运行了
brew install libuv ,也运行了
curl -fsSL https://raw.githubusercontent.com/proximac-org/proximac-install/master/install.py |python,

yudeMacBook-Air:~ yuming$ ls /usr/local/bin/
VBoxAutostart autoupdate glibtoolize ras2tiff tiffcp
VBoxBalloonCtrl bmp2tiff ifnames raw2tiff tiffcrop
VBoxDTrace brew isql rdjpgcom tiffdither
VBoxHeadless ccmake iusql remake tiffdump
VBoxManage cjpeg jpegtran rgb2ycbcr tiffinfo
VBoxVRDP cmake libpng-config rscreen tiffmedian
VirtualBox cmakexbuild libpng16-config shadowvpn tiffset
aclocal cpack node slencheck tiffsplit
aclocal-1.15 ctest npm sshuttle tsocks
autoconf djpeg odbc_config stunnel vbox-img
autoheader dltest odbcinst tcptunnel vboxwebsrv
autom4te duck pal2rgb thumbnail wget
automake event_rpcgen.py png-fix-itxt tiff2bw wrjpgcom
automake-1.15 fax2ps pngfix tiff2pdf wx-config
autoreconf fax2tiff ppm2tiff tiff2ps wxrc
autoscan gif2tiff proximac tiff2rgba wxrc-3.0
autossh glibtool proxychains4 tiffcmp
yudeMacBook-Air:~ yuming$ proximac
env: python2: No such file or directory
yudeMacBook-Air:~ yuming$

如何解决?谢谢(我重启了系统,问题依旧)

Windows support?

Hello, thanks for this project. Can be compiled and used in Windows Operating System?

Unable to authenticate on socks proxy with username and pass

Env:

  • Mac OS 10.12.6
  • Socks proxy based on Dante 1.4.2 with username auth method.

Problem: unable to authenticate at proxy server. Based on logs, client offer only none method:

debug: recv_methods(): client 109.***.***.***.11561 offered 1 authentication method: 0x0 (none)

Config for proximac include all required keys for auth (username, password) and this credentials works properly in browser proxy plugin.

Without authentication all works as expected: all traffic from app sent to proxy described in proximac config.

`Cannot create fodler! ` error

I run curl -fsSL https://raw.githubusercontent.com/proximac-org/proximac-install/master/install.py |python but get 'Cannot create fodler!' error.
My mac is 10.11.5. in recovery mode, i run successful with csrutil enable --without kext --without debug, and the libuv is already installed through homebrew.

How can i solve this error? Thanks in advance.

Usage steps of README is outdated and one of them makes me confused

The first step in 10.11 should like this:
Restart -> Press COMMAND + R -> Recovery Mode -> Terminal -> csrutil enable --without kext --without debug.
("debug" is a personal choice for my other console program, I don't know whether it's essential or not.)

The fifth step should add a "-c" between "start" and the configure file path.

Your program works fine in my mac, thanks.

proximac gets attached and detached constantly

After running proximac, the console logs persistent socket attaching/detaching messages, like the following, several times a second

kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket

is this normal? OS is yosemite.

Please install libuv fisrt! -- but it iss installed!

curl -fsSL https://raw.githubusercontent.com/proximac-org/proximac-install/master/install.py | sudo python3

File "", line 5
print 'Please install libuv fisrt!\n
run "brew install libuv"'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Please install libuv fisrt!\n
run "brew install libuv"')?

not working for some programs?

my config file is like this:

20:00 ~ >>cat .proximacrc
{
"process_name":
["Spotify", "Steam", "Hacker Menu", "Twitter", "twitter", "factorio", "App store", "Alternote", "Electron"],
"local_port":1080,
"local_address":"127.0.0.1",
"proximac_port":8558,

}

For Spotify and "Hacker Menu", proximac seems to be working fine (since they don't work without socks5 where I am). But for Twitter & Steam it's not working. When I switch back to proxifier they work fine but not with proximac.
Thanks for any help in advance. I hope I can dump proxifier for good.

Make apps hang and crash

OSX Mojave 10.14.1

After hours running, Chrome plugins crashes one by one and later chrome hang. (other app similar).

After times restart chrome, some plugins shows damaged .

Why I am sure? Everything works fine after I disabled proximac.

filter的位置

你好,
看了下内核驱动,使用的是套接字的那一层的filter。
这个类似于NAT的功能是不是在ip filter那一层做更好些?或者有什么我没考虑到的,谢谢

Proximac says traffic is not allowed to be forwarded

I'm on El Capitan and has turned off SIP, but Proximac can't work, from system.log it seemed traffic is not allowed to be forwarded. PID=530 (btw, pid530 is the PID of shadowsocks local client)

Please see an excerpt of log msg below:

Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: pid hash value = -1391280205 proc_name = com.apple.WebKit
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: A process is now hooked
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: forward flag has been set to 1
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: pid hash value = 457067283 proc_name = kernel_task
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: notify_cb -- do hook operations to pid
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: getsockopt addrString 192.30.252.86
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: pid hash value = -1080695544 proc_name = proximal-cli
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: pid hash value = 457067283 proc_name = kernel_task
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: pid hash value = 651490974 proc_name = ss-local
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:39 bemike-MBP kernel[0]: [Proximac]: Traffic from this process is not allowed to be forwarded. PID = 530
Apr  6 12:44:44 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket
Apr  6 12:44:46 --- last message repeated 2 times ---
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: pid hash value = -172716775 proc_name = syncdefaultsd
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: A process is now hooked
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: forward flag has been set to 1
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: pid hash value = 457067283 proc_name = kernel_task
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: notify_cb -- do hook operations to pid
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: getsockopt addrString 17.250.120.105
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: pid hash value = -1080695544 proc_name = proximal-cli
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: pid hash value = 457067283 proc_name = kernel_task
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: pid hash value = 651490974 proc_name = ss-local
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been attached to a socket
Apr  6 12:44:46 bemike-MBP kernel[0]: [Proximac]: Traffic from this process is not allowed to be forwarded. PID = 530
Apr  6 12:44:52 bemike-MBP kernel[0]: [Proximac]: Proximac TCP filter has been detached from a socket

My conf file looks like this:

{
    "local_port":8989,
    "local_address":"127.0.0.1",
    "proximac_port":8558,
    "VPN_mode":1,
    "proxyapp_name":"ss-local"
}

Any suggestion where went wrong?

Thanks!
Michael

为什么启动时报这个错

proximac start /etc/proximac.json
Kernel extension cannot be loaded! Maybe it is already loaded so you have to unload it first. Or installing third-party kext is now allowed on your OS.

Does it support UDP?

Hi!

Thank you for making this app.

Can I probably get to know whether it supports UDP?

Thank you in advance.

Nathaniel

udp callback

正确关闭一个UDP套接字的时候,为什么udp detach callback没有被调用,你遇到过类似问题么

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.