Situation
I'm trying to share my Desktop's Internet connection to my Laptop.
Here is the layout of my network:
- I only control the green computers.
- The routes on the desktop are automatically and correctly set by DHCP and the OpenVPN client config file.
- I have access to all the orange networks on it.
Here's what I tried:
- using Windows Internet Connection Sharing, sharing
tap0
toeth1
:
Works for all orange networks except172.16.0.0/12
- using NET32 IP Router, internet from
tap0
and private oneth1
:
Same problem as I have to choose the interface that has internet access.
I tried selecting botheth0
andeth1
, but it forces me to set them to static ip, which breaks everything because I need to be using DHCP on172.16.0.0/12
.
Main question :
- Is there a way, on the desktop computer, to forward the packets from an interface to their destination, using the system's routes to choose the interface and gateway ?
- On a more general note, is there a reason not to do it by default ?
On a more general note, is there a reason not to do it by default
. Only complexity. Why not also start a VPN from the laptop?176
in your post.172.16.0.0/12
. If I'm connecting to it from172.16.0.0/12
by bridgingeth0
andeth1
it would work except the Company's switches only accept one IP per port, I have to have NAT on the Desktop :/