Hi i have a wlan link to my home from work. The ip range at work is 192.168.0.x, and i have set my range to 192.168.4.x. How can i access a computer located on the 192.168.0.x range. I want to access 192.168.0.51 and 192.168.0.101. My pc at home is set to 192.168.4.4.
Hi,
If both the IP Network is configured on a single router, You can easily access it.
Just ping the Remote IP,If geting Reply, Than nothing wrong with that.
I think this depends on which address is on which NIC. Since 192.168 addresses are generally non-routable, you may have to set up special rules. In my case, I have a LAN at 192.168.50.x/24, and a WAN at 216.223.x.y/29, but have to administer a wireless bridge/link on my WAN side that is at 192.168.200.1 and 192.168.200.2. To do this, I simply set up a NAT rule that takes a specific 192.168.50.200 LAN address (have to set my PC to that) that forwards to the WAN at 192.168.200.3 (so I’m on local WAN subnet). You have to add the 192.168.200.x/24 address to the WAN NIC as well.
/ ip address
add address=192.168.50.254/24 network=192.168.50.0 broadcast=192.168.50.255 \
interface=LAN1 comment="" disabled=no
add address=192.168.200.3/24 network=192.168.200.0 broadcast=192.168.200.255 \
interface=WAN comment="" disabled=no
then add the NAT rules:
/ ip firewall nat
add chain=dstnat dst-address=192.168.200.3 action=dst-nat \
to-addresses=192.168.50.200 to-ports=0-65535 comment="" disabled=no
add chain=srcnat src-address=192.168.50.200 action=src-nat \
to-addresses=192.168.200.3 to-ports=0-65535 comment="" disabled=no
This works only for the specified LAN address, not all machines on the LAN. That allows only one machine (me - admin) to access the wireless bridges on the WAN side. You can force other rules like MAC address to ensure only you can get from LAN to WAN with a local 192.168.x.x address.
Of course, if you set your PC to any other LAN address, access to the WAN side is not available.
Now, if both addresses are on the LAN side, I think you can just add the addresses (range) to the LAN nic (?)
Hope that helps.
Steve
thanx