Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Problem #1

Open
YRS200 opened this issue Jan 6, 2023 · 1 comment
Open

Problem #1

YRS200 opened this issue Jan 6, 2023 · 1 comment

Comments

@YRS200
Copy link

YRS200 commented Jan 6, 2023

you have a local server (a VPS inside your country) called server A and your destination server where ocserv is installed is called server B. First, make sure OCServ is active on server B without errors.
Hi buddy! I am from turkmenistan and in my country the vpn blocking a lot so what do you mean by local server i do not understand you clearly

@B-andi-T
Copy link
Owner

B-andi-T commented Jan 6, 2023

you have a local server (a VPS inside your country) called server A and your destination server where ocserv is installed is called server B. First, make sure OCServ is active on server B without errors. Hi buddy! I am from turkmenistan and in my country the vpn blocking a lot so what do you mean by local server i do not understand you clearly

Hello
Yes, VPNs are blocked, but SSH is not. Countries that block VPN only impose restrictions on VPN protocols. For example, Ocserv is blocked in your country, but SSH is not blocked. You can buy a cheap Linux server in your country and use the method I mentioned to create an SSH tunnel and connect to your main server ocserv through it. In this way, because countries do not block SSH, you can easily connect to ocserv or other VPNs on your main server using SSH tunnel. SSH tunnel will be an intermediary tunnel for transferring your data.

In normal situation and without restrictions, if you want to connect to your VPN server, you use the IP and port of your VPN server to connect to ocserv:
For example, The IP and port of your ocserv server is:
2.2.2.2:2222
But if your country has blocked VPN, you can create a tunnel using the following command from your local server:
ssh -p 22 -f -N -L 0.0.0.0:2222:2.2.2.2:2222 root@2.2.2.2
Now you can connect to Ocserv on the main server through the created tunnel with the following IP and port:
For example, 1.1.1.1 is the IP of your local server
1.1.1.1:2222

You can use this method for Ocserv, Shadowsocks, Openvpn, Softether, etc.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants