🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
2 messages
2 total messages Started by Retired Admin Fri, 22 Mar 2013 17:21
A script to make the UFW firewall easier to use
#261839
Author: Retired Admin
Date: Fri, 22 Mar 2013 17:21
65 lines
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.
Re: A script to make the UFW firewall easier to use
#261846
Author: At Large
Date: Fri, 22 Mar 2013 20:13
8 lines
984 bytes
There were a few infelicities which I corrected; the new version is up at 
http://apasreader.yolasite.con, ufwchange.zip.

After you have it running, type: 

	ufwc help

to see the syntax. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads