-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on MacOSX fails #75
Comments
vim Makefile and add SHELL = /bin/bash at first line. (because default shell is "/bin/sh" in OSX terminal) |
hi. redsocks.c:154:53: error: use of undeclared identifier 'INADDR_LOOPBACK' too many errors.@realgtk ,did u ever compile redsocks successfully on mac? |
才发现你也是天朝的,我是在OSX下用搭建openwrt交叉编译成功的,可以运行在openwrt上。 |
hi. 我用brew install redsocks可以安装redsocks,不过用brew install iptables来安装iptables,提示没iptables这个包。于是试图编译之: ../include/linux/types.h:4:10: fatal error: 'asm/types.h' file not found 在google里搜索了fatal error: 'asm/types.h' file not found,始终未找到解决办法。
} redsocks {
} 搞了好久,我在mac上还是未成功编译iptables |
I'm sorry, I have no way to run tests on Mac. Is there some easy way to get root-shell at MacOSX box without buying Mac? Does Apple offer free development environment nowadays? Builds are broken at least since P.S.: I hope google translate is good enough for Chinese → English language pair :-) |
#brew修改了Makefile,使用以下配置可以在OSX下编译成功,但是OSX的核心是BSD,使用的是ipfw。问题是10.10下ipfw也被取消了,取而代之的是pfctl(暂未研究过),如果只是要翻墙的话方法很多,没必要硬在OSX下折腾。 OBJS := parser.o main.o redsocks.o log.o http-connect.o socks4.o socks5.o http-relay.o base.o base64.o md5.o http-auth.o utils.o redudp.o dnstc.o gen/version.o LIBS := -levent all: $(OUT) .PHONY: all clean distclean tags: *.c *.h $(CONF): gen/.build: base.c: $(CONF)
-include $(DEPS)
clean: distclean: clean |
Any updates here? @darkk you can run MacOS on virtual machine. Installation notice for VirtualBox http://dumpz.org/2489669/text/ |
ping on this |
|
Here is the VNC credentials encrypted with your PGP key.
|
macOS has almost original |
@darkk Make redsocks works in Mac OSX is a hard job.
|
redsocks works well with pf in mac os.but I use redsocks2 |
@kuleyang I don't think you're helping this thread. |
@RichardW42
|
@kuleyang so how do you make
as said above? |
@RichardW42 redsocks works well without splice function. in
but |
Any update on this? |
@sonywork |
* opensource-apple/xnu removed the version tags * Use the up-to-date xnu repo: apple/darwin-xnu * `v4` in pfvar.h is changed to `v4addr` darkk#75 (comment) * update macos document url
我一直在用了,用了一年多了,redsocks+v2ray/shadowsocks+dnsmasq+chinadns很稳定,支持根据国外IP或GFW列表,当时我没fork了,主要是配置PF规则 |
@sonywork ,那么怎么配置PF规则?可以详细说说吗 |
其中 2081是redsocks的透明代理端口, /etc/chinaiplist里是带!的中国IP段
en0是你正在使用的网卡接口 |
@sonywork base { redsocks { ip = 127.0.0.1; 然后,我运行 怎么解决? |
https://github.com/semigodking/redsocks
And check redsocks.conf.example |
to sony yang: include <net/pfvar.h>
1 error generated. 怎么解决这错误? |
Makefile 里面有几个文件没下载下来 |
to sony yang: yudeMacBook-Air:redsocks-by-semigodking brite$ make DISABLE_SHADOWSOCKS=true 我在redsocks-by-semigodking目录里面看了一下,没看见有生成可执行文件redsocks或redsocks2.怎么回事呢?make失败了吗 |
to sony yang: |
你哪份代码啊 你按照他的README.md来,应该不会有问题 |
hi.
yudeMacBook-Air:redsocks brite$ ls
Makefile http-auth.h reddns.c
README http-connect.c redsocks.c
README.html http-relay.c redsocks.conf.example
base.c libc-compat.h redsocks.h
base.h libevent-compat.h redsocks.service
base64.c list.h redudp.c
base64.h log.c redudp.h
config.h log.h socks4.c
debian main.c socks5.c
dnstc.c main.h socks5.h
dnstc.h md5.c tools
doc md5.h utils.c
gen parser.c utils.h
http-auth.c parser.h version.h
yudeMacBook-Air:redsocks brite$ make
.depend:1: *** missing separator. Stop.
yudeMacBook-Air:redsocks brite$
how to fix it?tks
The text was updated successfully, but these errors were encountered: