It is currently 24.03.2018 00:33

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Setup of Client -> VPN1 -> (NAT) -> VPN2 -> Internet
PostPosted: 23.02.2012 12:58 

Joined: 21.02.2012 07:16
Posts: 2

I'm actually using a Linux 2.6.32-5-amd64 (Debian 6) server, which should NAT between both VPNs.
Both VPNs are working fine if I use them alone.
I'm trying to get the following configuration:
Client PC is running a VPN1 client to connect to the VPN1 server at tun1 on the server.
NAT forwards packets from tun1 to tun0.
VPN1 server is running an openvpn client to connect to VPN2 (tun0 on the first server).
VPN2 server works as exit to the internet.

My problem is that the routing is not working.

My server is configured as VPN2-client (tun0) with IP and gateway
VPN1 server runs at tun1 in

What I tried to do yet:

Enabling packet forwarding in kernel:
echo "1" > /proc/sys/net/ipv4/ip_forward

Tried several iptables configurations from the internet with NAT / POSTROUTING parameters.

I disabled routing features in the the .conf file:
# no routes
route-up /bin/false
script-security 2

so i can reach the server without being connected to VPN2.

Same post in german forum

Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderator: Moderators

All times are UTC

Who is online

Users browsing this forum: Google [Bot] and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created