Comments (7)
是不是 udp2raw 默认生成的 iptables 规则不适用这种场景?
udp2raw生成的规则仅仅供udp2raw自己使用,udp2raw不生成任何供vpn用的iptables规则。
既然你ping 10.7.0.1已经通了,那说明你的vpn已经正常连通了。如果需要通过这条VPN上网,你需要自己添加iptables规则。可能还要改路由表,还要开启ip forward,具体内容要自己google一下。
(之前你用的L2TP没问题,是因为L2TP默认帮你把规则添加好了)
from udpspeeder.
shadowvpn + UDPSpeeder 默认 shadowvpn 规则就正常上网,套上 udp2raw 就不行了。现在不清楚是需要添加例外的规则还是程序问题,你能测试一下吗?
from udpspeeder.
你试一下在两边加上--lower-level auto
另外,你贴一下两边的iptables-save
结果。
==update==
还有贴一下,route
或ip route的结果
不清楚是需要添加例外的规则还是程序问题
都ping通了,基本可以确认不是程序问题。
openvpn/l2tp +udpspeeder+udp2raw经测试都是可以的。
另外shadowvpn+udp2raw,也有人反馈是可以的( https://www.v2ex.com/t/382261 )
from udpspeeder.
root@orangepipc:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
udp2rawDwrW_c3fb6161_C0 tcp -- SERVERIP anywhere tcp spt:36480
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ShadowVPN all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain ShadowVPN (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain udp2rawDwrW_c3fb6161_C0 (1 references)
target prot opt source destination
DROP all -- anywhere anywhere
root@orangepipc:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
ShadowVPN all -- anywhere anywhere
Chain ShadowVPN (1 references)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
root@orangepipc:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 tun0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
10.7.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
SERVERIP 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 tun0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
from udpspeeder.
加上 --lower-level auto 也不行。
shadowvpn+udp2raw 可以。
from udpspeeder.
你贴的只有一边的,把client和server两边都贴一下。
iptables -L
格式我不熟悉,请你贴一下iptables-save
的输出
route
也贴一下两边的。
另外再贴一下ifconfig
的两边输出。
两边的udp2raw和udpspeeder的命令和日志也贴一下。
==update==
shadowvpn + UDPSpeeder 默认 shadowvpn 规则就正常上网,套上 udp2raw 就不行了。
shadowvpn+udp2raw 可以。
所以shadowvpn + UDPSpeeder 和shadowvpn+udp2raw都可以,只有2个都套上以后才不可以是吗?
可能是MTU问题,尝试在shadowvpn的client和server端把mtu都改成1200.
from udpspeeder.
确实是 MTU 问题,设置为 1200 就好了。
from udpspeeder.
Related Issues (20)
- 编译了一个优化版本 HOT 7
- Add the ability to not bind() and not connect(), at least on client mode. It's UDP anyway. HOT 6
- How to configure UDPspeeder for Wireguard? HOT 4
- How to use UDPspeeder HOT 2
- 本项目能否运行在Render或Replit项目中? HOT 1
- 请问下, 有啥法子能直接转发tcp的流量? HOT 1
- could you please add some systemd auto run script? HOT 1
- Multiplexing function suggestion HOT 8
- max_conv_num max number HOT 1
- OpenVPN connection is established correctly over multi client configuration, but no ping HOT 1
- :error: -r not found" pls help me thx HOT 2
- Keep using old ipv6 address when preferred lifetime already out date HOT 4
- Udpspeeder with Shadowsocks or Socks5 possible? HOT 3
- Incomplete transfer when testing speeder using netcat HOT 7
- 用的教程里的虚拟机,如何配置开机自启? HOT 2
- When the host IP changes while running, the connection cannot be recovered automatically. HOT 2
- 是否支持UDP组播multicast
- 请问这个可以在安卓和iOS 平台集成吗? 对特定udp端口数据加速
- Add multi core support HOT 6
- udpspeeder搭配windows平台的v2rayN客户端使用失败,求解决 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from udpspeeder.