| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-06-2009, 04:53 AM
|
#1
|
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 652
Rep:
|
Why does TLS port accespt both TLS and plain TCP?
Hi all.
I've set up stunnel (i.e. the universal TLS tunnel) listening on port X on a server. It seems to me like the port accepts both TLS connections as well as regular TCP connections (not running under TLS), and I'm not sure why this works.
Does anyone know why both TLS and normal TCP traffic is accepted at this port? I know that TLS is run over TCP in the first place, so I'm guessing it has something to do with this.
Greets,
kenneho
|
|
|
|
02-06-2009, 05:12 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
stunnel can be used in many many ways, can you show us how you're using it? AFAIR you can configure stunnel to allow plain connections on an ideally TLS encrypted connection is desired.
|
|
|
|
02-06-2009, 07:50 AM
|
#3
|
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 652
Original Poster
Rep:
|
I'm setting up rsyslog to tunnel syslog-messages via TLS to the loghost.
This is the config file I'm using - found it in the rsyslog documentation:
Code:
; Certificate/key is needed in server mode
cert = /etc/stunnel/stunnel.pem
; Some debugging stuff useful for troubleshooting
debug = 7
foreground=yes
[ssyslog]
accept = 60514
connect = 61514
Don't see anything about allowing plain TCP, so I'm guessing it it the default or something.
|
|
|
|
02-06-2009, 09:52 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
So how is this being used?? This is the server side? What is connecting to this?
|
|
|
|
02-08-2009, 07:30 AM
|
#5
|
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 652
Original Poster
Rep:
|
Ah, I think I've got this the wrong way.... The rsyslog server listens to both rsyslog traffic (TCP) and stunnel traffic, on separate ports naturally. In my tests I directed plain TCP traffic to the rsyslog TCP port, not the stunnel port. That explains why things seemed to work even when I thought I directed TCP traffic to the stunnel port. My bad. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:37 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|