LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2014, 10:50 PM   #1
kaiyoti
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
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?
 
Old 03-28-2014, 02:04 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] IPTables/OpenVPN routing question tegryan Linux - Networking 2 12-20-2012 09:36 PM
Routing/iptables question alecm3 Linux - Networking 1 02-24-2007 08:07 AM
Iptables routing question Kvetch Linux - Security 1 07-12-2006 08:20 PM
iptables multiple subnets routing question azdruid Linux - Networking 1 06-28-2006 10:05 AM


All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration