Skip to content
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

how to specify TunnelPeerAddress field on mac? #6

Open
luckypoem opened this issue Mar 26, 2018 · 2 comments
Open

how to specify TunnelPeerAddress field on mac? #6

luckypoem opened this issue Mar 26, 2018 · 2 comments

Comments

@luckypoem
Copy link

hi.

yudeMacBook-Air:~ brite$ udptunnel dsnet-udptunnel-config.json
2018/03/26 11:46:37 main.go:146: required TunnelPeerAddress field must be specified on darwin
yudeMacBook-Air:~ brite$ cat dsnet-udptunnel-config.json
{
"TunnelDevice": "",
"TunnelAddress": "10.0.0.2",
"TunnelPeerAddress": "",
"NetworkAddress": "my-vps-ip:8000",
"AllowedPorts": [22]
}
yudeMacBook-Air:~ brite$

tks a lot

@dsnet
Copy link
Owner

dsnet commented Mar 26, 2018

I wouldn't exactly call an empty string as "specified".

The TunnelPeerAddress must be address of the remote endpoint. If you're using the configuration from the example, then it would be "10.0.0.1".

@luckypoem
Copy link
Author

你是中国人吗?现在我把TunnelPeerAddress的值设为了10.0.0.1 ,在mac上也能ping通10.0.0.1 ,也运行了:
sudo route add my-vps-ip 192.168.1.1
sudo route delete default
sudo route add default 10.0.0.1

在vps上,已设置net.ipv4.ip_forward=1 , iptables nat命令也运行了。udptunnel 已在运行中:
root@ar:# ps aux|grep udptunnel
root 3631 0.0 0.4 286832 4732 ? Ssl 22:51 0:00 /root/go/gopath/bin/udptunnel /root/dsnet-udptunnel-config.json
root 3699 0.0 0.0 11072 824 pts/3 S+ 23:30 0:00 grep udptunnel
root@ar:
#
但是,我在mac机器上还是翻墙失败。为什么?你这个程序不能用来翻墙的吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants