(E-Mail Removed) wrote:
> Hey all,
>
> I have a linux system at work, and have remote access to my linux box
> at home, so I installed OpenVPN on each. My goal, of course, is to
> bypass the corporate firewall (first priority is bypassing the web
> filtering) and route certain traffic (web, Email, IM, etc) to move
> over the VPN instead.
>
> I followed the examples at openvpn's web site, and both my local
> machine (client) and the remote machine (server) can ping each others
> VPN IP addresses, so the tunnel itself is up and running just fine. I
> guess I'm stuck on how to proceed from here, and curious as to the
> 'best' (generally accepted) method to route certain traffic through
> the VPN.
>
> 1. Should I set up multiple iptables rules on my local machine to
> route certain outgoing traffic on known ports to go through the VPN?
No. The proper tool for routing is the route table, man route.
> 2. Should I just drop the corporate network 'default gateway', and set
> my local system's default gateway to be the remote server? If so, do I
> set the VPN IP of the server as the default, or the public IP of the
> server?
No. See above.
> 3. I suppose I'll need to add iptables rules on the server for NAT,
> since it does not currently 'act' as a gateway server for my other
> home systems.
The iptables rules are for address translations which
you do not need here.
> The OpenVPN examples I followed only seem to go far enough to actually
> built the tunnel, which I've done. Now I need some examples to play
> with for routing specific traffic over the VPN.
OpenVPN is not the tool here, it needs holes in the
main firewall for UDP/1194 for both directions. Are
you sure that the tunnel is open?
> Thanks for any assistance, examples or sites for how to proceed.
Mostly probably the corporate firewall is closed for
any traffic, and the connections to the outside are
provided by application-protocol specific proxies.
You are pretty probably limited to filtered HTTP access
to the outside, and OpenVPN does not run on it.
A different story is the legality of the set-up. You
very probably risk legal actions.
--
Tauno Voipio
tauno voipio (at) iki fi