The Following 33 Users Say Thank You to Halftux For This Useful Post: | ||
ajack, banong, bingomion, D@vIcHoJD, don_falcone, draxcp6, DrWilken, Estel, Fatalist, fw190, hawaii, hrbani, imo, jberezhnoy, jellyroll, kojacker, laith.m.y, MartinK, max_power, Mentalist Traceur, michaelxy, misterc, nkirk, peterleinchen, reinob, rfeese, sbock, sifo, Skaven2k2, Sohil876, ste-phan, tuxsavvy, ZogG |
|
2012-07-11
, 22:22
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#2
|
Hi folks,
one week without internet at home and I started to write an iptables generator with simple firewall functions. [...]
tcpsvd -vE 0.0.0.0 21 ftpd -w /media/mmc1/
|
2012-07-12
, 16:35
|
|
Posts: 236 |
Thanked: 95 times |
Joined on Jan 2012
@ Ecuador
|
#3
|
|
2012-07-12
, 17:08
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#4
|
root mv /home/user/MyDocs/genwall /usr/sbin chmod 755 /user/sbin/genwall genwall & exit exit
|
2012-07-12
, 17:11
|
Posts: 293 |
Thanked: 163 times |
Joined on Jan 2012
@ beijing-islamabad
|
#5
|
|
2012-07-12
, 17:50
|
|
Posts: 236 |
Thanked: 95 times |
Joined on Jan 2012
@ Ecuador
|
#6
|
|
2012-07-12
, 23:09
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#7
|
you only need to do mv and chmod the 1st time
after that simply become root & start it
The Following User Says Thank You to Halftux For This Useful Post: | ||
|
2012-07-12
, 23:27
|
|
Posts: 1,359 |
Thanked: 1,292 times |
Joined on Oct 2011
@ Tartus.Syria
|
#8
|
|
2012-07-13
, 01:49
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#9
|
|
2012-07-13
, 03:43
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#10
|
Thank you misterc for explaining. And sorry for my poor explanation. This application is atm a prerelease so only binary. I think it will grow in the future to a deb package and will get a shortcut
However you can run it also at user, the script that will be generated from the application uses gainroot to execute iptables.
I don't know if you run it the first time as root if it still working as user. It could be that after executing as root at first time that the user don't have the rights to the created directory and script. I will look and report.
And sorry for using windows shame on me. For linux I need to install the designer I have only installed the scratchbox environment.
@imo you are welcome. I wanted such application too and makes me happy that it is also useful for other people.
@D@vIcHoJD good to hear.
Hi all,
This application was born out of boredom due to the loss of DSL connection.
I used the N900 as my router, the poor bandwith forced me to do local stuff on my computer like programming.
In 2012 the version 1.0.0 took part in the coding competition. http://wiki.maemo.org/Maemo.org_Coding_Competition_2012
Genwall started in principle as an iptable firewall script generator. These days it can do a bit more.
It is very useful if you want to route or forwarding to another network.
The generated firewall script is based on this example:
http://www.debuntu.org/iptables-how-...et-connection/
There are the same chains defined, but genwall you can choose logging or not.
- creating connections with Wlan-ad-hoc, USB, BT
- you can activate forwarding from internet from and to any device
- set your firewall script, open ports, forwarding ports
- gives network and iptable informations
- you can modify start scripts or the firewall script by yourself with an editor
- it can read syslog file
requirements:
- you need to start application as root
- sysklogd (only if you want to enable logging)
All files genwall creates are in "/home/user/.genwall/".
[local->basics]
"gen" button = generates firestart.sh
"start" button = runs the script
"stop" button = generates and runs firestop.sh script
First steps would be:
Choose your "WAN-device" (local->basics) and your "LAN-device" (for/out->forward)
and generate your script. After this you can start it to set the firewall up.
Solid scripts you will find in /opt/genwall/
These script are based on forum members and applications
maybe you want to add something
bt_on.sh (route->BT: start button)
bt_off.sh (route->BT: stop button)
hotspot.sh (route->Wifi: adhoc button)
hotspot_off.sh (route->Wifi: adhoc button)
wifi.sh (route->Wifi: wifi start/stop button)
ssh-status.sh (local->SSH: start/stop button)
usb_on.sh (route->USB: start button)
usb_off.sh (route->USB: stop button)
usbmodule.sh (route->USB: module 3x button)
Install help
extract genwall_help_vx.x.tar.gz to /home/user/.genwall/
Install and configure sysklogd for use with genwall
Make persistent bootfile
Domain filter and iptable blacklist
Download an Ad-domain list
Linux Bluetooth PAN connection and internet sharing
Windows Bluetooth PAN connection and internet sharing
For more screenshots and little description go to:
http://www.setius.net/n900_genwall.html
Have fun generating your rules. Comments are welcome.
Old requirements:
- you need to start application as root
- iptables of course
- sudser (only if you want to start with desktop icon) no more needed since v1.0.1
- rootsh for gainroot no more needed since version 1.0.4
- sysklogd (only if you want to enable logging)
Old Deb file v0.0.2 by sifo
For N900 the application is in extras-devel now.
For N9(50) the application is in a very experimental stage.
Last edited by Halftux; 2015-07-29 at 10:39. Reason: added new N950 version