LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   connection refused error in openvpn (http://www.linuxquestions.org/questions/linux-server-73/connection-refused-error-in-openvpn-4175460962/)

vignesh4sh 05-06-2013 11:26 PM

connection refused error in openvpn
 
Hi,

I have a issue in openvpn connection.Openvpn is running in server and port is opened.

Quote:

server@server1:~$ sudo nmap -p 1194 -sU -P0 192.168.1.10
[sudo] password for novabit:

Starting Nmap 6.00 ( http://nmap.org ) at 2013-05-07 00:15 EDT
Nmap scan report for 10.0.1.10
Host is up.
PORT STATE SERVICE
1194/udp open|filtered openvpn
when i use telnet i getting connection refused error.

Quote:

testing@test:~$ telnet 192.168.1.10 1194
Trying 192.168.1.10...
telnet: Unable to connect to remote host: Connection refused

Please need suggestions to fix this issue.

Thanks

siremaxus 05-07-2013 08:31 AM

Hi,

I don't know if you this but this status is saying that the port 1194 is being filtered or blocked by a firewall.
PORT STATE SERVICE
1194/udp open|filtered openvpn

Check your iptables or firewall that may do the trick.

Sire Maxus

TB0ne 05-07-2013 09:33 AM

Quote:

Originally Posted by vignesh4sh (Post 4946303)
Hi,
I have a issue in openvpn connection.Openvpn is running in server and port is opened.
Quote:

server@server1:~$ sudo nmap -p 1194 -sU -P0 192.168.1.10
[sudo] password for novabit:

Starting Nmap 6.00 ( http://nmap.org ) at 2013-05-07 00:15 EDT
Nmap scan report for 10.0.1.10
Host is up.
PORT STATE SERVICE
1194/udp open|filtered openvpn
when i use telnet i getting connection refused error.
Quote:

testing@test:~$ telnet 192.168.1.10 1194
Trying 192.168.1.10...
telnet: Unable to connect to remote host: Connection refused
Please need suggestions to fix this issue.

There is no issue to FIX. Telnet goes to port 23...your VPN server is obviously on port 1194, and by just typing in "telnet <address", it's going to port 23 by default. So, either put in a different port number, or use an actual VPN client.
Quote:

Originally Posted by siremaxus
I don't know if you this but this status is saying that the port 1194 is being filtered or blocked by a firewall.

No, sorry. The port is open and available, and it is saying is is being filtered because it's using UDP. UDP scan works by sending an empty (no data) UDP header to the targeted port(s). If an ICMP port unreachable error (type 3, code 3) is returned, the port is closed. Other ICMP unreachable errors (type 3, codes 1, 2, 9, 10, or 13) mark the port as filtered. Some services will respond with a UDP packet, proving that it is open. If no response is received after retransmissions, the port is classified as open|filtered Since the port is open and listening, there isn't anything to check on the iptables in regards to this.


All times are GMT -5. The time now is 09:40 PM.