Page 1 of 1

Configuring 2 tunnels to access 2 networks on 1 server

Posted: Mon Jan 17, 2011 6:52 am
by revolutionit
Everyone,

This is what I'm trying to do, configure 2 tunnels on 1 server to access 2 networks.

Vyatta VC5 is my router software

This is my Corp network (different IP's though) This works just fine and the tunnel starts up. With my firewall setup my tunnel can not access my other networks. This is the way I want it.

openvpn vtun0 {
mode server
openvpn-option "--push route 192.168.10.0 255.255.255.0 --push dhcp-option DNS 192.168.10.1 --client-to-client --comp-lzo"
protocol tcp-passive
server {
subnet 192.168.30.0/29
topology subnet
}
tls {
ca-cert-file /etc/openvpn/test1/file
cert-file /etc/openvpn/test1/file
crl-file /etc/openvpn/test1/file
dh-file /etc/openvpn/test1/file
key-file /etc/openvpn/test1/file

Now that I am running a web server I created a DMZ network. As of now I created another tunnel with a new CA and files in another directory. When I commit it fails.

openvpn vtun1 {
mode server
openvpn-option "--push route 192.168.120.0 255.255.255.240 --push dhcp-option DNS 192.168.20.1 --client-to-client --comp-lzo"
protocol tcp-passive
server {
subnet 192.168.31.0/29
topology subnet
}
tls {
ca-cert-file /etc/openvpn/test2/file
cert-file /etc/openvpn/test2/file
crl-file /etc/openvpn/test2/file
dh-file /etc/openvpn/test2/file
key-file /etc/openvpn/test2/file

Can anyone help me out with this challenge I am having?

Thank you.

Re: Configuring 2 tunnels to access 2 networks on 1 server

Posted: Mon Jan 17, 2011 2:30 pm
by gladiatr72
Hello,

I'm afraid you're going to need to engage the Vyatta community for this one. The problem you've described sounds like a configuration parsing problem with the Vyatta interface rather than with OpenVPN.

-Stephen