Answer the question
In order to leave comments, you need to log in
How to route a request to a different subnet?
Good afternoon. I have a Raspberry PI. An IP camera is connected to the Ethernet interface. The Raspberry is also connected to the home network via Wi-Fi. You need to access the camera from your home network.
The camera address is 192.168.1.11 and the home subnet is 192.168.0.x. Therefore, it is necessary to redirect a request like 192.168.0.11 to 192.168.1.11. Is it possible?
Answer the question
In order to leave comments, you need to log in
enable ip forwarding on raspberry: www.ithowto.ru/75-kak-vklyuchit-ip-forwarding-v-li...
on home subnet computers add route to 192.168.1.0/24 network:
route -p add 192.168.1.0 mask 255.255.255.0 192.168.0.99
, where 192.168.0.99
is the raspberry's ip address on the home network. You can give the camera an ip from the 192.168.0.0/24 subnet and enable proxy_arp on the raspberry pi xgu.ru/wiki/Proxy_ARP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question