Configuring routing in the home network

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Gentlemen, I had the task of administering a home network for which I don't know how to approach it (not to mention the fact to decide).

So, at home I have three computers connected through the router to Corbin (now Beeline Internet). Two of them are hanging on WiFi, one on the wire.
The router connects to the ISP via L2TP (I don't know if writing just in case).
All three computers are running Ubuntu 10.10 Maverick Desktop.

Besides, I have everything I need in order to connect to the corporate VPN (via OpenVPN).
Everything connects just fine, if not one but — at the same time to the VPN can only connect one client with my certificate.

Accordingly, when I try to connect the second client with its own certificate, the connection just sprashivaetsya.
Silent thought, I realized that I need to install the client on the computer which is included permanently, and through it already to connect all the others.

Oh, by the way, all computers have only one network card, so to set at least one of them as a full router, as I understand it, is impossible.

And now, as they say, attention to the question! How do I make that all computers could use the resources of the corporate VPN at the same time?

Thank you very much for your attention!
by | 19 views

2 Answers

0 like 0 dislike
simmered, is your corporate network — your home network. is the ip of the computer running openvpn.
On the computer running openvpn:
1) allow routing:
sysctl -w net.ipv4.ip_forward=1
2) Run masquerading
iptables-t nat -A POSTROUTING -o tun0 -d -s MASQUERADE
where tun0 is the interface that created openvpn
On the other computers point:
route add -net gw
all you can sit in a corporate party)
0 like 0 dislike
Above given is the right decision. Just here is one OpenVPN is not needed, rather banal NAT. However, if you do not want to redirect all traffic through one machine, then consider installing the enhanced firmware (like OpenWRT) on the router. OpenVPN-tunnel at the same lift on the router, it will be available for all machines.

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked Apr 9, 2019 by DeboshiR
0 like 0 dislike
5 answers
110,608 questions
257,187 answers
40,796 users