manuel19
Hi. I need a configuration for OpenVPN that work in this way:
I have 2 Dedicated IPv4 address.
*FIRST* 64.19.32.14
*SECOND* 134.15.66.144
Scenario:
We have 2 companys: Company1 and Company2.
Step#1
Company1 ---> Connect to TCP port 1159 to 64.19.32.14 (OpenVPN) *FIRST IP*
Then, the Openvpn set a static private IP. In this case the IP: 10.8.8.1 and the gateway need to be 10.8.8.2
Company2 ---> Connect to TCP port 1159 to 64.19.32.14 (OpenVPN) *FIRST IP*
Then, the Openvpn set a static private IP too. In this case the IP: 10.8.8.5 and the gateway need to be 10.8.8.6
Ok. Next.
Step#2
ONLY both Companys; (Company1 and Company2) needs to be able to communicate.
In other way:
Company1 (10.8.8.1) ---Needs to be able to communicate with Company2 (10.8.8.5).
ONLY Company1 should communicate with Company2 and viceversa.
Next.
Step#3
If company1 or Company2 want to surf on the internet, they should use our *SECOND* IP address (134.15.66.144) as WAN.
I mean, if they go to whatismyip.com, that should tell that they Public IP is 134.15.66.144.
Others OpenVPN clients should NOT Company1 or Company2.
//
Please, help to to do that work.
I only need:
1) the server.conf configuration
2) the company1 configuration
3)company2 configuration
4) What config i need to put in the IPTABLES
Waiting someone help me for this configuration!