Re: "Reverse" tunneling with stunnel.
Peter Pentchev <[email protected]>
| Newsgroups | gmane.network.stunnel.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jul 17, 2018 at 10:51:07PM -0600, C. Petro wrote: > I have a client who is setting up a logging infrastructure involving a > couple of DMZs forwarding logs into central logging points. > > They have to pass compliance audits (SOX, PCI at least) and have some > rather specific desires in regards to how they want the log traffic to > move, and which servers *initiate* the connections. > > Which is to say they want the internal servers to set up tunnels to the DMZ > servers and then the forwarders use that tunnel to deliver logs back. ...oof. I went back and reread your original message more carefully. The truth is, stunnel cannot really do what you want :( It seems to me that what you want could be accomplished with OpenSSH and its remote connection forwarding: set up an SSH server in the DMZ, generate a (possibly passphraseless) key pair on the central server, add the public key to an the authorized_keys file of an unprivileged account on the DMZ server, and then, on the central server (again, from an unprivileged account), run a command like: ssh -N -R 3000:localhost:3000 [email protected] Then SSH will listen for incoming connections on 127.0.0.1:3000 on the DMZ server and, when a connection comes in, create a connection from 127.0.0.1 to 127.0.0.1:3000 on the central server and start forwarding data. If needed, the OpenSSH server on the DMZ host may be configured so that it is very restricted: only public-key authentication, only certain users may connect, only certain commands may be executed, etc. Apologies for not reading your first message carefully enough! 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----- iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAltSALUACgkQZR7vsCUn 3xM/Vg//UScAKviarWB4yy+AMcAgtd2d20M4hTFmFRhO8v4i+YnjLsNehtQo2+FV L9XiiFLf7+BPZDS2cDWsTTjUsfUbUEwJX6TrfbVDKND82QMX/oPXxX7UQ6lUg7I5 SBYswGAM8nMuR+q/TuIbHX9OVDl7ilprPun9LEzZVfxYCbgQhyf6QBjbSFicCTrW V7Zo0aDCWLVvoyuidoti10kvA9uqED24r26ipnsrxXE8PrYHsIELpZNCSsQdFIeM ld8AB0jJxFGJ1Q08wtWYiuF3mFOx4X2G2dtNTd+VJq69dOS75cHBgwYBlsI0Wa1m sUNTlc/U5MwZGX/wkCA+8Io9iC0M/JqFEgKluD9MBr+E3R72P/TY35+d9r4/38nu 353DQap83wW6QOTmATqIOtwWBqHfFwZnkaerF8Z7RTBBPmIFSVH5cFe5HNXglwfQ o8Kvx6S/e+FhwUMrB9dh+HWPS0JyyIn0OMp0m5RI8zWQRdfJjj6GfCGNQbWpJXdm fWKauuNghbkrCBdSyt6880ewq7yySmltffRVKVcMJ14YvUwJ7+40c37dawlYtQLU AnxEUgx+lBIMAXlkEG20p7wFQHUeLVf1+yLl8qTiNpc1rDrIrx6VZLvVcdROSM3q CSPEvP0Au3tzs1o6KilpLIOLVSehQ0rHnwK/qYIBu1ocVKcA5Yw= =cqcE -----END PGP SIGNATURE-----