🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #250182

Fwall - A Possibly Useful Iptables Shell

#250182
From: joe
Date: Sat, 06 Aug 2011 13:18
110 lines
4533 bytes
I tried another firewall, this one called 'ipkungfu'. Using it, you
put iptables commands into /etc/ipkungfu/custom.conf.

The good thing about is that it lets you have more control over the
firewall than, say, ufw.

The bad thing about it is that you have to code the iptables
commands.

As I understand it, iptables was written to make the commands sent
to netfilter comprehensible to humans; but the iptables syntax is
so bizarre that people wrote 'shells' using more human-readable
commands which control iptables which controls netfilter.

Examples of such shells would be ufw and guarddog.

One I put together is called FWALL. It runs Ipkungfu, but makes
moving the commands into and out of use much easier than doing
it manually, and allows you to keep open a minimum of ports.

For example, if you are downloading a torrent file, you have to
open a load of ports. Using FWALL, you can open them at the start
of the download and close them when you are finished, using
simple commands.

Luckily, there are some good examples around of iptables
commands, which make using FWALL possible for the average human
being, and most of the commands you will need are already coded
into FWALL's 'start' file.

So here is what you do if you want to use it:

Install ipkungfu. Nothing to that.

Go to apasreader.yolasite.com and download fwall.zip.
Unzip it to a folder in your PATH.

Edit /argtwo/start. Find out what IPs you are contacting when you
try to use your email client's pop3 and smtp accounts; and what IPs
you are contacting when you try to log in to your online banking
account, your voip provider account, etc. etc.

Whenever you find out what the IP or IPs are, go to start and
change the appropriate IP - It has a list of dummy IPs with a
notation of what they are for - change them as appropriate;
or add your own iptables statements.

Change 192.68.0.94 to whatever the ip is that your pc uses.

I suggest you download, from apasreader.yolasite.com, and run,
GDLOG to see what IPs you are trying but failing to contact. Or
look at /var/log/syslog (that is like tracking a moving target,
though).

Once you have 'start' set up, just type in: 

sudo fwall start

and 'start' will be copied to /etc/ipkungfu/custom/conf, and
ipkungfu will be run, and your firewall will be active.

If, later, you want to run skype for example, type in: 

sudo fwall add skype

and the skype commands in /argtwo will be added to
custom.conf.  

When you are finished with skype, type in: 

sudo fwall erase skype

and the skype commands will be removed from custom.conf.


Here is the syntax for the commands you can use with fwall:

fwall status 		- shows whether or not the firewall is
active

fwall display 		- display /etc/ipkungfu/custom.conf

fwall lock		- block everything

fwall open		- let everything through

fwall resume		- re-start using the existing custom.conf
rules after a "lock" or "open"

fwall start		- copy the "start" rules to custom.conf -
overlay anything already there

fwall add <arg1>	- add the lines in the file
/fwall/argtwo/<arg2> to custom.conf

fwall erase <arg2>	- erase the lines in custom.conf which
match those in the file /fwall/argtwo/<arg2>

If you know how to further manipulate ipkungfu to get more control
over it, let us know.







-- 
http://apasreader.yolasite.com - remailer utilities
Technical Details
Message-ID: <0bb%p.53975$7K4.52871@newsfe14.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe14.iad.POSTED!00000000!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <0bb%p.53975$7K4.52871@newsfe14.iad>
Subject: Fwall - A Possibly Useful Iptables Shell
Date: Sat, 06 Aug 2011 13:18:52 GMT
From: joe <joe@nowhere.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe14.iad.POSTED!00000000!not-for-mail
Newsgroups: alt.privacy.anon-server
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 110
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Sat, 06 Aug 2011 13:18:52 UTC
X-Original-Bytes: 4187