![]() ![]() It advertises itself as the first hop, when doing a traceroute from any machine to the Internet - on either net.Ī traceroute from My computer to lets say Google will show something like: In order to help with the troubleshooting I can inform that the Raspberry 4 acts as a DHCP server for both my subnets. Or do I need to be a bit more explicit about the direction of ip packages? Is it enough to just add two rules to iptables on the raspberry 4 like: iptables -t nat -A PREROUTING -d 192.168.10.0/24 -j NETMAP -to 192.168.1.0/24 ![]() That way it appears at least from my routers point of view that all hosts on the network belongs to the same subnet, since the address pool of 192.168.0.0/23 is from 192.168.0.0 to 192.168.1.255. That gave me the idea to implement a 1:1 NAT on my Raspberry 4, where all ip adresses from the 192.168.10.x/24 range gets translated into 192.168.1.x/24 range. What I want is to be able to connect to the Internet from Raspberry 3, but also being able connect from My Computer to the Raspberry 3 or any other device on the other subnet. and it does not even know what a IPv6 address looks like! (No kidding!) I have a very basic router to the Internet. I am trying to learn a bit about NAT translations in Linux, but I havent seen any proof-of-concept that was boiled down to as basic as possible. ![]()
0 Comments
Leave a Reply. |