Page 1 of 1

Ident doesn't work with RouterOS

Posted: Sun Aug 29, 2010 3:09 pm
by negge
Hi guys,

I'm trying to figure out a way to run an ident daemon on a NATed server behind a RouterOS router. The thing is that all daemons out there work out of the box with a standard SOHO router, but not with RouterOS. The way I see it is that RouterOS changes the port of a packet when it NATs them, but ident doesn't understand that so it can't find the proper connection (read up a bit on how ident works if you don't know what I'm talking about), while a standard SOHO router doesn't do that.

So my question is, has anyone here gotten ident to work with a RouterOS NAT setup? Or is there a way to tell RouterOS to only change the address (not the port) of NATted packages?

Sincere thanks,

negge

Re: Ident doesn't work with RouterOS

Posted: Mon Sep 13, 2010 7:22 pm
by Chupaka
any example and how you want it to be?..

Re: Ident doesn't work with RouterOS

Posted: Mon Sep 13, 2010 7:45 pm
by psamsig
all daemons out there work out of the box with a standard SOHO router
I tend to disagree on that, no router, SOHO or otherwise, I have ever layed my hands on, come with preconfigured inbound NAT, at most they may come with preenabled UPnP (shiver).
Never the less, it should be easy enough (especially if you read up on how NAT works in RouterOS)
Given that you WAN interface is named Wan, that it has IP 1.1.1.1 and that your ident daemon is on 192.168.1.1, then this should get you up and running
/ip firewall nat
add action=dst-nat chain=dstnat comment="" disabled=no dst-address=1.1.1.1 dst-port=113 in-interface=Wan protocol=tcp to-addresses=192.168.1.1