Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-13-2013, 02:42 PM   #1
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

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 which is eth0, eth1 is public ip, i configured in /etc/openvpn/server.conf for remote clients. when i connect to vpn server, my laptop been assigned some ip like, it's also pinging to which is tun0 , but if i try to ping not pinging, my laptop is not comunicating with other interface of vpn server other than tun0 (, if it's not possible vpn server is of no use since can't access my network

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

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

i suspect vpn client is unable to communicate other clients via vpn's local ip
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
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 2,947

Rep: Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788
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
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,315

Rep: Reputation: 98
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
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1

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.

push "route"
push "redirect-gateway def1 bypass-dhcp"

thank you.


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 / openSUSE 7 11-09-2005 01:14 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:28 PM.

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