-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
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
config interface 'wg0'
option proto 'wireguard'
option private_key 'xxx'
option listen_port '20480'
list addresses '10.0.0.10'
option mtu '1300'
config wireguard_wg0
option public_key 'xxx'
list allowed_ips '192.168.20.0/24'
list allowed_ips '10.0.0.0/24'
option route_allowed_ips '1'
option persistent_keepalive '25'
A router's phantun
RUST_LOG=info phantun_server --local 10240 --remote 127.0.0.1:20480
B router's wireguard
config interface 'wg0'
option proto 'wireguard'
option private_key 'xxx'
list addresses '10.0.0.20'
option mtu '1300'
config wireguard_wg0
option public_key 'xxx'
list allowed_ips '192.168.10.0/24'
list allowed_ips '10.0.0.0/24'
option route_allowed_ips '1'
option endpoint_host '127.0.0.1'
option endpoint_port '20480'
option persistent_keepalive '25'
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
Metadata
Metadata
Assignees
Labels
No labels