systemwise proxy server?

Discussion in 'macOS' started by lulala, Oct 19, 2009.

  1. lulala macrumors newbie

    Joined:
    May 3, 2009
    #1
    I just found that proxy server setting in system pref-network is not systemwise. That is, that setting is applied to safari only. If I want to use proxy server in firefox, I have to set it up again. Thus, I am wondering that is there any systemwise proxy server setting?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    It should be system wide. It's just that Firefox chooses to ignore that setting and implement there own. You should log a bug with the Firefox developers and get them to correct their software.
     
  3. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #3
    Firefox has an option under it's connection setting to use the systems proxy, it's own, or none.
     
  4. lulala thread starter macrumors newbie

    Joined:
    May 3, 2009
    #4
    Thanks for the reply.
    I should be more clear about what I intend to do. For instance, in linux, I can use iptable to redirect my packet traffics, which go to destination port 80, to some addresses.

    I can forward my packets to address:10.0.0.1 using following command:
    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 10.0.0.1:80


    Therefore, I want to implement such policy and enforce every packet with destination port 80 to use a designated proxy server. How can I achieve this?
     
  5. lulala thread starter macrumors newbie

    Joined:
    May 3, 2009
    #6
    After digesting the manual, I come up with the following command.

    ipfw add 1000 fwd my_proxy_address,3128 tcp from any to any 80

    I can observe my packets went through my proxy server. But, this command will crash the system whenever I test some flash games on facebook. Did I do anything wrong in this command?

    However, if I setup the proxy server manually in the system pref, I wouldn't encounter any crash at all, which indicates my proxy server functions properly. This is quite strange to me since ipfw should forward every raw packet to my proxy server.

    So, what's wrong behind all this? I'll appreciate it much if you can either help me fix ipfw or provide a better solution.
     
  6. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #7
    I'm not sure if this is even possible, but if you can set the following environment variables for all users, it works on other Unix systems:

    HTTP_PROXY=http://proxyserver:80
    FTP_PROXY=http://proxyserver:80
     

Share This Page