From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id E2EAB3EA3B for ; Thu, 13 Jun 2002 08:04:57 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g5DC4uA18084 for axp-list@listman.redhat.com; Thu, 13 Jun 2002 08:04:56 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g5DC4u318080 for ; Thu, 13 Jun 2002 08:04:56 -0400 Received: from outgoing.polaroid.com (outgoing.polaroid.com [137.252.9.16]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g5DBuU915298 for ; Thu, 13 Jun 2002 07:56:30 -0400 Received: from muddy.polaroid.com ([137.252.84.248]) by outgoing.polaroid.com (8.11.6/8.11.6) with ESMTP id g5DC4ro103061 for ; Thu, 13 Jun 2002 08:04:53 -0400 (EDT) Received: by port.polaroid.com with Internet Mail Service (5.5.2650.21) id ; Thu, 13 Jun 2002 08:04:34 -0400 Message-ID: From: "Benton, Marco " To: "'axp-list@redhat.com'" Subject: RE: Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqad m po rt forwarding?? Date: Thu, 13 Jun 2002 08:01:51 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Filter-Version: 1.7 (outgoing.polaroid.com) X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: what does "tcpdump -i tu0 ip" on the DUNIX box say? that should tell you all that the interface sees. you just have to make sure you create the packetfilter devices: "cd /dev ; ./MAKEDEV pfilt". i've done this long long long ago and it works fine... (before all this was integrated into the kernel) -----Original Message----- From: Collin Baillie [mailto:Collin.Baillie@world.net] Sent: Wednesday, June 12, 2002 11:36 PM To: 'axp-list@redhat.com' Subject: Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqadm po rt forwarding?? Hi guys, I'm trying to setup a port forward from my intel linux gateway to my Tru64 5.0a PWS on an internal private IP. As far as I can see, I've got the ipchains rules correct, the ipmasqadm rules correct, and linux is indeed doing the port forwarding, but as far as the PWS is concerned it sees nothing. I *think* (from firewall log output) eth0 is transmitting the IP address that the packet originated from and Tru64 is ignoring it because it believes itself to be on a different network. See diagram below. Linux 2.2.19 Tru64 5.0a -- +---------------+ +-----------+ ( )__ Port | Linux gateway | Port | PWS 600au | )__ 7777-+---------------+-----> 22 | | Internet )---------------| eth1 eth0 |-----------| tu0 | -- | Intel | | | __) +---------------+ +-----------+ (__) External Host External Int'face Int Int'face Single Int'face ttt.uuu.vvv.www aaa.bbb.ccc.ddd 10.0.0.1 10.0.0.25 So port 7777 on aaa.bbb.ccc.ddd is set to port-forward to port 22 on 10.0.0.25. Example from the firewall log: ------------------------------ Jun 11 15:23:18 gateway kernel: Packet log: input ACCEPT eth1 PROTO=6 ttt.uuu.vvv.www:61226 aaa.bbb.ccc.ddd:5567 L=48 S=0x00 I=50783 F=0x4000 T=118 SYN (#1) Jun 11 15:23:18 gateway kernel: Packet log: output ACCEPT eth0 PROTO=6 ttt.uuu.vvv.www:61226 10.0.0.25:22 L=48 S=0x00 I=50783 F=0x4000 T=117 SYN (#2) Netstat says this: IP masquerading entries prot expire source destination ports tcp 0:58.83 pws600au.local.net ttt.uuu.vvv.www ssh -> 61911 (5567) My firewall script looks like this: -----schnip----- #!/bin/sh _ipchains="/sbin/ipchains" _ipmasqadm="/usr/sbin/ipmasqadm" _extip="`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`" _extif="eth1" ############################################################################ ### # Setup firewall timeout values # ${_ipchains} -M -S 3600 10 60 ############################################################################ ### # Flush existing rulesets # ${_ipchains} -F input ${_ipchains} -F output ${_ipchains} -F forward ${_ipmasqadm} portfw -f ############################################################################ ### # Setup default forwarding policy to reject. # Add forward policy of MASQ for internal network # ${_ipchains} -P forward REJECT ${_ipchains} -A forward -s ${_intnet} -j MASQ ############################################################################ ### # Setup portforwarding to cypress. # ${_ipchains} -A input -i ${_extif} -s 0/0 -d 0/0 -j ACCEPT -l ${_ipmasqadm} portfw -a -P tcp -L ${_extip} 5567 -R 10.0.0.25 22 -----schnap----- All I can think is that I have to use NAT 'cause Tru64 is ignoring the ttt.uuu.vvv.www IP which is being transmitted on the 10.0.0.0 network.. What do you think???? Collin _______________________________________________ Axp-list mailing list Axp-list@redhat.com https://listman.redhat.com/mailman/listinfo/axp-list