I'm having problems to create route/iptables rules for following configuration:
- I have an openVPN server (tun type) running on my raspberry machine at home
- At work i have company pc (behind proxy) that creates tunnel using openVPN to my home machine
- At work i have USB Wifi dongle (wlan0) connected to my company pc that should provide internet using the tunnel to machine at my home
Now i need to create rules for: 1. All traffic going via wlan0 to route to tunnel 2. Rest of the traffic route to eth0 - company network behind proxy
Default route rule at company pc (linuxmint 15) for all traffic going via eth0 - proxy:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.131.4.1 0.0.0.0 UG 0 0 0 eth0 --> that rule must stay on eth0