Page 1 of 1

Route some ports through the vpn tunnel and some not

Posted: Mon Nov 26, 2012 1:14 pm
by fiaskogaul
Hi,

I'm connecting with my ubuntu server (as a client) via openvpn to blackvpn. Blackvpn does not support SMTP and portforwarding and that get me some problems keeping the setup I want.
Is there a possibility to configure openvpn not to tunnel f.e. SMTP through the vpn connection? Maybe it is possible to route some ports through the vpn and some not.

I'd be very happy if you got an workaround for this.

regards Kai

Re: Route some ports through the vpn tunnel and some not

Posted: Mon Nov 26, 2012 6:23 pm
by maikcat
hi there,

it seems to be you want to do policy based routing,

it can be done in linux using iptables to mark packets and multiple
routing tables kernel feature...

Michael.