LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Routing / IPTables question (https://www.linuxquestions.org/questions/linux-newbie-8/routing-iptables-question-4175499741/)

kaiyoti 03-27-2014 09:50 PM

Routing / IPTables question
 
I'm having trouble trying to understand iptables and linux routes.

I've gotten as far as doing iptables port forwards and routing specific ips to another network.

Say I have LAN A (192.168.1.0/24), one of the clients in this LAN has openvpn connection to an external server (192.168.100.0/24). Say the external client is currently connected as 192.168.100.2, and the LAN A client who's connected to openvpn is 192.168.100.1

I want other clients in 192.168.1.0/24 to be able to connect to 192.168.100.2 by ip, how do I do this? I routed 192.168.1.0 to 192.168.100.1, but I'm not sure where to go from there. Traceroute of 192.168.100.2 from other clients in LAN A shows it does get routed to 192.168.100.1 but does not get a response. What should I be doing on 192.168.100.1?

Ser Olmy 03-28-2014 01:04 AM

I'm not sure I quite understand what you wish to accomplish.

Do you have a client, "X", on the 192.168.1.0/24 LAN connected to 192.168.100.0/24 via OpenVPN, and would like other clients on the 192.168.1.0/24 network to use X's OpenVPN tunnel to reach the 192.168.100.0/24 network?


All times are GMT -5. The time now is 10:36 AM.