Re: directing to specific outgoing port



how wrote:
Dennis de Wit wrote:
Mumia W. wrote:
On 08/31/2006 12:51 AM, howfuchs@xxxxxxxxx wrote:
I have a command line script which uses php curl to go out to the
internet to retrieve some information. Now this works fine in most
situations except when trying to get of a network where the network
firewall is blocking a range of outgoing ports.I am told by the
'gatekeeper' that the script accesses different ports each time it
tries to get out to the internet. My question is: Can I programatically
direct my script to go out of a specific port that I know is open?

Appreciate any help.

Howard

I can't see anything in the WWW::Curl::easy documentation that shows how
to specify the source port. You probably could perform the change at the
O/S level.

<OT>
For Linux, you could get the kernel source and read
Documentation/networking/ip-sysctl.txt; look at the ip_local_port_range
option.

For Windows, ?


I don't think this can be done on Windows. I also don't think your
fireawll is blocking your outgoing ports, but looks at the port you're
trying to connect to, and blocks it then. It doesn't make sense to block
traffic coming from random ports, without knowing what protocol is used.

But... I'm not a firewall expert, so I might be wrong.

Dennis

On my home network where this works fine, as far as I can from my
firewall window, it seems to be going out of a tight range of ports.
Where the problem is occurring I am told it trying to go out of a wide
range of ports. They are prepared to open one specific port for me. I
know the orginating computer ( where the program will be run) is a
Windows machine, but I have no other information about the network.

Any further information, would be appreaciated.

Howard


As outgoing ports are randomly chosen, it sounds weird to me that they block those ports. It would mean that that machine cannot establish an outgoing connection for _any_ protocol.

Besides, I don't think you can manipulate the outgoing port on windows. (I also don't think you should want to)

what kind of access do you have to this specific windows machine? Can you use telnet or a remote desktop of some kind?

Do you know whether or not this system is able to connect anything from the inside? (can it start internet explorer and browse the web?)

Dennis
.



Relevant Pages

  • Re: XP SP2 and ports required to view a remote event log
    ... So for Windows XP SP2 with an enabled firewall, to handle this, ... Group Policy Settings Reference for Windows XP Professional Service Pack 2 ... Windows Firewall: Allow remote administration exception ... TCP ports 135 and 445. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Windows Firewall on Domain Controllers
    ... Are you talking about Windows 2003 or Windows XP? ... confgured for all the AD ports and you do some voodoo with RPC ports. ... Don't use firewall on a DC, use a diferent machine, if you can don't join ... Global Catalog Server TCP 3269 ...
    (microsoft.public.windows.server.active_directory)
  • Re: NETFW.INF, Preconfigured Firewall settings and dialogs
    ... it is Windows Server 2003 SP1 firewall that i'm using. ... Using the document '832017 Port Requirements for the Microsoft Windows ... > to achieve the following goal: some ports are open by default and others ...
    (microsoft.public.windows.server.networking)
  • Re: "Network" icon
    ... To close a number of ports, GRC suggests to use the Network icon and re-configure bindings to a certain indicted form. ... There seems to be no control of Server Types, no way to uncheck "i want to enable NetBIOS over TCP/IP" on any and all protocol lines, no way to install NetBEUI, and no way to change/set hardware adaptor bindings. ... 1- The information on the GRC page is severely out of date, it was written pre Windows 2000, it makes absolutely no mention at all of any operating systems post 1998. ...
    (microsoft.public.win2000.general)
  • Re: Strange ports open
    ... but both NetBIOS / Windows networking and Exchange open ... I recommend keeping a log of the ports found open ... Administration Tools [Server Manager, User Manager, Event Viewer, Registry ...
    (microsoft.public.security)