Commit Graph

177 Commits

Author SHA1 Message Date
0c6bdea4a8
updated CHANGELOG.md
I'm renaming the project to pybatmesh. Added instructions to update via
the command-line on the CHANGELOG
2022-08-03 11:08:41 +05:30
Pranav Jerry
9123224de0 Merge pull request 'Rename to pybatmesh' (#27) from rename-to-pybatmesh into main
Reviewed-on: https://git.disroot.org/pranav/naxalnet/pulls/27
2022-08-03 05:23:03 +00:00
396fe9af7e
updated version and minor changes
Removed some more traces of the previous name.
Removed an unused import and updated CHANGELOG.md
2022-08-03 10:39:26 +05:30
72dda12d7b
renaming to pybatmesh
pybatmesh better describes the project and does not attract the
attention of caged investigation agencies, like it probably would have
before. I probably left traces of the original name somewhere, so this
commit will likely be followed by other commits to erase all traces of
the previous name
2022-07-23 15:58:32 +05:30
38d0aa8ab5
not maintained anymore
If anyone is interested to takeover naxalnet, see #8
2022-02-04 12:51:07 +05:30
fad2591b9f
new version -- 0.5.2 2021-12-10 20:16:34 +05:30
Pranav Jerry
05b91e7721 Merge pull request 'Fix for issue #25' (#26) from fix-issue-25 into master
Reviewed-on: https://git.disroot.org/pranav/naxalnet/pulls/26
2021-12-02 14:13:31 +00:00
4d4e5e15d7
Merge branch 'master' into fix-issue-25
Things should be working fine now
2021-12-02 19:40:49 +05:30
6bca6149b7
ready to merge 2021-12-02 19:29:19 +05:30
710da18af9
moved naxalnet.service to the main directory 2021-12-01 21:34:40 +05:30
888fdf3856
removed all print() calls from network.py
Updated CHANGELOG.md. We (another word for 'me') can push after moving
naxalnet.service out of service/. I am told the unit file is having a
rather dull time coping with per lonely life.
2021-12-01 21:27:27 +05:30
fc1f3d4216
another fix for #25
Or, to be more precise, a fix for the fix preceding the current fix for
issue #25 that just didn't fix things right. If your head spins, see the
previous commit, or call an ambulance (that is, if you are privileged
enough to access a phone and know your local helpline number)
2021-11-29 14:47:59 +05:30
5e58df0b71
temporary fix for #25
Uses multithreading.Process instead of GLib.timeout_add()

The moment I finished writing this part, I found out the only problem
with my previous commit was that I had setup the timeout _after_ calling
the blocking function wait_for_change instead of before it.

Although this version (with Process) works, I'm reverting to the
previous version and swapping the two lines (which I had tested and
found to work)

And in case you have read upto the previous line you should also know I
fixed some code in the README

TL;DR: I have proven once again I am an idiot
2021-11-29 14:36:59 +05:30
d7a84d8ccc
replaced GObject with GLib in network.py
See the previous commit. And the one preceding that. And the one before
that. Keep going until /dev/brain0 gets symlinked to /dev/urandom
2021-11-16 22:00:00 +05:30
183ce16eca
added timeout
This doesn't work yet
2021-11-14 19:57:35 +05:30
caeb042612
implemented NetworkLoop call in scripts.py
See any_interface_is_routable()
2021-11-14 19:46:04 +05:30
f657146eb3 Revert "added class to wait until routable"
This reverts commit fbf518e14c.
2021-11-14 19:39:51 +05:30
cd44357496
updated version
I accidentally pushed the previous commit to master instead of this
branch. This should revert things
2021-11-14 19:32:34 +05:30
fbf518e14c
added class to wait until routable
I haven't tested this properly yet
2021-11-14 19:00:10 +05:30
28de9570b5
updated minimum debian version in README.md
I have added a comment on #20 about this
2021-11-08 21:20:24 +05:30
009f6364cd
add xmpp channel to README.md and HACKING.md 2021-10-31 20:18:56 +05:30
a09ababd06
removed telegram group
We could use something else instead
2021-10-30 21:57:41 +05:30
9749cf0c00
added telegram group and something else in README
Added Briar to the list in internet shutdown
2021-10-30 21:54:43 +05:30
Pranav Jerry
542347eac7 Updated use cases in README.md 2021-10-30 13:06:13 +00:00
a5ba99ca2a
Version 0.5.1
Fixed issue #21
2021-10-22 13:28:16 +05:30
Pranav Jerry
0d5d3c5cc6 Merge pull request 'fix for issue #21' (#22) from geoclue-fix into master
Reviewed-on: https://git.disroot.org/pranav/naxalnet/pulls/22
2021-10-22 07:53:45 +00:00
26a907d907
updated readme, changelog
prepare to merge to master
2021-10-22 13:20:09 +05:30
704fe646f8
renamed systemd-networkd/ to network/
Nothing big. And naxalnet needs a new maintainer or I will keep screwing
up things.
2021-10-22 13:09:15 +05:30
aa079c7c29
reverted the changes
Instead, removed the wpa_supplicant "conflicts" line from naxalnet.service
2021-10-22 13:05:37 +05:30
295fde3f0b
added override service for wpa_supplicant
This probably isn't working like we want
2021-10-22 12:54:52 +05:30
270db3cf90
added hack to fix #21 2021-10-22 12:06:17 +05:30
6fbebc51bb
almost fixed things 2021-10-22 11:58:41 +05:30
1f8be50dd6
moved systemd service to a dir
This is to add another service file alongside naxalnet.service
2021-10-22 11:11:11 +05:30
c4933378ff
quick fix for #21
Added a couple of lines in the README until #21 is closed.
2021-10-22 11:02:53 +05:30
0a85c465ee
added features section in README.md
And added some more info on adding bug reports.
See issue #20.
2021-10-15 16:05:06 +05:30
5dd90d349e
prepare for version 0.5.0
Now that this version is being released, I have no ambitions left on
this program and I would happily accept a new maintainer to take over
this project (Let's see if anyone ever reads this message)
2021-10-10 20:43:34 +05:30
Pranav Jerry
a6f5b07310 Merge pull request 'Set gateway mode automatically' (#18) from gateway into master
Reviewed-on: https://git.disroot.org/pranav/naxalnet/pulls/18
2021-10-09 09:57:29 +00:00
de63113098
ready to merge
Updated __version__ to 0.4.0a6
2021-10-09 15:20:57 +05:30
e56ff40495
improved documentation 2021-10-08 22:28:01 +05:30
3b3644e107
updated install guide for Fedora in README.md
systemd-resolved is used by default, so there is no need to install it
in rawhide.
2021-10-06 19:27:32 +05:30
65e1906753
added Makefile rule to build rpm
And updated README with the details. There is probably something missing
in the Fedora installation section
2021-10-05 15:04:19 +05:30
6acd7084f2
made README better
Added info on how to check requirements
2021-10-05 12:06:50 +05:30
61a96ea3b3
updated documentation and some other changes
Made messages printed in Makefile more understandable. Removed full path
of naxalnet from the systemd service. Now you can start naxalnet even if
it is installed in /usr/local/bin, if systemd allows (I have not tested
it). Many comments were made to respect the 80 chars per line rule.
And, of course, added some political commentary to insult the global
superpower (superpower in terms of money, military and something else I
forgot). And removed MANIFEST.in, which probably haven't changed anything.
2021-10-02 14:13:53 +05:30
a7304a986b
turn off all wifi devices at exit
This makes things easier to maintain, or so I hope.

Added more comments in files in systemd-networkd, made CHANGELOG.md
better, and updated the README.
2021-09-29 15:14:13 +05:30
32e9559e6e
fixed bug in main()
For some days I've been testing this program without realising that
gateway_mode was set to off every time. Remove dependencies from install
in Makefile, which we don't need anyway, since it builds twice when
installing from the AUR PKGBUILD.
2021-09-29 08:37:59 +05:30
a061852a59
commented out a line causing trouble
And added a  bit more logging
2021-09-28 15:58:31 +05:30
5bde1faeba
temporary hack to fix #19
Probably s/temporary/permanent/ if someone doesn't take over this
"project" soon.
2021-09-28 12:37:11 +05:30
87612fac2c
delete interface during cleanup
Read the previous commit for some unhelpful remarks.
2021-09-27 22:48:13 +05:30
2e4c3a70a4
cleanup before exit
This was previously done by the systemd service. But since we allowed
changing the name of bat0 and bridge0, we can't expect systemd to still
do that job. Commented out some lines in the systemd service and made it
send SIGINT instead of the default SIGTERM to kill naxalnet. I
accidentally used to increment a2, a3, a4, ... in the __version__
instead of dev1, dev2, &c. a few commits back. Removed some print()
lines lurking somewhere in the code. The cleanup is still not completed.
We still have to delete the interfaces bridge0 and bat0, or whatever
name the user gives it. Just out of boredom, I added some description to
some network configuration, though so I doubt if anyone will understand
it more because of that.
2021-09-27 22:30:07 +05:30
d0389e5638
set gateway mode automatically
Added arg and config option to manually set gw_mode.
When gateway_mode is auto, a temporary config will be added, and after a
ten sec delay, naxalnet will check if systemd-networkd shows a
'routable' connection. If the connection is routable, gw_mode will be
set to server; or client otherwise.
2021-09-27 12:43:09 +05:30