Commit Graph

96 Commits (master)

Author SHA1 Message Date
GouveaHeitor 33bca64c50 moving the root check to another part that makes more sense 2020-06-27 12:27:08 -03:00
GouveaHeitor 10fe491716 merged old-develop and fix all conflicts 2020-06-11 13:41:20 -03:00
GouveaHeitor f9cf96e563 make adjusts related to style guide 2020-06-11 12:59:10 -03:00
Slavik Svyrydiuk 54aa817802
check if nipe.pl is run by root
exit with error message otherwise
2020-06-07 13:15:27 +02:00
GouveaHeitor 854d9ec0a4 refact code to remove Switch lib (deprecated) 2020-05-27 09:59:12 -03:00
GouveaHeitor 2f0de0ce0f adding deals to the restart flow 2020-04-26 17:13:56 -03:00
GouveaHeitor 5e90b471d8 new packages structure 2020-03-12 10:22:12 -03:00
GouveaHeitor d1dd87c977 implementing suggestions from the develop branch communities 2020-03-12 09:44:42 -03:00
GouveaHeitor 4f5bf0b5ea some adjustments to the code structure 2020-01-31 10:31:08 -03:00
GouveaHeitor 556ecf707f replace lwp::useragent to http::tiny module 2020-01-30 15:02:14 -03:00
Bruno Meneguele 210860b264 Enhance warnings with compiler flags
The use of both "strict" and "warnings" is a well known practice in Perl code
for generating further warnings for common cases where future misbehaviors
may happen. With this patch, every Perl file has both compiler flags enabled.

Alongside the flags enablement, this patch also bring the necessary
modifications to allow the program to run normally.
2020-01-24 11:53:56 -03:00
Bruno Meneguele 43e5f4f695 Add support for user's custom tor configuration
This new feature allows the user to specify custom tor configurations that he
may have created manually or from Nipe itself (through "install" command)
using the '-c' flag with "start" command.

$ ./nipe.pl start -c $HOME/.nipe_torrc

In case the user's config doesn't contain some of the values required by Nipe,
it will use its defined default value. For now the default values are
hardcoded within Nipe's source code, but may change in the future for a more
flexible approach.

With this new feature it's also possible for the user to issue two nipe start
calls with different configuration files, creating conflitant firewall rules.
Because of that a locking file scheme was used to make sure nipe is called
only once and the "stop" call also terminates only the tor instance actually
created by Nipe. Therefore, the user may have a tor instance running in
parallel with nipe's specific instance.
2020-01-24 11:43:57 -03:00
GouveaHeitor 92fb872dd4 refactoring the Device module 2020-01-16 12:51:32 -03:00
Bruno Meneguele ca0de3b028 Add support for custom config location
Allow the user inform the location he would like to install nipe's tor config
file in the system through a command line flag speific to 'install' option:

./nipe.pl install -c $HOME/.nipe_torrc
...
[.] Writing Nipe's custom Tor config file
[.]   .configs/fedora-torrc -> /home/user/.nipe_torrc

With that it's possible the user to maintain multiple configurations in the
same system. Possibly allowing future support of multiple tor instances.
2020-01-15 16:29:16 -03:00
Bruno Meneguele 7bc34e8467 Add support for user not willing to overwrite config file
It's a good practice to let a already existent configuration file untouched,
letting the user to decide if the new tool should or not overwrite. This patch
adds this option via a command line flag specific to the "install" option:

$ ./nipe.pl install -f
...
[.] Overwriting system Tor's config file
[.]   .configs/fedora-torrc -> /etc/tor/torrc

Otherwise, he's notified about the possibility to use one of the configuration
files present in the project's home dir.

$ ./nipe.pl install
...
[.] Refer to our custom Tor config files in project home

NOTE: It can be further enhanced in future version of the tool.
2020-01-15 16:25:54 -03:00
GouveaHeitor d2bf6f6f8b new structure 2020-01-14 07:47:01 -03:00
GouveaHeitor 58481157c7 fix a few bugs and update readme.md 2020-01-02 08:37:26 -03:00
GouveaHeitor d4a344df71 submit update on few things 2019-12-10 16:19:25 -03:00
GouveaHeitor a1881b64a2 Update README.md 2019-11-29 12:28:43 -03:00
GouveaHeitor e0d9d2910a update README.md and SECURITY.md 2019-11-27 12:41:20 -03:00
GouveaHeitor e154ad734c update things 2019-11-27 12:09:29 -03:00
GouveaHeitor 96e1386e71 update year on comments 2019-07-20 22:51:41 -03:00
GouveaHeitor 9f7619f3c2 removing else on nipe.pl 2018-10-08 13:33:04 -03:00
GouveaHeitor bb3010a17b Fixing arch linux bugs 2018-08-20 20:12:38 -03:00
GouveaHeitor 9998dd4bfa upload adjusts 2018-03-17 19:15:55 -03:00
GouveaHeitor b0c281cf9c upload changes and fixed bugs 2018-03-16 17:11:04 -03:00
GouveaHeitor 798db1ec28 fixing a bug with gambiarra 2018-01-26 00:05:22 -02:00
GouveaHeitor 85247828c8 remove bugs 2018-01-23 14:01:35 -02:00
GouveaHeitor ee465736b4 change year on license 2018-01-11 22:39:17 -02:00
GouveaHeitor 066c0fd50e add command restart | update install 2017-10-01 01:04:05 -03:00
GouveaHeitor 743e289188 upload changes on files / add https 2017-09-17 23:53:18 -03:00
GouveaHeitor 313d5a6938 update README.md and remove twitter/facebook 2017-08-08 22:08:17 -03:00
GouveaHeitor dfccdf21ff update 2017-04-21 09:19:12 -03:00
GouveaHeitor da7b6f01ce update new email 2017-03-08 19:38:43 -03:00
GouveaHeitor f7cbffdc22 set new email 2017-02-15 21:29:02 -02:00
GouveaHeitor 3a5b0ffe8c add telegram contact 2017-02-05 19:09:23 -02:00
GouveaHeitor 72237244d7 year update 2017-01-05 09:07:27 -02:00
GouveaHeitor b7a1ed6411 add my website in all files 2016-09-22 22:24:10 -03:00
GouveaHeitor 99200c44ae added a method for see status 2016-08-22 23:18:26 -03:00
GouveaHeitor 68a1030f06 create a clase to configure username 2016-08-21 21:38:04 -03:00
GouveaHeitor 0eb1b8a1a8 basic maintenance 🚀 🐫 2016-08-20 18:59:15 -03:00
GouveaHeitor a8234e0299 basic update on nipe.pl and readme.md 🤘 2016-08-19 18:49:03 -03:00
GouveaHeitor 18409752b8 update on nipe.pl 2016-08-13 20:35:59 -03:00
GouveaHeitor 1af2946903 🤘 basic update 🐫 👽 2016-07-31 21:20:12 -03:00
HeitorG d0cf2aeafe new directory to libs 🐫 2016-06-29 22:59:50 -03:00
HeitorG e4b1f87884 👽 refatorando codigo com design patterns 🤘 2016-06-11 20:48:22 -03:00
Heitor Gouvea b87cc1a6da Update nipe.pl 2016-07-01 13:56:37 -03:00
HeitorG 1cfb321223 🐫 new license 🤘 2016-05-25 14:03:43 -03:00
Heitor Gouvea da07ee6ec4 Update nipe.pl 2016-05-18 14:02:59 -03:00
Heitor Gouvea 8c165be58e Update nipe.pl 2016-05-15 21:03:26 -03:00