Selecting Default Gateway
Selecting Default Gateway
am 18.04.2008 19:45:30 von 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?
Re: Selecting Default Gateway
am 18.04.2008 22:05:06 von Abigail
_
Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
MCMXCIII in :
-- 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
--
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'
Re: Selecting Default Gateway
am 18.04.2008 23:16:50 von Cosmic Cruizer
Abigail wrote in
news:slrng0hvni.oar.abigail@alexandra.abigail.be:
> _
> Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
> MCMXCIII in
> : -- 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.
Re: Selecting Default Gateway
am 20.04.2008 00:09:36 von Abigail
_
Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
MCMXCIII in :
// Abigail wrote in
// news:slrng0hvni.oar.abigail@alexandra.abigail.be:
//
// > _
// > Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
// > MCMXCIII in
// > : -- 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
--
perl -wle 'eval {die ["Just another Perl Hacker"]}; print ${$@}[$#{@${@}}]'
Re: Selecting Default Gateway
am 21.04.2008 02:21:21 von Cosmic Cruizer
Abigail wrote in
news:slrng0krd0.veg.abigail@alexandra.abigail.be:
> _
> Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
> MCMXCIII in
> : //
> Abigail wrote in //
> news:slrng0hvni.oar.abigail@alexandra.abigail.be: //
> // > _
> // > Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV
> September // > MCMXCIII in
> // > : --
> 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!