LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-06-2013, 11:26 PM   #1
vignesh4sh
Member
 
Registered: Oct 2012
Posts: 69

Rep: Reputation: Disabled
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
 
Old 05-07-2013, 08:31 AM   #2
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
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
 
Old 05-07-2013, 09:33 AM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,601

Rep: Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570Reputation: 2570
Quote:
Originally Posted by vignesh4sh View Post
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.
 
  


Reply

Tags
linux, openvpn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle 11G error: listener refused the connection with the following error ora-12505 apss_evaluator Linux - Server 3 05-16-2012 05:34 AM
Connection refused error pgscannell Linux - Networking 1 01-05-2011 08:48 AM
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 03:46 PM
Connection refused error sweetyedwin Linux - Networking 1 07-15-2004 03:11 AM
Connection refused error robs4linux Linux - Networking 2 03-19-2002 02:09 PM


All times are GMT -5. The time now is 05:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration