Skip to contentSkip to conversation

iptables with irc and auth

DISCUSSION [email protected] 4 participants 4 messages Jan 10, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

I am trying to configure iptables so that when I connect to IRC on port 6667 it will allow the auth connection back on 113 from that IP address.

I have both inbound and outbound rules on the system. When I try any of the state information it wont work. Im guessing thats because the iptables config cant see that its a related connection. Is there any way that I can setup iptables so that it will allow AUTH only if im connected on port 6667 to that same IP?

thanks

Jimmy.

#1 lore raw

Hi,

On Mon, Jan 10, 2005 at 10:59:49AM -0000, [email protected] told us:

Quoted 10 lines

Hello,

I am trying to configure iptables so that when I connect to IRC on port 6667 it will allow the auth connection back on 113 from that IP address.

I have both inbound and outbound rules on the system. When I try any of the state information it wont work. Im guessing thats because the iptables config cant see that its a related connection. Is there any way that I can setup iptables so that it will allow AUTH only if im connected on port 6667 to that same IP?

use ipt_recent, see

http://snowman.net/projects/ipt_recent/

HTH

Sven

Quoted 6 lines

thanks

Jimmy.

Signature · 2 lines
Linux zion 2.6.10-bk7 #0 Fri Jan 7 19:08:39 CET 2005 i686 athlon i386 GNU/Linux
 12:30:23 up 2 days, 17:07,  1 user,  load average: 0.07, 0.06, 0.05
#2 lore raw
In reply to [email protected]
Quoted 2 lines · On Mon, Jan 10, 2005 at 10:59:49AM -0000, [email protected] wrote:

I am trying to configure iptables so that when I connect to IRC on port 6667 it will allow the auth connection back on 113 from that IP address.

Do you really have an identd running on that port? If so, why don't you open the port generally? If you don't have identd running, a --jump REJECT will do just fine.

Greetings
Marc

Signature · 4 lines
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835
#3 lore raw
In reply to [email protected]
Quoted 11 lines · [email protected] schrieb:

Hello,

I am trying to configure iptables so that when I connect to IRC on port 6667 it will allow the auth connection back on 113 from that IP address.

I have both inbound and outbound rules on the system. When I try any of the state information it wont work. Im guessing thats because the iptables config cant see that its a related connection. Is there any way that I can setup iptables so that it will allow AUTH only if im connected on port 6667 to that same IP?

Quoted 4 lines

thanks

Jimmy.

Perhaps the conntrack and helper module for IRC will help you, ip_conntrack_irc and ip_nat_irc.

--

PGP-ID 0xF8EAF138