How to install tor-ip-changer on FreeBSD 14-RELEASE natively,without using the Linuxulator.

Hello.

Here are the steps to how I make tor-ip-changer work in my FreeBSD 14-RELEASE. What's the purpose to do that ? Well,the idea is to use Tor instead of a VPN. Ok,but why using tor-ip-changer ? Because frequently Tor chooses an IP address that prevents you from surf the internet because someone abused of it and it has been restricted on the various sites and you should change it manually. So the idea is to change it frequently without breaking the connection to the net. In this way the problem of getting some bad IP addresses and the annoyance to request a new IP is solved.

### 1. git clone repo

[mario@marietto ~]# git clone https://github.com/seevik2580/tor-ip-changer.git

### 2. change --DNSport 53 to --DNSport 1053 inside the script : ipchanger.py

### 3. install all needed packages (i chose to use python3.8 natively without pyenv)

[mario@marietto ~]# pkg install curl tor obfs4proxy-tor psmisc bash python38-3.8.18 py38-tkinter-3.8.18_7 py38-sqlite3-3.8.18_7
[mario@marietto ~]# bash
[mario@marietto ~]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
[mario@marietto ~]# python3.8 get-pip.py
[mario@marietto ~]# cd tor-ip-changer/source-code
[mario@marietto ~]# python3.8 -m pip install -r requirements/linux/pip-requirements.txt

### also needed to change some minor things inside ipchanger.py to make it work in FreeBSD 14-RELEASE

[mario@mario ~]# sed -i'' -e 's/authbind --deep//g' ipchanger.py
[mario@mario ~]# sed -i'' -e 's/elif sys.platform == "linux":/elif sys.platform == "linux" or sys.platform == "freebsd14":/g' ipchanger.py
[mario@mario ~]# sed -i'' -e "s/os.popen('ping -c 1 -w 1 %s' % ip)/os.popen('ping -c 1 -i 1 %s' % ip)/g" ipchanger.py

### run ipchanger.py with python3.8

[mario@mario ~]# sudo python3.8 ipchanger.py

noname.png
 
Last edited:
Back
Top