Click here to get back home

Selecting Default Gateway

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Selecting Default Gateway Cosmic Cruizer 04-18-2008
Get Chitika Premium
Posted by Cosmic Cruizer on April 18, 2008, 1:45 pm
Please log in for more thread options
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?

Posted by Abigail on April 18, 2008, 4:05 pm
Please log in for more thread options
_
Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
-- 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")}'

Posted by Cosmic Cruizer on April 18, 2008, 5:16 pm
Please log in for more thread options

> _
> Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
> MCMXCIII in
> 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.

Posted by Abigail on April 19, 2008, 6:09 pm
Please log in for more thread options
_
Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
//
// > _
// > Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
// > MCMXCIII in
// > 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 $[$#}]'

Posted by Cosmic Cruizer on April 20, 2008, 8:21 pm
Please log in for more thread options

> _
> Cosmic Cruizer (XXjbhuntxx@white-star.com) wrote on VCCCXLIV September
> MCMXCIII in
> // > _
> // > 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!

Similar ThreadsPosted
Ciscotutorials.info is your gateway to the best October 10, 2007, 4:02 am
Secure VPN Gateway - a Perl solution January 2, 2007, 7:31 pm
http://search.cpan.org/ getting 502 Bad Gateway error September 18, 2005, 1:50 pm
AWLP turns your PC into web-managed wireless access gateway January 4, 2005, 3:51 am
www.hetong168.com Chinese biggest contract website first A2A gateway October 17, 2005, 11:02 pm
selecting STDOUT AND STDERR December 20, 2004, 1:59 pm
selecting particular form with field May 3, 2007, 5:12 pm
Selecting a variable - Newbie question June 15, 2005, 8:03 am
Selecting all printable characters (regex) August 3, 2005, 6:07 am
Selecting directories containing specific fileglobs March 10, 2006, 6:26 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap