Jump to content

OpenVPN PTP

MartinIAm
Go to solution Solved by MartinIAm,

Switched over to l2tp/ipsec as it provided the features that I needed.

Hey! I am new to openvpn and it seems kind of straight forward, but I'm stuck right now at trying to make a pear to pear connection. What I'm trying to do is host a web server on node one (192.168.7.69) and then on node two (192.168.6.59) is where there is a different public ip address so I can route all of the traffic that goes from node two to node one so anyone who goes to the public ip address of node 2 can see the web server that I'm hosting at node 1 (kind of like it's on the same network). I have it currently set up so node two is my openvpn server and node one is my client. So I want them to communicate between each other. How would I do this?

 

EDIT: This is not just a web server it also acts as a mail server.

Link to comment
Share on other sites

Link to post
Share on other sites

where are you stuck at?

EDIT:

I see do you have the right certificates

Link to comment
Share on other sites

Link to post
Share on other sites

21 minutes ago, cole0622 said:

where are you stuck at?

EDIT:

I see do you have the right certificates

Node one can communicate with node two (like outgoing traffic) but node two can't communicate with node one (like incoming traffic) I have made sure no firewalls are blocking this port. Also what do you mean by certificates? SSL works fine.

Link to comment
Share on other sites

Link to post
Share on other sites

I was thinking you had no connection between both nodes entirely. what are you using open vpn on (eg: pfsense)

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, cole0622 said:

I was thinking you had no connection between both nodes entirely. what are you using open vpn on (eg: pfsense)

Ubuntu 18.04 vm (AWS Lightsail)

Link to comment
Share on other sites

Link to post
Share on other sites

so node 1 is the server and node 2 is client correct? is the vpn server listing port on the client port?

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, cole0622 said:

so node 1 is the server and node 2 is client correct? is the vpn server listing port on the client port?

No it's the other way around. And yes the vpn server is listening to the port of the client.

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, cole0622 said:

does aws handle the vpn

No, I have it on my own vm.

Link to comment
Share on other sites

Link to post
Share on other sites

Switched over to l2tp/ipsec as it provided the features that I needed.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×