Page 1 of 1

Wireguard - tunnel all traffic by VPN tunnel

Posted: Mon Jun 07, 2021 11:22 pm
by Alex3comEner
Hello,

I am trying to tunnel all traffic generated by the LAN in a Hap-Lite by Wireguard

The wireguard peer connected correctly to my Ubuntu wireguard server.

I have DCHP client on the WAN and DHCP server on the LAN

I added:

/routing table add fib name=via-wg
/ip firewall mangle add action=mark-routing chain=prerouting src-address=192.168.88.254 new-routing-mark=via-wg //my local PC IP - I tried to even mark just the PC
/ip firewall nat add action=masquerade chain=srcnat out-interface=wireguard1 // my local wireguard IP
/ip route add gateway=wireguard1 routing-table=via-wg // remote wireguard IP

but it doesn't work.
I tried many other tentative but without success.
Can anyone help me with it?

I am using 7.1 beta 6
No firewall filter rules

Re: Wireguard - tunnel all traffic by VPN tunnel

Posted: Tue Jun 08, 2021 1:06 pm
by anav
Why no firewall rules?
I normally dont help those with unsafe connections to the internet.

/export hide-sensitive file=anynameyouwish

Re: Wireguard - tunnel all traffic by VPN tunnel

Posted: Tue Jun 08, 2021 8:00 pm
by Alex3comEner
Actually, I solved all.

I add a deep drop (don't worry)

Unfortunately, we find a bug. "Export command" doesn't work and it interrupted.

Re: Wireguard - tunnel all traffic by VPN tunnel

Posted: Sun Nov 07, 2021 8:32 am
by necropastor
Actually, I solved all.

I add a deep drop (don't worry)

Unfortunately, we find a bug. "Export command" doesn't work and it interrupted.
Hello!
Please tell me the solution to the issue.