LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-13-2009, 05:23 PM   #1
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Rep: Reputation: 15
openvpn cant ping internal network


I've been working on this for about a week and cant figure it out. I have openvpn setup on a debian system. I'm able to connect to it and i can ping the internet from the vpn connection, but i cant ping my internal network?!

Here is my setup
Internal network: 192.168.1.0
VPN IP: 10.1.0.0

Server config:
[code]dev tun
server 10.1.0.1 255.255.0.0
push "redirect-gateway def1"
route-up "route add -net 192.168.1.0/24 tun0
push "dhcp-option DNS 192.168.1.1"
[code/]
I have more in the config, but i think that is all that is needed for help. I have ipv4 port forwarding enabled (echo 1 > /proc/s... something i cant remember). But if i enable port forwarding via /etc/sysctl.conf it doesnt work at all but if i enable it the other way it works (that is pinging the internet)??

Any thoughts?
 
Old 07-17-2009, 11:04 PM   #2
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 114

Rep: Reputation: 23
Quote:
Originally Posted by keith2045 View Post
I've been working on this for about a week and cant figure it out. I have openvpn setup on a debian system. I'm able to connect to it and i can ping the internet from the vpn connection, but i cant ping my internal network?!

Here is my setup
Internal network: 192.168.1.0
VPN IP: 10.1.0.0

Server config:
[code]dev tun
server 10.1.0.1 255.255.0.0
push "redirect-gateway def1"
route-up "route add -net 192.168.1.0/24 tun0
push "dhcp-option DNS 192.168.1.1"
[code/]
I have more in the config, but i think that is all that is needed for help. I have ipv4 port forwarding enabled (echo 1 > /proc/s... something i cant remember). But if i enable port forwarding via /etc/sysctl.conf it doesnt work at all but if i enable it the other way it works (that is pinging the internet)??

Any thoughts?
You have to have setting for "local" and your local lan has to know how to get back to the 10.1.0.0 net so if your local setting is
local 192.168.1.2
you would need route on your lan
10.1.0.0/24 via 192.168.1.2
you will also need "client-to-client" if you want clients in the 10.1.0.0 net to see each other
 
  


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
openvpn not able to ping my office network pawan_lal Linux - Server 1 06-16-2009 02:58 AM
OpenVPN cannot ping within network jwpat Linux - Networking 3 06-04-2009 06:52 PM
OpenVPN connection looks ok but cannot access anything from internal network @ office fdiaz05 Linux - Networking 1 02-28-2008 03:05 PM
OpenVPN - Can't ping private network chabam Linux - Networking 2 11-27-2007 07:35 AM
OpenVPN internal network access mmarinho Linux - Networking 12 09-02-2005 02:00 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration