LinuxQuestions.org
Visit Jeremy's Blog.
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 02-13-2013, 02:42 PM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 269

Rep: Reputation: 1
open vpn not forwarding to lan


hi ,

i installed openvpn, on centos 6.3. Working fine, i can also can connect from home, thing is my local ip is 192.168.80.1 which is eth0, eth1 is public ip, i configured 10.0.0.0 255.255.255.0 in /etc/openvpn/server.conf for remote clients. when i connect to vpn server, my laptop been assigned some ip like 10.0.0.6, it's also pinging to 10.0.0.1 which is tun0 , but if i try to ping 192.168.20.12 not pinging, my laptop is not comunicating with other interface of vpn server other than tun0 (10.0.0.1), if it's not possible vpn server is of no use since can't access my network 192.168.80.0

i enabled ip forwarding in /etc/sysctl and configure MASQURADE as

Quote:
iptables -t nat -A POSTROUTING -j MASQUERADE
But thing i noticed was, i configured vpn ip(192.168.80.1) as gateway for one of the pc in network(192.168.80.9)and tried to ping 10.0.0.1 (tun0) after MASQUERADE, it's pinging and also pinging my laptop 10.0.0.6 which is connected in vpn from home. but my laptop 10.0.0.6 can't ping 192.168.80.9.

Quote:
i suspect vpn client is unable to communicate other clients via vpn's local ip 192.168.80.1
please tell me how to configure my vpn server so that vpn clients take it's local ip as gateway
pleae help me

thank you very much.
 
Old 02-14-2013, 08:56 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,607

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Sounds like the vpn and server are ok. How are you setting the route table on your PC so it knows to go through the VPN to get to 192.168.80.x? Are you pushing the route from openvpn?
 
Old 02-14-2013, 09:18 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
Is the Client-client option enabled in the OpenVPN configuration, I've had this cause issues in communication between nodes other than the server.
 
Old 02-19-2013, 08:08 AM   #4
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 269

Original Poster
Rep: Reputation: 1
hi

i thank you all for your time, i don't know where did my conf, wrong finally but i did below steps from the post.

Quote:
push "route 192.168.80.254 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
http://geekinlinux.blogspot.in/2013/...g-openvpn.html

thank you.
 
  


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
Open VPN Client Can't Access to Local Lan youphak Linux - Server 3 09-20-2012 01:20 AM
Remote connection problem(build a separated lan in two VPN connected lan) William17 Linux - Networking 0 12-04-2011 01:33 AM
IPTABLES: Forward from VPN to LAN, Need traffic to appear as if its coming from LAN. a2brute Linux - Networking 3 11-17-2008 11:53 AM
sharing VPN access with lan + after vpn connected unable to ping lan/public ip xxx_anuj_xxx Linux - Networking 1 03-14-2008 02:50 AM
No Internet but LAN and VPN connect LAN work fine??? xavior Suse/Novell 7 11-09-2005 01:14 PM


All times are GMT -5. The time now is 03:32 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