[EMAIL PROTECTED] ([EMAIL PROTECTED]) said something that sounded like:
> I have a question concerning Exceed and NAT. I have a firewall with
> checkpoint fw-1 v4.0 running on it. Due to some IP address problems I have
> to use nat for the source and destination ip address from the client (NT-PC
> with exceed) towards the server Unix machine.
> PC----FW----. . . ---Unix server. The nat works fine.
Assuming I read you right, we have a very similar setup here. It's a pain,
but that is to be expected with the complexity of some networks.
> Does anybody know how to solve this problem.
We run a perl script that will determine the internal NAT address and give
this to X programs. We then run commands as follows:
xterm -display `find_xclient`:0.0
I've included the brain dead script which has some pathnames in it that
will probably not be appropriate for your site.
> e.g. which button to press that the client is sending his
> valid address in the udp packet?
If someone finds a button, I would love it!
Ciao,
--
Pug Bainter | AMD, Inc.
System Engineer, MTS | Mail Stop 625
[EMAIL PROTECTED] | [EMAIL PROTECTED] | 5900 E. Ben White Blvd
Phone: (512) 602-0364 | Fax: (512) 602-6970 | Austin, TX 78741
Note: The views may not reflect my employers, or even my own for that matter.
#!/tool/pandora/bin/perl
#open (STDERR, "/dev/null");
use Socket;
if (-S STDIN) {
($port, $myaddr) = sockaddr_in(getpeername(STDIN));
$display = inet_ntoa($myaddr);
if ($display !~ /^\s*$/) { print "$display"; exit; }
}
if (`uname` =~ /sunos|linux/i) {
$lsof = `/tool/pandora/bin/lsof -i -a -p \$\$`;
($display) = $lsof =~ /TCP .*:.*->(.*):/;
}
elsif (`uname` =~ /hp-ux/i) {
if (`/etc/get_os` !~ /64$/) {
$lsof = `/tool/pandora/bin/lsof -i -a -p \$\$`;
($display) = $lsof =~ /TCP .*:.*->(.*):/;
}
}
if ($display !~ /^\s*$/) { print "$display"; exit; }
if (`uname` =~ /sunos/i) {
$whoami = `/usr/bin/who -m`;
($display) = $whoami =~ /\((.*)\)/;
}
elsif (`uname` =~ /linux/i) {
$whoami = `/usr/bin/who -ml`;
($display) = $whoami =~ /\((.*)\)/;
}
elsif (`uname` =~ /hp-ux/i) {
$whoami = `/usr/bin/who -Tm`;
($display) = $whoami =~ /\s+(\S*)$/;
}
if ($display !~ /^\s*$/) { print "$display"; exit; }
print "What?!?!\n";