Menu

#5 Anon Proxy Service after Reboot not work

v1.0 (example)
closed
niknah
None
5
2015-10-30
2014-10-16
No

Hello,

after restart a server Microsoft Windows2012 with Anon Proxy Server the Proxy Service not work. The "Windows" Anon Proxy Service is in running state. The Client Browser error is no proxy available.
When we restart the Service over the web management 3 times the service run correcty.

What we can do ?

Thanks for your support

Discussion

1 2 > >> (Page 1 of 2)
  • niknah

    niknah - 2014-10-20

    In windows you need to start the pserver.exe in c:\program files\anon proxy server\htdocs

    Put that in the start up folder. Or if you don't login, in the registry. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

     
  • sam

    sam - 2015-10-22

    sorry, never mind the above question. got the wrong port.

    i do have a question: how do I run the proxy server using different IPs?
    for example, if I have 3 IPs, how do I make 3 proxies?

     
    • niknah

      niknah - 2015-10-22

      By default, it listens on all 3 IPs.

      If you want to run 3 different instances on one computer...
      * Change the port number to something other than 8080.
      * Copy the folder and call it "anon_proxy_server2"
      * Then go to that new folder and run "./pserver.exe -run 8082" (If you had picked 8082 as your port)
      * Do the same for the 3rd IP.

       
  • sam

    sam - 2015-10-22

    i see that the settings (including port assignment) is done through localhost:8081/anon_proxy_server/index.php for the 1st (default) incidence.

    what about the settings for the 2nd incidence? i will have to setup localhost:8083? how do i do that? (i assume that cannot be done on localhost:8081)

     
  • niknah

    niknah - 2015-10-23

    If you had copied it to anon_proxy_server2, the 2nd config link would be...

    localhost:8081/anon_proxy_server2/index.php

    But if you have problems with that you can also configure it first, before copying the folder.

     
  • sam

    sam - 2015-10-23

    localhost:8081/anon_proxy_server2/index.php

    "the requested URL is not found"

    i copy and rename the folder "anon proxy server2".

    also, i tried to link to the different instances from the startup folder, but it doesnt recognize the path difference. can i change the .exe name to pserver1.exe, pserver2.exe?

     
  • niknah

    niknah - 2015-10-23

    If you had renamed it to "anon proxy server2", then it should be...

    localhost:8081/anon%20proxy%20server2/index.php

    But did you copy the main folder or the one inside htdocs? Copy the folder inside htdocs that's called anon_proxy_server, it should have the index.php file inside it.

     
  • sam

    sam - 2015-10-23

    i guess when i copy the main folder, it somehow did not copy the inner folders.

    now that i can run multiple instances, how do I assign a specific IP to each instance of the proxy server?

     
  • sam

    sam - 2015-10-24

    i am not sure where i can assign a port to an IP address?
    the anon-proxy-server only lets me specify a port#.
    windows firewall only lets me specify a port and program (pserver) path.

    do i have to change some settings in the IIS?

     
  • niknah

    niknah - 2015-10-24

    It is listening on all IP addresses.
    When you specify a port number, it'll be available on all IP addresses.

    If you mean you "don't" want it to listen on all IP addresses, you can set that up on your firewall to restrict the different pserver.exe in the different folders to only a specific IP address.

     
  • sam

    sam - 2015-10-24

    sorry, i am not sure my reply was submitted since i cant see it:

    how do i make the URL with an IP work?

    this works:
    http:/localhost:8081/anon_proxy_server/index.php

    but this does not:
    http://x.x.x.1:8081/anon_proxy_server/index.php

     
  • niknah

    niknah - 2015-10-25

    I just put x.x.x.1 as an example.

    If you say that you have 3 IP addresses. Then someone would have sent those IP addresses to you when you purchased them?

     
  • sam

    sam - 2015-10-25

    yes, i have the IP's, but this URL does not work:

    http://xxx.xxx.xxx.xxx:8081/anon_proxy_server/index.php

     
  • niknah

    niknah - 2015-10-25

    I presume you mean xxx.xxx.xxx.xxx is the IP address that you've been given.

    Try to ping xxx.xxx.xxx.xxx to see if it exists and it's your address.
    And run "cmd" and type in "ipconfig" to see if it's your ip address.

    This is probably a firewall problem. add pserver.exe into your firewall's exception rules and tick "public"

     
  • sam

    sam - 2015-10-26

    Yes, all my IP's show up when i do ipconfig.
    i can get the 1st IP to work as a proxy through
    http:/localhost:8081/anon_proxy_server/index.php
    for which i use the default 8080 port. in firewall, i allow specific port 8080.

    but even for that IP, this URL does not work:
    http://xxx.xxx.xxx.xxx:8081/anon_proxy_server/index.php

    what can i try?

     
  • niknah

    niknah - 2015-10-26

    So that I'm clear...

    The url should look like this but with your ip address...

    http://202.203.204.205:8081/anon_proxy_server/index.php

    In the firewall you need to add an entry for pserver.exe
    Actually 3 entries for each of the pserver.exe that you have copied.
    And tick "public"

    localhost is not one of your ip addresses, it's the internal ip address that only your computer can look at.

    You can also use these links to configure your proxy...
    http://localhost:8081/anon_proxy_server2/index.php
    http://localhost:8081/anon_proxy_server3/index.php

    Another thing I just thought about. If the purpose of what you're doing is to appear as though you're coming from different ip addresses. You're better off doing something else, like running one proxy server and then changing the routing on your computer once every minute or so, so that it appears as though you're coming from a different ip address.

    Windows is not going to pick a different outgoing ip address for the proxy just because you've accesed the proxy on a certain incoming address. It'll always pick the same outgoing ip address based on the routing.

    Say you have 3 ip addresses...
    1.2.3.4
    1.2.3.5
    1.2.3.6

    The default outgoing ip is 1.2.3.4
    If you use the proxy on 1.2.3.6, your ip address will still appear as though it's coming from 1.2.3.4

    To change the routing do something like...
    route del 0.0.0.0 MASK 0.0.0.0
    route add 0.0.0.0 MASK 0.0.0.0 y.y.y.y x.x.x.x

    Where y.y.y.y is the gateway and x.x.x.x is one of the ip addresses that you have been assigned.

     
  • sam

    sam - 2015-10-26

    I do not want to just to be coming from a random different IP. this is what I want to do:

    suppose i have 3 facebook accounts A,B,C. when i login the 3 accounts, I want facebook to see account A coming from 1.2.3.4. B account from 1.2.3.5, and C account from 1.2.3.6. when i want to login account A, i change my firefox browser setting to use proxy 1.2.3.4, etc.

    now on my proxy server, I have the 3 IP's. I use localhost:8081/anaon_proxy_server/index.php to specify port 8080. in a firewall rule, i point to program ...anon_proxy_server/pserver and specify port 8080. this is tested to work from my firefox browser (using 1.2.3.4:8080 as the proxy). ipchicken.com shows the proxy IP.

    for the 2nd IP (1.2.3.5),
    from localhost:8081/anon_proxy_server2/index.php, i select port 8082.
    from command prompt, netstat -an | find/i "listiening" I see both 8080 and 8082 are listening.
    on http://canyouseeme.org 8080 is open, but 8082 is NOT. the site automatically detects my computer as 1.2.3.4 (the 1st IP). in firewall rule, I tried both specific port 8082 or "All ports".

     
  • niknah

    niknah - 2015-10-26

    Sorry, you'd have to compile separate pserver.exe files in order to set a specific outgoing ip address.

    In connection.c at around line 509, Change this...

    webConn=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
        nonBlockSocket(webConn,1);
    

    Add to...

    webConn=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
        nonBlockSocket(webConn,1);
    
        memset(&bindAddr,0,sizeof(bindAddr));
        bindAddr.sin_family=AF_INET;
    inet_aton("1.2.3.4",&connectAddr.sin_addr.s_addr);
    bind(webConn,(struct sockaddr *)&bindAddr,sizeof(bindAddr);
    

    And add this at the start of the function...

        struct sockaddr_in bindAddr;
    

    Change 1.2.3.4 to whatever your ip address is. Compile it, and then make a pserver.exe for each of your ip addresses.

    Another way is to find a proxy server that lets you run multiple copies on a server and lets you choose an outgoing ip address.

    Or you could run little Virtual machines on that computer and assign the different ip addresses to each machine. Then you can run whatever proxy software you want. A small linux will take up 128-256mb.

     
  • sam

    sam - 2015-10-27

    Sorry, i have trouble compiling.

    i see there is a makefile. so this is meant to be compiled on a Linux box? and then I copy the .exe file over to windows 2012? (i tried minGW compiler on windows, it cannot find openssl/ssl.h)

    i looked in my linux box /usr/local/ssl and there is no openssl folder or ssl.h. do i have to install something other than the c compiler?

     
  • niknah

    niknah - 2015-10-27

    The compiling instructions are here under "compiling"...
    http://anonproxyserver.sourceforge.net/doc.html

    Yes, you'll have to get openssl. There're links in the doc.

    It's easiest to compile windows on a windows computer.

     
  • sam

    sam - 2015-10-28

    Sorry, I am confused about the compiling instructions:

    1, the link to GNU Regex is broken. can you give me a working link?
    2, my understanding now is i only use visual studio to specify file paths, and use MSYS to run the makefile?
    3, i downloaded the source of openssl, unzip, and find "ssl.h" in folder C:...\openssl-0.9.8zg\ssl i cannot find anything like stated in the instruction "Additional library Directories > change to the openssl's lib/VC folder"
    4, "Additional include Directories > change paths to where the 'src' folder is and where openssl's include folder is." I cannot find any include folder under the openssl folder?
    5, if i download and install from the given link (http://slproweb.com/products/Win32OpenSSL.html), all i get is C:\OpenSSL-Win32 which basically dont have any folders under it?

     
  • niknah

    niknah - 2015-10-28

    You can use either Visual studio or msys. Don't need both.

    The ssl.h is either in the openssl source or in the version on the slproweb.com site.

    In the c:\openssl-win32 folder is there another install or setup file?

     
  • niknah

    niknah - 2015-10-28

    There should be a regex.dll in the source archive. If not, you can try...
    http://gnuwin32.sourceforge.net/packages/regex.htm

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.