Selecting Default Gateway

C

Cosmic Cruizer

I'm using IO::Socket to test a port on a remote server on the Internet from
our intranet. I need to make sure I go through the same proxy server each
time. I believe I can direct my port probe to use the proxy server as the
default gateway, which would solve my problem. From what I can tell,
IO::Socket does not allow me to do that.

Is there a module that will let me enter a value for a default gateway so I
can dictate which proxy server I want to pass through?
 
C

Cosmic Cruizer

_
Cosmic Cruizer ([email protected]) wrote on VCCCXLIV September
MCMXCIII in
<URL:-- I'm
using IO::Socket to test a port on a remote server on the Internet
from -- our intranet. I need to make sure I go through the same proxy
server each -- time. I believe I can direct my port probe to use the
proxy server as the -- default gateway, which would solve my problem.
From what I can tell, -- IO::Socket does not allow me to do that.


Sure it does. If you are using a proxy on server proxy.example.com,
you're making a socket connection to proxy.example.com - not to
whatever server you are trying to reach through the proxy.


-- Is there a module that will let me enter a value for a default
gateway so I -- can dictate which proxy server I want to pass
through?


Maybe.

You aren't telling us what the protocol is you are using. If you're
trying to connect an HTTP server, there are several modules available
that can work through a proxy server.

But if it's some other protocol, you may be out of luck. Then you have
to talk that protocol yourself - but you would have to do that with
IO::Socket anyway.


Abigail

So for this example, let's say I have the folowing:

Internet destination is www.internet.com port 80
My server is 10.10.10.5
The proxy servers are 10.10.10.50 and 10.10.20.50.

I want to go from my server, through the proxy at 10.10.20.50 to port 80
on www.internet.com. Port 25 is another port I might want to touch on the
Internet server.
 
C

Cosmic Cruizer

_
Cosmic Cruizer ([email protected]) wrote on VCCCXLIV September
MCMXCIII in
<URL://
//
// > _
// > Cosmic Cruizer ([email protected]) wrote on VCCCXLIV
September // > MCMXCIII in
// > <URL:--
I'm // > using IO::Socket to test a port on a remote server on the
Internet // > from -- our intranet. I need to make sure I go through
the same proxy // > server each -- time. I believe I can direct my
port probe to use the // > proxy server as the -- default gateway,
which would solve my problem. // > From what I can tell, --
IO::Socket does not allow me to do that. // >
// >
// > Sure it does. If you are using a proxy on server
proxy.example.com, // > you're making a socket connection to
proxy.example.com - not to // > whatever server you are trying to
reach through the proxy. // >
// >
// > -- Is there a module that will let me enter a value for a
default // > gateway so I -- can dictate which proxy server I want to
pass // > through?
// >
// >
// > Maybe.
// >
// > You aren't telling us what the protocol is you are using. If
you're // > trying to connect an HTTP server, there are several
modules available // > that can work through a proxy server.
// >
// > But if it's some other protocol, you may be out of luck. Then you
have // > to talk that protocol yourself - but you would have to do
that with // > IO::Socket anyway.
// >
// >
// > Abigail
//
// So for this example, let's say I have the folowing:
//
// Internet destination is www.internet.com port 80
// My server is 10.10.10.5
// The proxy servers are 10.10.10.50 and 10.10.20.50.
//
// I want to go from my server, through the proxy at 10.10.20.50 to
port 80 // on www.internet.com.


I'd use LWP::Simple.


// Port 25 is another port I might want to touch
on the // Internet server.


What's an "Internet server"?



Abigail

Looks like you got me pointed in the right direction. From what I'm
reading, LWP::UserAgent is what I need/want.

Thank you very much Abigail!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top