-
I set up a wireguard vpn server ( interface wg0 ) on my debian 12 laptop , the wireguard server conf is something like this:
and it worked . I can connect to this vpn server from another machine and get to the internet through the server's default internet interface enp4s0f2 . but now I want the wireguard client get to the internet through server's shadowsocks-rust local-tun ( 10.255.0.1 tun0 ), I googled a bit , modified the wireguard server conf like this:
and did some policy routing like this:
then the wireguard client failed to reach the internet . 'tcpdump -i wg0' shows nothing , 'tcpdump -i tun0' only shows this:
'192.168.1.25' is the client's lan ip . what went wrong here , anybody has any suggestion ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After one and a half year, I come back with a working setup. wg0.conf:
Add a line "200 wg" to /etc/iproute2/rt_tables. Some ip routes and rules ( you can make it a script, auto-run when you boot into the system ) :
Note: |
Beta Was this translation helpful? Give feedback.
After one and a half year, I come back with a working setup.
wg0.conf: