Skip to contentSkip to conversation

Opvenvpn as gateway

Openvpn-devel [email protected]... 2 participants 2 messages Sep 22, 2004

lore
Share & tools
lore
#0 lore raw

Scenario is:

Client - - - - - - - - - -- Gateway Server -- - - - - - - |

|- - - - Server 1

|- - - - Server 2

With OpenVpn :

Client (openvpn) - - - - TUN- - - - - -- Gateway Server (openvpn) -- - -
- - - - |

|- - - - Server 1

|- - - - Server 2

I need to redirect IP packets from Client to Server1 and Server2 through Gateway depending upon request parameters.
Here Gateway is Apache Proxy with Server 1 and Server 2 as backend/protected servers.
Can I route ip packets from Client to backend servers ip through TUN tunnel? Or
Does openvpn provides hook-ups to filter ip-packets? I can use that to filter ip packets at TUN of Gateway.

Thanx & Regards,
Satinder Singh

-----Original Message-----
From: Denis Vlasenko [mailto:[email protected]...]
Sent: Wednesday, September 22, 2004 2:02 PM
To: [email protected]...; [email protected]
Subject: Re: [Openvpn-devel] Opvenvpn as gateway

Quoted 3 lines · On Wednesday 22 September 2004 09:47, [email protected]... wrote:

Can openvpn be used as gateway? I place a openvpn server which forwards requests to different servers depending upon messages sent by client. Does openvpn provide any feature for this?

What requests and messages? http? ftp? icq?
Provide some details please.
--
vda

#1 lore raw
Quoted 8 lines · On Wednesday 22 September 2004 12:48, [email protected]... wrote:

Scenario is:

Client - - - - - - - - - -- Gateway Server -- - - - - - - |

|- - - - Server 1

|- - - - Server 2

Quoted 8 lines

With OpenVpn :

Client (openvpn) - - - - TUN- - - - - -- Gateway Server (openvpn) -- - -
- - - - |

|- - - - Server 1

|- - - - Server 2

Everything linewrapped horribly

Quoted 8 lines

I need to redirect IP packets from Client to Server1 and Server2 through Gateway depending upon request parameters.
Here Gateway is Apache Proxy with Server 1 and Server 2 as backend/protected servers.
Can I route ip packets from Client to backend servers ip through TUN tunnel? Or
Does openvpn provides hook-ups to filter ip-packets? I can use that to filter ip packets at TUN of Gateway.

I don't understand why do want to do this in such a complex and incomprehensible way.

Just protect servers with firewall, and forward specific open ports from servers to gateway.

Easily doable with iptables alone. No need to modify openvpn. --
vda