This forum is for admins who are looking to build or expand their OpenVPN setup.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
PROXIMO
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Mar 16, 2022 8:50 pm
Post
by PROXIMO » Wed Mar 16, 2022 9:02 pm
Hi all,
Have been using openvpn for few years already. Have home linux server running openvpn 2.4.7. Before the reinstall of the OS it was lower version and it did work. I am using the same config file, enabling it in the server.conf file by adding
Port is open and openvpn is listening according to netstat. But when trying to connect to the management it says that connection is refused. I connect from the same machine from web interface using php file to display the results
Code: Select all
$fp = fsockopen($vpn_host, $vpn_port, $errno, $errstr, 30);
How come on the old setup was working fine, now it does not work. What should i do.
My final goal is to enable the web status again
Thank you
edit:
if you like the status page you can download it from
https://github.com/PROX1MO/OpenVPN-Web-Status
Last edited by
PROXIMO on Wed Mar 16, 2022 9:57 pm, edited 2 times in total.
-
Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
Post
by Pippin » Wed Mar 16, 2022 9:11 pm
Have you tried connecting with telnet? (or even netcat)
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp
-
PROXIMO
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Mar 16, 2022 8:50 pm
Post
by PROXIMO » Wed Mar 16, 2022 9:21 pm
No I don't have telnet and netcat on my windows machine. Testing the port from powershell says it is not open
Code: Select all
PS C:\Users\User> test-netconnection -port 5555 -computername 10.10.10.1
WARNING: TCP connect to (10.10.10.1 : 5555) failed
ComputerName : 10.10.10.1
RemoteAddress : 10.10.10.1
RemotePort : 5555
InterfaceAlias : Wi-Fi
SourceAddress : 10.10.10.200
PingSucceeded : True
PingReplyDetails (RTT) : 1 ms
TcpTestSucceeded : False
but what is the point since it will not be user outside the localhost
Code: Select all
root@raspberrypi:~ $ sudo netstat -tulpn | grep 5555
tcp6 0 0 ::1:5555 :::* LISTEN 10129/openvpn
-
Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
Post
by Pippin » Wed Mar 16, 2022 9:32 pm
The point is, if it works with telnet then the problem is php code.
You can try putty for Windows to connect.
No idea if it works/should work with powershell, I'm no Windows user.
Also check firewall.
2.4.7 is out of date too.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp
-
PROXIMO
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Mar 16, 2022 8:50 pm
Post
by PROXIMO » Wed Mar 16, 2022 9:38 pm
Should port be added to firewall since code is executed locally from the same server, not outside.
Version 2.4.7 might be out of date, but it is on the repository and it works. Old setup was with even older version. It worked fine there too, even management.
-
Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
Post
by Pippin » Thu Mar 17, 2022 3:28 pm
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp
-
PROXIMO
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Mar 16, 2022 8:50 pm
Post
by PROXIMO » Fri Mar 18, 2022 6:07 pm
It worked with 127.0.0.1
Code: Select all
root@raspberrypi:~ $ sudo netstat -tulpn | grep 5555
tcp 0 0 127.0.0.1:5555 0.0.0.0:* LISTEN 25819/openvpn
Thank you
-
Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
Post
by Pippin » Fri Mar 18, 2022 6:46 pm
You're welcome.
Seems 2.4.7 doesn't do IPv6...
.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp
-
PROXIMO
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Mar 16, 2022 8:50 pm
Post
by PROXIMO » Fri Mar 18, 2022 7:19 pm
i have fixed the hosts so it works with localhost