Re: "Reverse" tunneling with stunnel.
Peter Pentchev <[email protected]>
| Newsgroups | gmane.network.stunnel.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jul 19, 2018 at 10:02:16PM -0600, C. Petro wrote:
> Thank you for you quick reply, and sorry it's taken me so long to respond
> back.
>
> Frankly I'm not exactly sure what is going on, or what layer the problem
> is.
>
> I don't think this is a firewall issue--I'm not seeing the connections
> closed in "minutes", I'm seeing them dropped
>
> So I want to connect FROM the indexer TO the DMZ host so the DMZ host can
> send log data back.
>
> Or to put it another way, the *client* opens the connection to the server
> and the server starts flowing data.
It doesn't matter to stunnel at all - all it cares about is what host/port
it should listen on, what host/port it should connect to, and which role
it should play in the TLS connection, nothing more.
> But if I have rsyslogd listening on 3002 ( on the Indexer (client) side,
> then the tunnel never gets initiated, and if I have rsyslogd set up to
> *send* from the DMZ (server) side I get:
OK, I didn't quite understand this from your original e-mail, sorry.
However, in your log:
> 2018.07.19 23:59:41 LOG7[24275:140358448011328]: Service
> [tunnel_from_10.3.209.52] accepted (FD=3) f rom 10.3.209.52:43042
[snip]
> 2018.07.19 23:59:41 LOG6[24275:140358448006912]: SSL accepted: new session
> negotiated
So far so good, but then...
> 2018.07.19 23:59:41 LOG3[24275:140358448006912]: connect_blocking: connect
> 127.0.0.1:3000: Connectio n refused (111)
...this particular stunnel instance could not connect to something
listening on port 3000 of its own host. What should be listening
there? Is it running? Is it listening? What does, e.g.
netstat -atn | fgrep -e ':3000'
...or maybe even:
lsof -n -i 4tcp:3000
say? What happens if - on this host - you try to do something like:
nc -v 127.0.0.1 3000
or:
telnet 127.0.0.1 3000
G'luck,
Peter
--
Peter Pentchev roam@{ringlet.net,debian.org,FreeBSD.org} [email protected]
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAltRen4ACgkQZR7vsCUn 3xNdFBAAxMqjFfL9tluaDv2x0GE5SRcEX5+9ZXfPkABch1kq336sTXXQKU54LgVa VQ/H02C9Doa9AVCVvtI3sPx1YLECADBJXb8AgXu35LaC8JgYO6ITPPIa/ov3yC/i +Es+g45AQk8PQbvgucWqErAUbODDnHN0p6dKkrBxyHEbGRzz/4iFm9GGUjEcRlJE NJhtZH4RUZT5iah/hvTxSjq/wNLU+RMDwUSzSlLQJFk/QpNZSTA0t/mXOhWWLg1l JPd8UAqkZl011gsP4F/mGVhHXiGFh+BD/LJ/3MhzWawDxU8z8zTyJjeJU3pATacx RKtpVLJ4FL8BI8EsvwnB4zk7VtU0UBa/bxklAL2qEsPE9dQAhe4XmgjAyr3dPlT4 cu+gOHWnuToHNYQeiowHmV3EgAxFydd0Zj7diRoBZi3LgbNsUwWEdqKdeLMfyGPs OWQmlmx/T2fsGm3BzGZWn1zws5ij9O7CPKuUWCeaNNbUWqkLMzfm72O9yRG0RCgb qsnYXdiPlglueZ5jJJy9kXCFJazqrVbioHGb245idDmgOhAVscDGdwWcwy1CKWc7 CQjUmoGfAmZw1+85eV6CGK4pVO2t4wVLciEyTzFTxjbp78CDzcjcdhgL4BI32u3a EmsdzXGfxD4lPT6mjYC+w3qVVx5TpT1F9wl7oUSSphVPgNYZEUU= =NVZI -----END PGP SIGNATURE-----