How to Set Up a Network Tunnel Between Two Subnets Using SSH?

0
4
Asked By TechWizard101 On

I'm trying to create a network interface on Host A within the 192.168.1.0/24 subnet so it can communicate with Host C through Host B using an SSH tunnel. Here's the situation: Host A is on network 1 (192.168.0.0/24) and needs access to network 2 (192.168.1.0/24). So far, I've been able to ping Host B from Host A and vice versa via the tun tunnel, using the ssh -w option. I've also set up routing on Host A to send packets intended for network 2 to Host B, which should forward them to Host C. The issue arises when Host C sends out ARP requests for Host A's IP address, and that's where the communication fails.

I've configured the firewall to allow forwarding by default, but it feels like I'm missing a small detail. The end goal is to operate high-quality video camera equipment remotely, but I need help figuring out what's going wrong in this setup.

3 Answers

Answered By NetworkNinja42 On

It seems odd that Host C is making ARP requests. Since it has a layer 3 connection to Host A, you shouldn't have to deal with ARP issues. Have you confirmed that both Host A and Host C have correct static routes set up for the respective networks? Also, are you sure that the tun interface settings are properly configured on Host B?

Answered By PacketSensei99 On

You mentioned a complex camera setup and needing a responsive connection instead of using tools like RDP or VNC. Have you thought about setting up a VPN with NAT? That could help manage the traffic and allow you to route connections back through the VPN, simplifying the process a bit. It might be more straightforward than it seems.

Answered By CodedChaos77 On

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.