1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I use my VPS's IP address here at home?

Discussion in 'Black Hat SEO' started by edsmithers, Apr 3, 2011.

  1. edsmithers

    edsmithers Junior Member

    Joined:
    Feb 7, 2008
    Messages:
    104
    Likes Received:
    18
    Hello,

    I have a linux vps with two IP addresses. I've tried setting up firefox to use the ip as a proxy but it doesn't work. Is there a way for me to stick my VPS IP address into firefox so I'm surfing with that IP.

    Sorry if this is a stupid question.

    Thanks for any help.

    Ed
     
  2. roamer

    roamer Power Member

    Joined:
    Dec 2, 2008
    Messages:
    500
    Likes Received:
    479
    Occupation:
    Gfx designer, vfx and mgfx
    Location:
    plɹoʍ ǝɥʇ punoɹɐ ƃuıɯɐoɹ
    Are you using Windows or MacOS?. In order to use your vps as a proxy you have to configure it as a proxy (use squid). You can also configure it and use it as a VPN connection. Alternatively you should be able to use a ssh tunnel. I personally prefere setting up a VPN. All these options require more or less some setup.

    Hope this points you in the right direction.
     
  3. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Can you connect to your VPS with ssh? If so:

    1) Open an ssh tunnel to your VPS with the command:
    ssh -p 22 -ND 20000 yourvpsusername@yourvpsip

    Change the port number (-p 22) if you have changed your ssh port number.
    Your VPS IP is the IP you would connect to when you are logging on via ssh.

    2) Set your Firefox proxy settings to SOCKS 5, localhost, port 20000

    Voila, you are now tunneling all of your traffic securely via your VPS. Your ISP can't see any of your traffic and your IP address (from the perspective of other websites you browse) will be that of your VPS.
     
    • Thanks Thanks x 3
  4. edsmithers

    edsmithers Junior Member

    Joined:
    Feb 7, 2008
    Messages:
    104
    Likes Received:
    18
    Thank you both!

    Autumn, I'm pretty new at this stuff so your directions were hard for me to understand... so I searched google for the phrase you used... 'Open an ssh tunnel to your VPS' and found a tutorial with pictures showing me how to do what you said using putty.

    Thanks again for your response! I'm using my VPS's ip like a charm!!

    ED
     
  5. CoyoteAssassin

    CoyoteAssassin Elite Member

    Joined:
    Jan 3, 2010
    Messages:
    1,862
    Likes Received:
    3,906
    Occupation:
    Full Time IMer
    Location:
    USA
    @Ed - Consider posting what you found on here as I've seen this question several times before. it will be good for other people to have the same guide that you were able to use.

    Thanks.
     
  6. edsmithers

    edsmithers Junior Member

    Joined:
    Feb 7, 2008
    Messages:
    104
    Likes Received:
    18
    Thought about posting the link but it was the first result in google for 'Open an ssh tunnel to your VPS' so I fugured people would find it. But you're right, I should have posted it anyway.

    Code:
    http://www.butuhdoa.net/2010/04/ssh-tunneling-use-putty-use-your-vpsdedi-as-socks5-proxy/
     
    • Thanks Thanks x 1
    Last edited: Apr 4, 2011
  7. edsmithers

    edsmithers Junior Member

    Joined:
    Feb 7, 2008
    Messages:
    104
    Likes Received:
    18
    I've been trying to find information on how to configure windows 7 to run all applications through the VPS, but I can't find the right stuff. Anyone know if it's possible? Meaning, can I setup my network connection or something so that when I run internet apps like Market Samarai, etc... they'll tunnel through to my VPS's ip instead?

    Thanks again if anyone knows how to do this.

    Ed
     
  8. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    If you look at the bottom of that link you posted, there are the settings (specifically the port number) for setting up Firefox to work through your VPS once your ssh tunnel is established. You should be able to use those same proxy settings (SOCKS 5, 127.0.0.1, and the port number which is 1111 in the example) for any software that has an option to set use proxies (specifically SOCKS proxies).

    There's probably a way to route all your traffic through the ssh tunnel without having to configure every single app, but I'm not a Windows user I'm afraid.
     
    • Thanks Thanks x 1
  9. edsmithers

    edsmithers Junior Member

    Joined:
    Feb 7, 2008
    Messages:
    104
    Likes Received:
    18
    Hey Autumn, thanks again for the response. I'll keep looking for a way to route all my traffic through the tunnel.

    I did have another question for you if that's ok.

    I ordered 3 more IP addresses today from my VPS provider thinking that I could tunnel through the those new IP addresses... but there is a problem...

    When I follow the tunneling instructions and input the new ip as host... everything looks like it will work fine... but when I check my IP address online... it gives me the IP address of my main VPS server... not the new IP address.

    Is this how tunneling works? Regardless of how many IP addresses I have on my VPS... will it only tunnel through the main server IP?

    Hope that made some sense.

    Thanks again for any help.

    Ed
     
  10. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    I'm no expert but your outgoing IP will appear to other websites to be the IP that's assigned to the network interface (NIC) of your VPS or server or occasionally the router that routes your outgoing traffic. When you add additional IPs to your server, they are alternative options for logging in via ssh (or running a website on etc), but the outgoing traffic for the server still goes through that same single network interface.

    You try setting a different IP for your eth0 interface using ifconfig and that should probably change your outgoing IP address. Be careful though - you can lock yourself out of ssh if you screw it up.
     
    • Thanks Thanks x 1
  11. edsmithers

    edsmithers Junior Member

    Joined:
    Feb 7, 2008
    Messages:
    104
    Likes Received:
    18
    Ok thanks again. Just googled ifconfig and it looks like even if I manged to change the IP I still would only get to use the one IP at a time.

    I have three machines at home and want each one to scrape google using a different IP all at the same time.

    I don't know how to do it yet... but with the additional IP's I just bought from my VPS... could I set up a proxy server on the VPS using squid or something? Would that be the way to go if I want to use all the IP's they give me?

    So new at this... so as usual hope that made sense.

    ED
     
    Last edited: Apr 6, 2011
  12. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Yep to do that you'd need to set up Squid (or some other proxy server, but Squid's the most common) on your VPS and assign it your IPs that you want to use. Make sure you put them on uncommon ports and / or password protect them or else some prick with a scanner will come along and start abusing them. There's a thread around here about how to set up Squid - it's called "how to start your own proxy company" or something like that.
     
    • Thanks Thanks x 1