Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I have been googleling and reading manuals for a day now and I still dont seem to get openvpn to share its server side network with clients. I am sure that I am making a trivial mistake somewhere either in my routing or in configs but I cant figure out where.
*office network [subnet 10.0.0.0/24]*
*openVPN server on office subnet with ip 10.0.0.5 VPN ip 10.9.0.1*
|
|
VPN 10.9.0.0/24
|
|
*home network [subnet 10.1.1.0/24]*
*openVPN client 10.9.0.6 / lan ip 10.1.1.188
It looks like you have your nat on the wrong interface (tun0 is where the information is really coming in. eth1 is out.). I personally don't do it this way because it's just easier to use FireHOL to configure iptables. Take a look at this article http://wiki.ismytech.com/How-Tos/FireHOL
Last edited by izaakrach; 07-10-2012 at 07:14 PM.
Reason: I forgot to add the interface names
2. you may SNAT from VPN subnet to ethX interface of your VPN-server. The incoming interface will be tun0. the outgoing - eth0, or smth like this. In case of SNAT the host on the server-side LAN should not know the route to VPN clients.
I had ip_forwarding set to on, but it turned out that the reason why it didn't work was that openVPN blocked the traffic from one side to the other. I think it is a safety mechanism so that dumb clients would not route their home network to the office and possibly cause chaos along the way. When I figured that out, it was rather easy to fix it.
All I had to do was configure ccd iroute files in openvpn config and everything started to work. So I mark it as solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.