Community discussions

MikroTik App
 
Alex3comEner
just joined
Topic Author
Posts: 16
Joined: Wed May 12, 2021 9:57 am

Wireguard - tunnel all traffic by VPN tunnel

Mon Jun 07, 2021 11:22 pm

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
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19103
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Wireguard - tunnel all traffic by VPN tunnel

Tue Jun 08, 2021 1:06 pm

Why no firewall rules?
I normally dont help those with unsafe connections to the internet.

/export hide-sensitive file=anynameyouwish
 
Alex3comEner
just joined
Topic Author
Posts: 16
Joined: Wed May 12, 2021 9:57 am

Re: Wireguard - tunnel all traffic by VPN tunnel

Tue Jun 08, 2021 8:00 pm

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.
 
necropastor
just joined
Posts: 1
Joined: Fri Sep 08, 2017 12:47 pm

Re: Wireguard - tunnel all traffic by VPN tunnel

Sun Nov 07, 2021 8:32 am

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.

Who is online

Users browsing this forum: No registered users and 23 guests