Re: directing to specific outgoing port



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
.



Relevant Pages

  • RE: can ping but not browse
    ... I have stopped the firewall. ... # are safed from all (security) hazards. ... firewall/bastion host to the internet ... # internet and to an internal network, ...
    (Fedora)
  • Re: Using a Linksys router, should I also use Zonealarm?
    ... public internet to access corporate network. ... In the "old days" when people used to use Dial-In instead of VPN you ware ... protected by corporate Firewall -- since there was no public Internet ...
    (microsoft.public.security)
  • RE: Hidden Ports
    ... this is done by the firewalls to prevent authenticated files from being replaced by trojans and connecting to the internet. ... kerio firewall ... or a program that already had network access attempted to ... > Depending on the Access setting for a component, ZoneAlarm Pro ...
    (Security-Basics)
  • Re: Entire Network
    ... Internet access is different and just because a firewall isn't ... Second, if it isn't the firewall, then often it is a case of the system ... any way a network guru. ... > The network connection works just fine from both computers for internet ...
    (microsoft.public.windowsxp.basics)
  • Re: Using a Linksys router, should I also use Zonealarm? Internet Acceptable Use Policy
    ... my browser's access to the Internet is restricted. ... I thought it was the company's firewall extending a slap on my ... > public internet to access corporate network. ... > NAT is Network Address Translation. ...
    (microsoft.public.security)