Skip to contentSkip to conversation

IRC and ident with iptables

DISCUSSION Alexander Salmin 2 participants 2 messages Jun 5, 2005

lore
Share & tools
lore
#0 lore raw

Hi.

I've set up my firewall so that it provides NAT for a small network. That network has about 10 computers who are beeing used by diffrent users. The problem is that I can't find a way to make the IRC-servers that those computers are connected to recognize each computers diffrent ident. So, what I would like to know is if there is a way to make iptables recognize to whom it should portforward to, based of what internal ip that is connecting. Can it be done? If not, is there any identd-server for Linux 2.6 that you know could do this?

-Alexander

#1 lore raw
Quoted 3 lines · Alexander Salmin

diffrent ident. So, what I would like to know is if there is a way to make iptables recognize to whom it should portforward to, based of what internal ip that is connecting. Can it be done? If not, is there

That would be tricky, but perhaps possible using some extension of connection tracking ... whoever makes a new connection to an ircd is going to get the next ident query from that IP.

Quoted 1 line

any identd-server for Linux 2.6 that you know could do this?

This is how I'd go about it. I've seen numerous identd's listed on freshmeat which claim to be able to do this. It wouldn't be that complicated, I think: look up the connection in ip_conntrack, query the appropriate internal identd, give that reply to the external client.

Signature · 2 lines
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header