Configuring routing in the home network

0 like 0 dislike
4 views
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 | 4 views

2 Answers

0 like 0 dislike
simmered, 10.10.10.0/24 is your corporate network
192.168.0.0/24 — your home network.
192.168.0.10 is the ip of the computer running openvpn.
\r
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 10.10.10.0/24 -s 192.168.0.0/24-j MASQUERADE
where tun0 is the interface that created openvpn
\r
On the other computers point:
route add -net 10.10.10.0/24 gw 192.168.0.10
all you can sit in a corporate party)
by
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.
by

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,186 answers
0 comments
28,875 users