Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 18748

General • Port forwarding over ISP with enabled full network over wireguard forwarding

$
0
0
I have a problem with port forwarding through my provider's link while my entire network is forwarded through wireguard to vpn.

In the route list it redirects all traffic using Dst. Address and gateway interface of the wireguard server, but when this is set up like this, traffic coming over the IP from my ISP is not routed correctly and the port forwarding just doesn't work.

For example: my ip from my ISP is 1.2.3.4.
route list.png
address list.png
When the route is set like this: dst=0.0.0.0/0 and gateway 1.2.3.4 then when entering the browser (after forwarding port 80 to a device inside the network), from outside the network the server responds correctly but the network is not secured after vpn, but when I change the gateway to the wireguard server interface the network is behind vpn but port forwarding does not work. The way it redirects them can be seen here:
firewall.png
I don't have too much knowledge in network configuration, but I noticed that with this configuration when the gateway is VPN, when the browser goes to the IP, the number of packets in Firewall/NAT increases, but the site still gets a timeout. I don't know what the problem is, but it looks like my network is not responding to the requesting device.

What do I configure so that my network is behind the VPN but that port forwarding using my IP from the provider works?

Statistics: Posted by durabado — Fri Jan 19, 2024 12:34 am



Viewing all articles
Browse latest Browse all 18748

Trending Articles