Re: How to log inbound IPs on telnet connection?





On Jun 26, 2011, at 8:29 PM, William Hopkins <we.hopkins@xxxxxxxxx> wrote:

On 06/26/11 at 05:18pm, Alexander Lardner wrote:
Hello,
I run a vintage BBS on my Debian box that uses telnet for connections.
By default, the software is written to accept connections on port
1234, as opposed to 23 as is default for telnet. I use a little
utility called redir that takes inbound connections on port 23 and
reroutes them locally to port 1234. The problem is, it shows that
users connected from localhost as opposed to their actual IP. I need a
way to be able to log IPs to ban troublemakers. Is there a program or
script to log inbound IPs?

Probably you would be well served by IPtables instead of your 'redir' utility.
Look into the REDIRECT target in the nat table.
See if this modifies what the inbound IP appears to be.

--
Liam
Actually, I beat you to it. Got thinking and bit the bullet. :)

-Alex

--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/72B5D469-D61A-4864-BF2F-06B994FA5BAB@xxxxxxxxx



Relevant Pages

  • Re: Cant connect to port 25 from another system
    ... port 25 and did a make to update sendmail.cf. ... restarted sendmail. ... When I attempt to telnet to port 25 the connection fails. ... on where outbound smtp connections are okay but smtp sessions ...
    (Fedora)
  • Re: Cant connect to port 25 from another system
    ... Maybe there is a strict definition on which connections ... I have sendmail running ... Both netstat and nmap confirm that the system *is* listening on port ... When I attempt to telnet to port 25 the connection fails. ...
    (Fedora)
  • Re: IP Blocker in SBS2003 exchange
    ... you can't guarantee his mail will even stay on the server. ... >> What I was trying to explain in the telnet section was that I realise ... >> the server is listening for connections on ports 110 and 25. ... >> but he can connect to port 110. ...
    (microsoft.public.windows.server.sbs)
  • Re: telnet on local LAN question
    ... Active Internet connections ... connections from all addresses any originating port which is ... telnet to self through port 25 and telnet to the other machine through ...
    (Fedora)
  • Re: Need help with bandwidth management . . .
    ... also be a good time to separate the wired from the wireless parts of ... wired connections. ... QoS lan port settings, and I cannot get anything consistent. ... switch ports and limit the bandwidth per port (the settings are ...
    (alt.internet.wireless)