Skip to contentSkip to conversation

How to create openvpn channel between multiple interface linux machines.

Openvpn-devel Arun Kumar 3 participants 3 messages Jun 2, 2015

lore
Share & tools
lore

Arun Kumar

author
#0 lore raw

Hi,
I have two ubuntu machine say host1 and host2.
Each have two interfaces say eth0 and eth1.
I want to create seperate openvpn channels between the interfaces of two hosts.
i tried openvpn and create secure key. and add eth0 and eth1 in config file, but only one vpn channel created.
what is my mistake and how to make it.
please help me on this.

Thanks
Kumar raj

#1 lore raw

Hi,

Quoted 8 lines · Arun Kumar

I have two ubuntu machine say host1 and host2.
Each have two interfaces say eth0 and eth1.
I want to create seperate openvpn channels between the interfaces of two hosts.
i tried openvpn and create secure key. and add eth0 and eth1 in config file, but only one vpn channel created.
what is my mistake and how to make it.
please help me on this.

First mistake: wrong list. Openvpn-users is the list for user questions.

Second mistake: please describe more precisely what you want to achieve - OpenVPN does not care for "eth0/eth1", it will connect to an IP address of the remote host.

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#2 lore raw
In reply to Arun Kumar
Quoted 7 lines · Arun Kumar

Hi,
I have two ubuntu machine say host1 and host2.
Each have two interfaces say eth0 and eth1.
I want to create seperate openvpn channels between the interfaces of two hosts.
i tried openvpn and create secure key. and add eth0 and eth1 in config file, but only one vpn channel created. what is my mistake and how to make it.
please help me on this.

you will need two instances of openvpn for this
1) set up openvpn on one end, bind it to the IP address of eth0; assign it its own VPN IP address e.g. 10.200.0.1
2) create the first "client" that connects the IP address of eth0 (--remote <IP-of-eth0), VPN IP 10.200.0.2

3) set up the second openvpn listener, bind it to the IP address of eth1; assign it its own VPN IP address e.g. 10.201.0.1
4) create the second "client" that connects the IP address of eth1 (--remote <IP-of-eth1), VPN IP 10.201.0.2

if this does not work , post your configs and log files and perhaps we can help you further.

JJK