Re: directing to specific outgoing port



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, ?


.



Relevant Pages

  • Re: Linux als Router
    ... # Enter all trusted network interfaces here. ... # which should be available to the internet and set FW_ROUTE to yes. ... space separated list of ports, ... # Packets to silently reject without log message. ...
    (de.comp.os.unix.linux.misc)
  • Re: Using Remote Desktop From an SBS Domain
    ... I don't have much experience with this type of Internet access (at least not ... allows all "outbound" traffic from your private network to flow freely to ... UDP port (synchronize time with an external Network Time ... Hopefully next week I can attempt a connection while my ISP watches the ...
    (microsoft.public.windows.server.sbs)
  • Re: Using Remote Desktop From an SBS Domain
    ... between me and the Internet and that is as much as I know. ... computer that is on a remote network now. ... Internet connection, bypassing my SBS/ISA network all together. ... the port number you connect to from 80 to a port of your ...
    (microsoft.public.windows.server.sbs)
  • Re: Using Remote Desktop From an SBS Domain
    ... between me and the Internet and that is as much as I know. ... computer that is on a remote network now. ... Internet connection, bypassing my SBS/ISA network all together. ... the port number you connect to from 80 to a port of your ...
    (microsoft.public.windows.server.sbs)
  • Re: Making a temporary service available to public
    ... am running SBS 2003 Standard and my server has 2 NICs. ... specific port incoming to that device. ... I re-ran the Internet connection wizard but it only lets me ... that service to a specific client on the internal network. ...
    (microsoft.public.windows.server.sbs)