Operating System - HP-UX
1832973 Members
2379 Online
110048 Solutions
New Discussion

Re: sharing my xp dial-up with my c3600

 
SOLVED
Go to solution
Eric Bakken
Regular Advisor

sharing my xp dial-up with my c3600

At first I didn't think it would be possible to share my dial up with my workstation downstairs. I'm teaching myself HP-UX and lately i set up a network between my two compouters... so i routed xp box as a gateway for my hp box to use to get to the internet... and i was wondering if anyone knew how i can get a Web browser working with these conditions...

thanks in advance,

-Eric
17 REPLIES 17
RAC_1
Honored Contributor
Solution

Re: sharing my xp dial-up with my c3600

You can. Run some proxy server on XP box and point your brwoser on hp-ux to xp sever.
(apache would be good choice.)

There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: sharing my xp dial-up with my c3600

You can do it with Squid proxy server, get a windows version from http://www.acmeconsulting.it/pagine/opensource/download/squid.htm

Configure HP-UX Mozilla or Netscape to point XP machine as Proxy, then you can browse the web.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

thanks, i'll try this out tonight and get back to you in the morning...
Devender Khatana
Honored Contributor

Re: sharing my xp dial-up with my c3600

Hi,

The same shall be fine with proxy on XP box. Also you can choose Mozilla as a browser option on HPUx box. We are using same for quite some time now without problems.

HTH,
Devender
Impossible itself mentions "I m possible"
Mel Burslan
Honored Contributor

Re: sharing my xp dial-up with my c3600

Together with not being 100% sure, I think if you set your default route gateway to the ip address of your XP box, you should not need to have any proxy servers running on the xp box. Again, I am not a win XP expert and I don;t know how it handles the routing of foreign packets.

________________________________
UNIX because I majored in cryptology...
Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

ok, first problem, i cant figure out how to point the browser to anything...

second problem, I was able to open netscape one time, but i couldn't do anything with it... so i closed it and now when i try to open it i get this:

Xlib: connection to "hpbox:0.0" refused by server
Xlib: Client is not Authorized to connect to server
Error: Can't open display: hpbox:0.0
Error Couldn't find per display information
Steven E. Protter
Exalted Contributor

Re: sharing my xp dial-up with my c3600

The standard windows firewall blocks normal networking, including port 7000 network traffic in its highest setting.

You will need to adjust that to succeed.

Also, make sure the HP-UX box isn't running a firewall.

ps -ef | grep ipf

Last, assuming you have internet connection sharing working right on the XP box for say Windows clients, HP-UX will work just fine on the same connection with the XP box as gateway.

All you need to do is program the connection to remain constantly on the net.

hopefully you have unlimited local dialing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

sorry to Bump this old thread but I still cant get netscape working. does anyone know what this means?

Xlib: connection to "hpbox:0.0" refused by server
Xlib: Client is not Authorized to connect to server
Error: Can't open display: hpbox:0.0
Error Couldn't find per display information

Thanks for your time,

Eric
Devender Khatana
Honored Contributor

Re: sharing my xp dial-up with my c3600

Hi,

For Netscape to work you should be in xbrowser (Xterm) Only( Graphics Display)

After logging in to xbrowser, you need to set up DISPLAY variable correctly. It should be the IP of the PC/Sever running X-Window followed by the 0.0 or 1.0 like

$IP_OF_windows_PC:0.0

Or

$IP_OF_windows_PC:1.0

It depends on you session which you open. In the example above you mentioned hostname of the HP server itself, that is only correct if you have a local graphics console on the server.

The DISPLAY variable get set by itself when you log in to server using xmanager. Confirm it by

#echo $DISPLAY

Also does other x-term windows open normally apart from netscape.

HTH,
Devender
Impossible itself mentions "I m possible"
Sivakumar TS
Honored Contributor

Re: sharing my xp dial-up with my c3600


Dear Eric,

If you have a linux system try using squid.

It works well as a proxy and cache server too.

With Regards,

Siva.
Nothing is Impossible !
Tom Ward_1
Honored Contributor

Re: sharing my xp dial-up with my c3600

Hello Eric,

How are you connected to your c3600? Do you have a display on it and is it running X windows (CDE or Gnome)?

If so then you've got a problem with the X configuration on the workstation. You can try "xhost +hpbox". Have you done any hardening on the HP box such as Bastille?

If you're connecting from your PC to the c3600 you will need an X server on the PC and you'll need to set your DISPLAY back to the PC. Cygwin can work for a free X server on a window s PC. http://x.cygwin.com/

Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

After Fiddling around for a while, I Tried the xhost +hpbox command and it worked, netscape comes up now. I still need to figure out the routing for my strange little network though.

Network: 192.168.0.0
PC: 192.168.0.1 (When i set my Internet connection to share, It forced my IP to this, otherwise it would be for router)

C3600: 192.168.0.3
Router: 192.168.0.2

Internet Connection: Dial up with dynamic IP.

How would i go about this, I haven't had to route Before and Trial and Error doesn't seem to be working... Thanks,

Eric
Mel Burslan
Honored Contributor

Re: sharing my xp dial-up with my c3600

on your hp workstation, if the default route does not exists or points to a different ip, you need to make sure it routes thru not the router but the WinXP box, i.e., on the hp wkstn, when you run

netstat -rn

you should see a line like this:


default 192.168.0.1 UG 0 lan1 0

(lan1 may be lan0 or lanX for you, it does not really matter)

if it is not that way, then

1) if you do not see a line with a default route at the output, you need to execute this:

route add default 192.168.0.1 1

2) if you see a default route pointing to, lets say 192.168.0.2, then you need to do the following:

route delete default 192.168.0.2
route add default 192.168.0.1 1

after this is done, make sure you have the default route pointing to the WinXP wkstn.
________________________________
UNIX because I majored in cryptology...
Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

I've got the routing tables set up correctlty but when i open Netscape I get this message:

Perhaps there is a problem with your name server? if your site must use a non-root name server, you will need to set the $SOCKS_NS environment variable to point at the appropreate name server. It may (or may not) be necessary to set this variable, or the SOCKS Host preference, to the IP address of the host in question rather than it's name.

Consult your system Administrator.

and then i still cant connect to the internet, i'm fairly confident that my routes are correct and it has something to do with this message...
Tom Ward_1
Honored Contributor

Re: sharing my xp dial-up with my c3600

Hello Eric,

Can you resolve names from your HP box? What do you get when you run "nslookup www.yahoo.com"?

If you can't resolve external addresses try updating your resolv.conf file to include one of your DNS server IPs. You can get that from your Windows box with "ipconfig /all".

If you can resolve www.yahoo.com then try to ping it. If that works, try netscape again.

Good luck,
Tom
Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

Thanks for pointing me in the right direction... I finally got through to the internet today. My /etc/resolv.conf looks like this:

domain barak.pressenter.com
nameserver 69.58.128.24
search barak.pressenter.com

and my routing table looks like this:

Routing tables
Destination Gateway Flags Refs Interface mtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.0.3 192.168.0.3 UH 0 lan0 4136
192.168.0.2 192.168.0.3 UH 0 lan0 192.168.0.0 192.168.0.3 U 2 lan0 1500
default 192.168.0.1 UG 0 lan0

Also, i did a "set_parms initial" command to do a more structured setup... thanks again for helping me out,
-Eric
Eric Bakken
Regular Advisor

Re: sharing my xp dial-up with my c3600

Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.0.3 192.168.0.3 UH 0 lan0 4136
192.168.0.2 192.168.0.3 UH 0 lan0 0
192.168.0.0 192.168.0.3 U 2 lan0 1500
default 192.168.0.1 UG 0 lan0 0