Re: How to log inbound IPs on telnet connection?
- From: Alexander Lardner <linuxtux37@xxxxxxxxx>
- Date: Sun, 26 Jun 2011 20:34:37 -0700
On Jun 26, 2011, at 8:29 PM, William Hopkins <we.hopkins@xxxxxxxxx> wrote:
On 06/26/11 at 05:18pm, Alexander Lardner wrote:Actually, I beat you to it. Got thinking and bit the bullet. :)
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.
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Prev by Date: Re: X on a virtual server
- Next by Date: Re: X on a virtual server
- Previous by thread: Re: How to log inbound IPs on telnet connection?
- Next by thread: Default paper size in LibreOffice