Hi,
I want to ask for help, how to configure openvpn on OpenVZ using Centos 6 with 3 IP address.
I have a vps with 3 ip address. But I only want to use one of these IP addresses to run openvpn.
Because two other IP addresses will be used to run a webserver using the same listen port (TCP 80 and 443).
If 3 ip address I have is as follows (just an example):
123.45.6.100 (as main ip address)
123.45.6.101
123.45.6.102
How to configure openvpn to listen on ip address 123.456.101 only?
ifconfig output:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:123.45.6.100 P-t-P:123.45.6.100 Bcast:123.45.6.100 Mask:255.255.255.255
venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:123.45.6.101 P-t-P:123.45.6.101 Bcast:123.45.6.101 Mask:255.255.255.255
venet0:2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:123.45.6.102 P-t-P:123.45.6.102 Bcast:123.45.6.102 Mask:255.255.255.255
Thanks :)