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 5D2F93FBCE for ; Wed, 12 Jun 2002 23:38:47 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g5D3ckt32016 for axp-list@listman.redhat.com; Wed, 12 Jun 2002 23:38:46 -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 g5D3cj332012 for ; Wed, 12 Jun 2002 23:38:45 -0400 Received: from exchange.world.net ([203.53.213.67]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g5D3UL923615 for ; Wed, 12 Jun 2002 23:30:21 -0400 Received: by EXCHANGE with Internet Mail Service (5.5.2653.19) id ; Thu, 13 Jun 2002 13:36:19 +1000 Message-ID: <6416776FCC55D511BC4E0090274EFEF502D44480@EXCHANGE> From: Collin Baillie To: "'axp-list@redhat.com'" Subject: Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqadm po rt forwarding?? Date: Thu, 13 Jun 2002 13:36:18 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" 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: 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