LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2009, 09:24 AM   #1
ycats
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
OpenVPN - Can't ping from server to client side hosts.


Code:
                    +---------------+                                    +-------------+
                    |  Linksys      |                                    |  Linksys    |
                    |  Router A     |<------------ Internet ------------>|  Router B   |
                    |  192.168.10.1 |                                    | 192.168.0.1 |
                    +---------------+                                    +-------------+
                          |                                                     |                       
                          |                                                     |                       
               +----------+--------+                                 +----------+--------+              
               |                   |                                 |                   |              
               |                   |                                 |                   |              
  +---------------+   +------------------------+        +---------------+   +------------------------+
  |               |   |   Linux                |        |               |   |   Linux                |
  |     Host A    |   |   OpenVPN  A (Server)  |        |     Host B    |   |   OpenVPN  A (Client)  |
  | 192.168.10.10 |   |   eth0: 192.168.10.19  |        | 192.168.0.100 |   |   eth0: 192.168.0.150  |
  |               |   |   tun0: 10.0.1.1       |        |               |   |   tun0: 10.0.1.6       |
  +---------------+   |                        |        +---------------+   |                        |
                      +------------------------+                            +------------------------+
What I can ping
Host A -> Host B
Host B -> Host A

Host A -> Router B
Host B -> Router A

Host A -> OpenVPN B
Host B -> OpenVPN A

VPN Server -> VPN Client
VPN Client -> VPN Server


What I can't ping
VPN Server to any client side host local address
VPN Client to any server side host local address


I have searched and searched for this but can not find any answers. Why can I not ping Host B from my OpenVPN server?
 
Old 04-07-2009, 09:25 AM   #2
ycats
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
OpenVPN - Can't ping from server to client side hosts.

I figured it out.

I didn't have routes configured in my routers for the tun0 network (10.0.1.0/24). After I added those routes everything works now.
 
Old 09-16-2017, 02:03 PM   #3
ayejung
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Hello

I having to do in same case. Can you post server and client config or route command yet?

Thank you.
 
Old 09-17-2017, 09:19 AM   #4
ycats
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ayejung View Post
Hello

I having to do in same case. Can you post server and client config or route command yet?

Thank you.
For configs that are sent to each client, I had to add the following line.

push "route 10.0.1.0 255.255.255.0"
 
  


Reply



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
OpenVPN Client can't ping host by name mrpc_cambodia Linux - General 5 07-09-2019 06:39 PM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
Cannot ping OpenVPN client after server restart skubik Linux - Networking 3 10-15-2007 01:42 PM
openvpn server and client cannot ping both direction odie_chan Linux - Networking 0 07-08-2006 12:06 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:04 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
Open Source Consulting | Domain Registration