* RE: Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqad m po rt forwarding??
@ 2002-06-13 12:01 Benton, Marco
0 siblings, 0 replies; 3+ messages in thread
From: Benton, Marco @ 2002-06-13 12:01 UTC (permalink / raw)
To: 'axp-list@redhat.com'
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqad m po rt forwarding??
@ 2002-06-15 9:04 Collin Baillie
0 siblings, 0 replies; 3+ messages in thread
From: Collin Baillie @ 2002-06-15 9:04 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Nothing. It just shows traffic on the network for "who" and the windoze
equivalent...
-----Original Message-----
From: Benton, Marco [mailto:BENTONM@polaroid.com]
Sent: Thursday, 13 June 2002 10:02 PM
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqad m po rt forwarding??
@ 2002-06-15 9:44 Collin Baillie
0 siblings, 0 replies; 3+ messages in thread
From: Collin Baillie @ 2002-06-15 9:44 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Ok, does anyone have a gun? I worked it out. Right after I did:
traceroute <some_external_ip> and got:
"No route to host"
No default route.. added it, and it worked perfectly.. *blush*
Collin
-----Original Message-----
From: Benton, Marco [mailto:BENTONM@polaroid.com]
Sent: Thursday, 13 June 2002 10:02 PM
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-15 9:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-15 9:04 Does Tru64 (5.0a) like to talk with linux IPchains / Ipmasqad m po rt forwarding?? Collin Baillie
-- strict thread matches above, loose matches on Subject: below --
2002-06-15 9:44 Collin Baillie
2002-06-13 12:01 Benton, Marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox