bk
Size: a a a
bk
bk
VP
AA
AA
bk
AA
bk
AA
bk
AA
bk
AA
3 chain=srcnat action=masquerade src-address=10.10.10.1?
AA
bk
AA
[admin@MikroTik] > /ip/route/print
Flags: D - DYNAMIC; A - ACTIVE; c - CONNECT, d - DHCP, y - COPY
Columns: DST-ADDRESS, GATEWAY, DISTANCE
DST-ADDRESS GATEWAY D
DAd 0.0.0.0/0 192.168.50.1 1
DAc 10.10.10.0/24 wg0 0
DAc 192.168.50.0/24 ether1 0
DAc 192.168.88.0/24 bridgeLocal 0
[admin@MikroTik] > /ip/firewall/export
# jan/27/2021 00:36:18 by RouterOS 7.1beta3
# software id = G6EI-IINF
#
# model = RB750Gr3
# serial number = CC210CC6FF74
/ip firewall address-list
add address=10.10.10.1 comment=centos-server list=host_linux
/ip firewall filter
add action=accept chain=input dst-port=80 protocol=tcp
add action=accept chain=input dst-port=8080 in-interface-list=WAN protocol=tcp
add action=accept chain=input in-interface=wg0
add action=accept chain=input dst-port=5555 in-interface-list=WAN protocol=udp
add action=accept chain=input dst-address=192.168.88.0/24 src-address-list=host_linux
/ip firewall mangle
add action=change-mss chain=forward new-mss=clamp-to-pmtu out-interface=wg0 passthrough=yes protocol=tcp tcp-flags=syn
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
add action=masquerade chain=srcnat out-interface=wg0
add action=dst-nat chain=dstnat comment="Forward 8080 to GOIP Gateway" dst-port=8080 in-interface-list=WAN protocol=tcp to-addresses=192.168.88.253 to-ports=80
add action=masquerade chain=srcnat src-address=10.10.10.1
bk
bk
add action=masquerade chain=srcnat src-address=10.10.10.1
AA
ping 192.168.88.252
PING 192.168.88.252 (192.168.88.252) 56(84) bytes of data.
From 10.10.10.1 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Required key not available
From 10.10.10.1 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Required key not available
^C
--- 192.168.88.252 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1043ms
ip ro ls
default via 95.217.105.65 dev eno1
10.10.10.0/24 dev wg0 proto kernel scope link src 10.10.10.1
XX.XX.XXX.XXX dev eno1 proto kernel scope link src XX.XX.XXX.XXX
169.254.0.0/16 dev eno1 scope link metric 1002
192.168.88.0/24 via 10.10.10.2 dev wg0