Active Topics

 



Notices


Reply
Thread Tools
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#61
Next releases 1.0.7 and 1.0.8 will have some import function for the domain filter so you can add some file with advertising domains (ads blocker).

changelog genwall (1.0.8)
* added progressbar check double hosts
* reactivated password check
* file permission set to 754
changelog genwall (1.0.7)
* load host list from internet
* file error fixes
* changed ssh tab
The new button "load file" will bring you to the download and import function.

The download button will download the specified file to the specified location.

When you import files with the button "Load and append to list" all lines in the files starting with 0.0.0.0 will get imported/append to the listwidget. So you can already have some items in the listwidget and you can also import different files after another.

You get also asked for checking double entries but this can take a while.
Attached Images
 
 

The Following 6 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#62
Hi,

in the last version 1.0.9 I included a setup page for a bt pan connection.

Prerequirements for pan:
[N900]
/etc/bluetooth/main.conf
comment out: DisablePlugins =network,input,hal

Here some instruction how to use it for:

Linux BT

Connect a (old) linux system with bt pan:

- [PC] make the adapter visible
Code:
hciconfig -a hci0 piscan
- [N900] in the normal bluetooth setup switch on bt and make the adapter visible. Furthermore make a new trusted device and choose the pc. Now they should be paired.

- [PC] if you don't know the bt-mac address from N900 you can look for example with this command
Code:
hcitool scan
-[PC] connect with pand to N900 mac address
Code:
pand --connect 00:00:00:00:00:00
-[N900] in genwall go to route->BT tab and save you ips and choose dnsmasq only lan. Now you can push the start button.

-[PC] bring device up and get ip address
Code:
ifconfig bnep0 up
dhclient bnep0
Now you have a normal network up.


Connect a (new) linux system with bt pan:

- [PC] make the adapter visible
Code:
hciconfig -a hci0 piscan
- [N900] switch on bluetooth and make it discoverable

- [PC] pair with your N900 by add a new device

- [PC] run bluez script with the mac from N900
Code:
cd /usr/share/doc/bluez/examples
./test-network 00:00:00:00:00:00 nap
- [N900] in genwall go to route->BT tab and save you ips and choose dnsmasq only lan. Now you can push the start button.

- [PC] if the device is not up bring device up and get an ip address
Code:
ifconfig bnep0 up
dhclient bnep0

In case you want forward internet from pc to phone

[PC] avtivate forwarding
old
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
new
Code:
sysctl -w net.ipv4.conf.all.forwarding=1

permanent:Add net.ipv4.conf.all.forwarding=1 to /etc/sysctl.conf
[PC] activate masquerade source is the bt pan Network
Code:
sudo iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -j MASQUERADE
[N900] go to route->Gate tab and add the bt pan ip from PC as a new gateway.


In case you want forward internet from N900 to PC

-[N900] before you push the start button select dnsmasq forward

your N900 should have proper internet connection and a bt pan connection
- [PC] set a default route to ip from N900 bnep0 device
Code:
sudo route add default gw 192.168.8.2
- [N900] genwall
{local-basics}
1.:select wan device gprs/usb/wlan
2. I would "accept connection from local machine"... makes live easier
3. If you want to connect from pc->N900 without openning ports. I would also recommend to "Accept connection from local lan".

{for/out}
4. activate forwarding and set lan device to bnep
5. Masquerade wan device should be active
6. If you like to connect for example from wifi to ssh from the pc you can forward the port to the ip address from pc bnep0 device.
Use for ssh the ip from n900 wifi/usb/gprs and it will automatic connect to the pc.
{local-basics}
7.gen rules
8. push the start button
Attached Images
 

Last edited by Halftux; 2015-01-04 at 17:05. Reason: added picture
 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#63
Here a quick tutorial for:

Windows BT


Prerequirements for pan:
[N900]
/etc/bluetooth/main.conf
comment out: DisablePlugins =network,input,hal

Here some instruction how to use it:

Connect a windows system with bt pan:

- [N900] switch on bluetooth and make it discoverable

- [PC] right click bt icon join a personal network
- [PC] add device and pair N900
- [PC] right click on N900 and make a connection as access point
- [N900] genwall go to route->BT tab and save you ips and choose dnsmasq only lan. Now you can push the start button.


In case you want forward internet from N900 to PC

-[N900] before you push the start button to make a bt pan connection select dnsmasq forward

your N900 should have proper internet connection and a bt pan connection

- [N900] genwall
{local-basics}
1.:select wan device gprs/usb/wlan
2. I would "accept connection from local machine"... makes live easier
3. If you want to connect from pc->N900 without openning ports. I would also recommend to "Accept connection from local lan".

{for/out}
4. activate forwarding and set lan device to bnep
5. Masquerade wan device should be active

{local-basics}
6.gen rules
7. push the start button

In case you want forward internet from pc to phone

in windows 7 the bt stack doesn't support ICS for BT PAN.
Look for the Toshiba stack.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#64
Thanks for the tutorials I would consider sticking them over on wiki.maemo.org so they don't get lost in the thread.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#65
Originally Posted by sixwheeledbeast View Post
Thanks for the tutorials I would consider sticking them over on wiki.maemo.org so they don't get lost in the thread.
Or even better (or.also) in a help page inside the UI?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 4 Users Say Thank You to peterleinchen For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#66
Originally Posted by sixwheeledbeast View Post
Thanks for the tutorials I would consider sticking them over on wiki.maemo.org so they don't get lost in the thread.
You are welcome. First I linked it to the thread starter post and I could also make a link on this wikipage.

Originally Posted by peterleinchen
Or even better (or.also) in a help page inside the UI?
Hmm this is a nice idea, I will think about it. However you can do so much with this tool,
only a very well structured help in a nutshell would be really helpful.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#67
New version out 1.1.2

* added help system
* removed unset forward script bug (please delete the iptable scripts in /home/user/.genwall/ firestop.sh and firestart.sh.
If you like you can also use the "delete genwall user data and exit" button. Be aware because then all files in /home/user/.genwall gets deleted
).

* added load file for black list in (not recommended when generate script for N900) as blacklist you should use only a couple of ips or better add subnetworks which are used from attackers).

Originally Posted by sixwheeledbeast View Post
Could you please tidy up the unnecessary files in the package
Now I found out how to do and it should be a clean source package. Took a really long time...because I was happy to get something to build in autobuilder not thinking to much about it.
QtCreator Windows is not the best thing to use and some tutorials or posts telling you not the full story and some hacks are not clean.
The best source was the wiki page from maemo.

The new help system uses html files. Next days I will release some help files. I will not include help files in the package. They need to be manually added to following folder "/home/user/.genwall/help".

Doing it like this way it is possible to write own help files or make notes to them for other systems or configurations. And they will not get replaced when updating to a new genwall version.
You can also copy them to another Computer for reading.

At the route->about tab a help button resides. After pushing this button a qlistwidget get filled with all html files in the help folder.
There is only one thing you should know, do not use white spaces in the names. You should do like this: "My_First_Help.html".

After a double click on an entry a new window with the help gets created. You can switch between the help and genwall app with the quick buttons (go back / help). When minimizing you can also switch to other windows.

You are welcome to contribute your own help files.
 

The Following 5 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#68
Released genwall help v1.0,

still it is not complete but a good start.
  • Download genwall_help_v1.0.tar.gz from first post.
  • Extract the archive genwall_help_vx.x.tar.gz to /home/user/.genwall/

How to use the help see the post above.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#69
New genwall for the N9(50)!

Downloadable from first post (genwall_1.0.2_N950.deb)

Requirements
  • kernel with nat support
  • developer mode

How to start...open a terminal:

Code:
devel-su
genwall
If you had an older version installed please go to local->settings and push the button "delete genwall user data and exit"
Now you can start genwall again.
Attached Images
  
 

The Following User Says Thank You to Halftux For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#70
@halftux
brilliant!
(what about openrepos.net ?)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:04.