Closed thisdk closed 1 year ago
You do not need both DNAT and SNAT for client. Client uses SNAT where server uses DNAT.
Run tcpdump
and capture what client sends out to determine where the handshake went wrong.
Check this out: https://www.vinoca.org/openwrtpei-zhi-tou-ming-dai-li/ It worked for me.
First of all, thanks to the developers for developing such a great project. I encountered some problems when using
The server uses archlinux, and IP forwarding has been turned on
The following is the configuration of phantun & wireguard
The above configuration, I have verified the feasibility through another server. Setting the agent through wget can also download the file smoothly
here comes the problem
My openwrt version is 21.02, using iptables
Because the router has many network interfaces, br-lan eth0 pppoe-wan wan
And my pppoe dial-up network, the operator returns an internal network IP, no public network IP
So the iptables statement I execute in the router is
But phantun keeps prompting timeout and unable to connect
I tried to replace the network interface in the iptables statement and couldn't connect
So How can I use it under the openwrt router, how to configure iptables