Operating System - HP-UX
1836535 Members
4800 Online
110102 Solutions
New Discussion

Mozilla connection refused using firewall and putty

 

Mozilla connection refused using firewall and putty

Problem using mozilla for kernel parameters in sam in a putty window through a firewall.

Connecting to IA64 via putty through a firewall with X11 forwarding turned on.

I connect as normal user, su to root performing:

normal@remote$ xauth nextract - $DISPLAY | xauth -f /tmp/root.xauth nmerge -

normal@remote$ echo $DISPLAY > /tmp/root.display

normal@remote$ chmod 700 /tmp/root.xauth /tmp/root.display

normal@remote$ chown root /tmp/root.xauth /tmp/root.display

normal@remote$ su - root

root@remote$ export
XAUTHORITY=/tmp/root.xauth

root@remote$ export DISPLAY=$(cat /tmp/root.display)

I can now start up gui sam which works.

I go to Kernel tuning kcweb and it starts up a Mozilla window on my local P.C. but then fails with the message
"The connection was refused when attempting to contact remote:1188"

Now, I believe Mozilla is running on the remote host so it should be able to see port 1188 on the same host.
3 REPLIES 3
paolo barila
Valued Contributor

Re: Mozilla connection refused using firewall and putty

Yes you're right,

I did exactly your procedure with the same box and sw and it works, I see a Mozilla with

https://hostname:1188/casey/top.cgi

So I think that nothing is listening on your port 1188, try

# netstat -a | grep 1188 # I have:
tcp 0 0 *.1188 *.* LISTEN
tcp 0 0 *.1188 *.* LISTEN

by the way there's an apache serving it.

Paolo
share share share
Muthukumar_5
Honored Contributor

Re: Mozilla connection refused using firewall and putty

The connection was refused when attempting to contact remote:1188 is saying that there is a port restriction. Check the machine where mozilla is running with /etc/services.

Check port start with netstat -na or lsof tool. It has to show the LISTEN state to give service to other clients.

--
Muthu
Easy to suggest when don't know about the problem!

Re: Mozilla connection refused using firewall and putty

I tried it again to check for to see if it is indeed listening on that port, and it worked this time.

I don't think I did anything differently.

Thank you for your insights.