-
Notifications
You must be signed in to change notification settings - Fork 149
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 use wireguard+phantun correctly in openwrt #116
Comments
i want to know the same, |
Check this out: |
@vincascm 首先感谢帮助。
我主要是想使用phantun伪装wireguard的UDP流量,实现不限速远程访问局域网,希望你能解答一些我的疑惑,感谢。 |
@vincascm I have an internet IP and a domain that points to that IP. I can use wireguard normally, but the connection speed is not high enough due to the Internet carrier's QOS policy,so I want to use phantun to disguise TCP traffic. |
@ibeange Phantun is a tunnel, and its server and WireGuard's "server" are on the same machine. The client needs to be installed on another machine, because this special data packet requires a specific program to process. |
I am one of the earliest users of phantun and a firm supporter of her. The author also gave me very detailed and patient answers to my questions. I am very grateful and sincerely hope that this software will get better and better. . |
@xiaoun001 As a gateway, when the IP is reassigned (which could be after 7 days, depending on the ISP), it may change the NAT mapping address and indeed cause connection issues. In such cases, restarting the client is the only solution. If you can clearly describe the problem, I suggest opening a separate issue to address it. |
Indeed, very much looking forward to it. |
Finally I found a solution for my environment. My network structure:
On Ubuntu, I'm using this script to install Phantun and use firewalld to manage NAT rules. On OpenWRT, I created following firewall rules:
And add this command to
Finally I can see some network activities in a configured wireguard interface. So I think this work for me. I'm using 169.254.0.0/16 because this IP range is can't be route in internet, so you can change it for yourself. |
I've encountered my own challenges while attempting to configure Phantun + WireGuard on my OpenWrt router. Most of the resources I discovered were tailored to establishing a site-to-site VPN, rather than a full-tunnel VPN. Nevertheless, I managed to devise a working configuration and have compiled a guide to assist others in setting this up on their own. You can find my guide on GitHub Gist here. I hope anyone finds it useful. |
@RillJ Hi, the link is lost, error 404 is reported, can it be repaired, thank you |
I am a novice and I don’t know much about these things. I hope everyone can understand the English translated by Google. Thanks.
The official openwrt 21.02.5 firmware used by the two routers, the separate configuration of wireguard has successfully connected and achieved mutual access between the two LANs, but the connection cannot be successful after adding phantun.
Below is my configuration
A router's wireguard
A router's phantun
RUST_LOG=info phantun_server --local 10240 --remote 127.0.0.1:20480
B router's wireguard
B router's phantun
RUST_LOG=info phantun_client --local 127.0.0.1:20480 --remote example.com:10240
Now, how should I use the iptables command?
Or a full configuration tutorial?
Thanks again
The text was updated successfully, but these errors were encountered: