Article View: alt.privacy.anon-server
Article #261839A script to make the UFW firewall easier to use
From: Retired Admin
Date: Fri, 22 Mar 2013 17:21
Date: Fri, 22 Mar 2013 17:21
65 lines
3226 bytes
3226 bytes
UFW is a good firewall that comes with linux. It has a nice adjunct in GUFW which is a gui interface that lets you create statements for use by UFW. I put together a script to make adding and removing UFW firewall statements an easier task. It is at http://apasreader.yolasite.com, ufwchange.zip. So, for example, you might create a file containing the firewall statements that will set up the usual allowed I/O. They might look like this: enable logging medium allow out 123/udp allow out 1723/tcp allow out 22/tcp allow out 80/tcp allow out 25/tcp allow in 9825/tcp allow out 995/tcp allow out 587/tcp allow out 5060:5080/tcp deny out to any deny in from any Save them in <file> Type, at a command line: ufwc reset then: ufwc <file> and your firewall is running using the statements in <file>. I have used it for several years without a problem, but make no promises that it will work for you, or will not leave your system open to hackers who will steal your identity and money, or will not destroy important data. Give it a try if you like. Here is the help file: ufwc arg2 - add the ufw commands in file arg2 ufwc del arg2 - delete the already-existing ufw commands in file arg2 ufwc deleterules - deletes all the rules in /lib/ufw and /etc/ufw ufwc display - displays current rules ufwc enable - enables the firewall ufwc lock - disables all input/output ufwc open - I/O is enabled without restriction ufwc reset - removes all existing rules and disables UFW ufwc start - enables UFW with basic rules A couple of sample files of commands are included to give you an idea of how they are coded. And you can get others by running GUFW and looking at the log file from it. Remember: I guarantee nothing about the scripts. I am not even completely sure how the firewall works. But try it if you like. Questions? Email me at the 'from' address.
Technical Details
Message-ID:
<Rq03t.191499$t82.16754@newsfe12.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!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe12.iad.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <Rq03t.191499$t82.16754@newsfe12.iad> Subject: A script to make the UFW firewall easier to use Date: Fri, 22 Mar 2013 17:21:53 GMT From: Retired Admin <m8r-ba41m11@suremail.info> 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!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe12.iad.POSTED!not-for-mail Newsgroups: alt.privacy.anon-server User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines: 65 X-Complaints-To: abuse@UsenetServer.com NNTP-Posting-Date: Fri, 22 Mar 2013 17:21:53 UTC X-Received-Bytes: 2564 X-Original-Bytes: 2944