Results 1 to 2 of 2

Thread: Change source IP regularly

  1. #1
    Join Date
    Nov 2008
    Ubuntu 10.04 Lucid Lynx

    Change source IP regularly

    Hi all,
    I just installed squid, so that I can change my outgoing IP.
    heres where I have been reading:

    instead of squid I use squid3 for the commands, since that's the version installed.

    but I dont want to edit /etc/squid3/squid.conf
    every time I want to change my outgoing IP. I would rather have my outgoing IP change based on a timer, or based on some scritpable CLI command.
    so then i tried this:
    ~$ sudo squid3 tcp_outgoing_address
    ~$ sudo squid3 -k reconfigure
    ~$ sudo service squid3 restart
    squid3 start/running, process 23891
    (passing squid3 the tcp_outgoing_address as an argument with and ip similar format to the config file. CLI doesnt barf.
    reconfigure, to set the changes, and restart the service to be sure....)
    I expected it to work, since it didn't baulk about formatting, or whatever. But it doesn't seem to make a difference.

    Does anyone know how i can set up this proxy to change my IP systemically?

  2. #2
    Join Date
    Jan 2009

    Re: Change source IP regularly

    You can only change the outgoing IP address to an IP address that is on your interfaces. So check with "ifconfig" which IP address you have.

    If you're behind NAT, things are different.

    And on a typical home Internet connection, you only have one public IP address, so you can't change it.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts