Running an OpenVPN server on a VPS and using the same VPS for openvpn socks proxy using ssh

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a raspberry pi on which I set up an OpenVPN server (running on por 4444) using PiVPN. It works perefectly fine but I can't connect to it on my University Wifi because of DPI. So I decided to use OpenVPN over SSH.
I made a SOCKS proxy using the following command:
ssh -D8123 pi@my-pi-domain
I edited my client ovpn file to use this socks proxy:
client
dev tun
proto tcp
remote localhost 4444
socks-proxy localhost 8123
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
The problem is, whenever I start openvpn client, my ssh prompt becomes inactive hence openvpn can't use my socks proxy. Is there any way to have my pi run the OpenVPN server while using itself for the SOCKS proxy?
ssh openvpn ssh-tunneling
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
I have a raspberry pi on which I set up an OpenVPN server (running on por 4444) using PiVPN. It works perefectly fine but I can't connect to it on my University Wifi because of DPI. So I decided to use OpenVPN over SSH.
I made a SOCKS proxy using the following command:
ssh -D8123 pi@my-pi-domain
I edited my client ovpn file to use this socks proxy:
client
dev tun
proto tcp
remote localhost 4444
socks-proxy localhost 8123
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
The problem is, whenever I start openvpn client, my ssh prompt becomes inactive hence openvpn can't use my socks proxy. Is there any way to have my pi run the OpenVPN server while using itself for the SOCKS proxy?
ssh openvpn ssh-tunneling
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a raspberry pi on which I set up an OpenVPN server (running on por 4444) using PiVPN. It works perefectly fine but I can't connect to it on my University Wifi because of DPI. So I decided to use OpenVPN over SSH.
I made a SOCKS proxy using the following command:
ssh -D8123 pi@my-pi-domain
I edited my client ovpn file to use this socks proxy:
client
dev tun
proto tcp
remote localhost 4444
socks-proxy localhost 8123
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
The problem is, whenever I start openvpn client, my ssh prompt becomes inactive hence openvpn can't use my socks proxy. Is there any way to have my pi run the OpenVPN server while using itself for the SOCKS proxy?
ssh openvpn ssh-tunneling
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a raspberry pi on which I set up an OpenVPN server (running on por 4444) using PiVPN. It works perefectly fine but I can't connect to it on my University Wifi because of DPI. So I decided to use OpenVPN over SSH.
I made a SOCKS proxy using the following command:
ssh -D8123 pi@my-pi-domain
I edited my client ovpn file to use this socks proxy:
client
dev tun
proto tcp
remote localhost 4444
socks-proxy localhost 8123
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
The problem is, whenever I start openvpn client, my ssh prompt becomes inactive hence openvpn can't use my socks proxy. Is there any way to have my pi run the OpenVPN server while using itself for the SOCKS proxy?
ssh openvpn ssh-tunneling
ssh openvpn ssh-tunneling
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 25 mins ago
John Leaf
11
11
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
John Leaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
John Leaf is a new contributor. Be nice, and check out our Code of Conduct.
John Leaf is a new contributor. Be nice, and check out our Code of Conduct.
John Leaf is a new contributor. Be nice, and check out our Code of Conduct.
John Leaf is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479783%2frunning-an-openvpn-server-on-a-vps-and-using-the-same-vps-for-openvpn-socks-prox%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password