Route some ports through the vpn tunnel and some not

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
fiaskogaul
OpenVpn Newbie
Posts: 1
Joined: Mon Nov 26, 2012 1:10 pm

Route some ports through the vpn tunnel and some not

Post by fiaskogaul » Mon Nov 26, 2012 1:14 pm

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

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

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

Post by maikcat » Mon Nov 26, 2012 6:23 pm

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply