i have a ptp link between work and home, both are on same subnet unfortunatelly.
both devices of the ptp link are acting like routers - have masquerade configured.
this is the config on both (just the important stuff)
home SXT:
/ip address
add address=192.168.2.52/24 interface=ether1 network=192.168.2.0
add address=192.168.38.2/24 interface=wlan1 network=192.168.38.0
/ip firewall nat
add action=masquerade chain=srcnat
add action=dst-nat chain=dstnat dst-port=50000 protocol=tcp to-addresses=\
192.168.2.30 to-ports=3389
add action=dst-nat chain=dstnat dst-port=50002 protocol=tcp to-addresses=\
192.168.2.25 to-ports=3389
/ip route
add distance=1 gateway=192.168.38.1
work SXT:
/ip address
add address=192.168.2.107/24 interface=ether1 network=192.168.2.0
add address=192.168.38.1/24 interface=wlan1 network=192.168.38.0
/ip firewall nat
add action=masquerade chain=srcnat
add action=src-nat chain=srcnat src-address=192.168.2.0/24 to-addresses=\
192.168.38.2
/ip route
add distance=1 gateway=192.168.2.1
i'm unable to make this to work.
i need to RDC into a local machine on my home network (later will config the same thing for office pc).
how to config that? i'm trying to rdc into 192.168.2.107:50002 which is my internal IP of work SXT that should do port forward to the home SXT which should then port forward to my home pc.
both devices of the ptp link are acting like routers - have masquerade configured.
this is the config on both (just the important stuff)
home SXT:
/ip address
add address=192.168.2.52/24 interface=ether1 network=192.168.2.0
add address=192.168.38.2/24 interface=wlan1 network=192.168.38.0
/ip firewall nat
add action=masquerade chain=srcnat
add action=dst-nat chain=dstnat dst-port=50000 protocol=tcp to-addresses=\
192.168.2.30 to-ports=3389
add action=dst-nat chain=dstnat dst-port=50002 protocol=tcp to-addresses=\
192.168.2.25 to-ports=3389
/ip route
add distance=1 gateway=192.168.38.1
work SXT:
/ip address
add address=192.168.2.107/24 interface=ether1 network=192.168.2.0
add address=192.168.38.1/24 interface=wlan1 network=192.168.38.0
/ip firewall nat
add action=masquerade chain=srcnat
add action=src-nat chain=srcnat src-address=192.168.2.0/24 to-addresses=\
192.168.38.2
/ip route
add distance=1 gateway=192.168.2.1
i'm unable to make this to work.
i need to RDC into a local machine on my home network (later will config the same thing for office pc).
how to config that? i'm trying to rdc into 192.168.2.107:50002 which is my internal IP of work SXT that should do port forward to the home SXT which should then port forward to my home pc.
Statistics: Posted by igorr29 — Thu May 23, 2024 9:42 am