Re: directing to specific outgoing port



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

.



Relevant Pages

  • Re: ZoneAlarm Security Alert - My own ISP?
    ... which is a direct connection to the Internet, then you remove Client for MS ... and the NetBios ports are closed. ... computer cannot network with other computers. ...
    (comp.security.firewalls)
  • Re: [fw-wiz] how prevelant
    ... over the same few ports), and the tendency of script kiddies to run ... Windows attack tools, I tend to suggest that if you open your firewall up ... > it amazing they were passing domain information across the internet. ...
    (Firewall-Wizards)
  • Re: DestroyAds Popups
    ... Internet connection, ... router that provides/supports NAT (Network Address Translation). ... > with the ports. ... > "Bruce Chambers" wrote in message ...
    (microsoft.public.security.virus)
  • Re: directing to specific outgoing port
    ... internet to retrieve some information. ... situations except when trying to get of a network where the network ... I don't think this can be done on Windows. ... fireawll is blocking your outgoing ports, but looks at the port you're ...
    (php.general)
  • Re: PORT 443 isnt working on 1 machine
    ... You say you are running Windows XP SP-2, but have no firewall installed. ... Programs require manual port configurations with Internet Connection ... How to manually open ports in Internet Connection Firewall in Windows XP ...
    (microsoft.public.windows.inetexplorer.ie6.browser)