Anyone have an example of a simple shell script that solicits a (Y)es or (N)o response from the user. If the response is 'Y' display a message on the screen that thanks the user for the positive response. If the response is 'N' display a message that thanks the user for the negative response. If... (15 Replies)
Hi, I need help writing a unix script to change the time in the server automatically when it reaches a specified time.
Only on the 14th of april, when the time becomes midnight (00:00:00), I need the server to change the time automatically to 23:30:00 and start working on as usual with a... (2 Replies)
hi all
i am having a file(a fixed length file) of 28 bytes.The file has account number from 5th place to next 16 digits.
the file looks like below,
58331600563588885696ACXT5263
58331600563588885697ACXT5263
58331600563588885698ACXT5263
i want to write a script which will extract the... (8 Replies)
Here is the script I am trying to write along with my answer I wrote. Please help me understand why it doesn't work.
Create an executable script file called "newname" that will perform the followings:
1. Rename a file upon the user's request. If the file exists, prompt the user for... (1 Reply)
Hi,
I have written a script which converts a give hexdecimal value to binary value in perl. But now, the problem is I should read every bit of it ( if its 10101010, i should read the value in each position and if the value in that position is 1 i should print a string and should exit if its... (1 Reply)
hello all,
I have a script, used to search for the strings from the set of 5 similar pattern file from the log dir. So here it goes . The input parameter is a part of the file name. When during the script execution, the script should parse the input parameter to original file's with the same... (0 Replies)
Dear Madam/Sir
Who can help me with writing a script doing the following?
1- Read names of files (only files with special name format let say initially they have the same file name start like TT*)
2- Then create an empty files with the same names have been read in step one but with extension... (1 Reply)
i need some help in donig some actions on files in a library.
i want to get the n last files, and print to the screen their name, date, and how many times a specific string appears in each file..
how can i do this..?... (6 Replies)
:wall:
Can't seem to figure out how to fix this please help
its not starting over like I would like it to
When I enter in "Date" or "Time" nothing comes
Also if you can tell me the commands for the other 3 stuff that would be much appreciated
#!/bin/bash
clear
while ; do
echo... (8 Replies)
I am new for script writing. I have a file named as name.dat and contain numbers with different rows and columns. I want to sum numbers at one row with that of at another row; like row1 + row101 + row 201, with corresponding columns. Any one can help me to write a script for this operation.
... (1 Reply)
Discussion started by: kumnegert
1 Replies
LEARN ABOUT DEBIAN
gufw
gufw(8) System Manager's Manual gufw(8)NAME
Gufw - Graphic user interface for managing ufw
DESCRIPTION
Gufw is an easy to use Ubuntu / Linux firewall, powered by ufw.
Gufw is an easy, intuitive, way to manage your Ubuntu firewall. It supports common tasks such as allowing or blocking pre-configured, com-
mon p2p, or individual ports port(s), and many others! Gufw is powered by ufw. Introduction iptables is already a very powerful tool by
itself, but it's syntax can get awkward at times and hard to figure out, so Ubuntu developers decided to make ufw ("The reason ufw was
developed is that we wanted to create a server-level firewalling utility that was a little bit more for `human beings`"), which was to be
simpler. Now, on the graphical side of things, Firestarer already existed. But why not make an even easier to use GUI for desktop `human
beings`, powered by ufw? This is where Gufw comes in.
RUN
You can run Gufw in GNOME menu: /System/Administration/Firewall configuration
USAGE BASIC SETTINGS
Gufw has two states: Enabled and disabled. When Gufw is enabled, you can allow/reject/deny all incoming and outgoing connections.
ADD PRECONFIGURED RULE(S)
You can select between more Programs and Services preconfigured. Once Program/Service can have multiples rules.
ADD SIMPLE RULE(S)
You can specify the port or service, and protocol to be allowed (allow traffic), reject (reject traffic without reply), denied (deny traf-
fic with reply), limit (limit traffic) on the host, or limit an IP or Port (Protecting against brute-force login attacks). The port can be
a number of 5 digits, from 1 to 65535. The service can be any of /etc/services file (By example tcpmux, echo, discard, systat...). The
protocol can be:
1. TCP: Apply rule for all traffic in protocol TCP.
2. UDP: Apply rule for all traffic in protocol UDP.
3. both: Apply rule for all traffic in protocol TCP and UDP.
ADD ADVANCED RULE(S)
You can add an advanced rule. You can specify:
1. Protocol: TCP, UDP or both.
2. From IP Addres: You can allow/deny/reject/limit traffic from IP address. Example for a range: 192.168.1.0/9
3. From Port: You can allow/deny/reject/limit traffic from a port. This parameter is optional. The port can be a number of 5 digits,
from 1 to 65535. You can use a range ports with this format port1:port2 (by example 3234:3237), or add multiple ports with port1,port2 (by
example 3234,3254).
4. To IP Addres: You can allow/deny/limit traffic to an IP address. This parameter is optional. Example for a range: 192.168.1.0/9
5. To Port: You can allow/deny/reject/limit traffic to a Port. This parameter is optional. The port can be a number of 5 digits, from 1
to 65535. You can use a range ports with this format port1:port2 (by example 3234:3237).
GENERAL TO PRECONFIGURED / SIMPLE / ADVANCED
With the extended parameters you can:
1. Insert a rule in a specific row.
2. Set the log level for ufw.
REMOVE ONE RULE
Steps:
1. Select a rule in the list.
2. Click in Remove button. You can delete more rules if you select it.
RESET CONFIGURATION
You will remove all rules and reset the ufw configuration to intial status (disable)!
EDIT PREFERENCES
You can edit your preferences in /Edit/Preferences menu. Preferences:
1. Gufw log: Gufw will register all commands sent to ufw.
2. ufw log: Enable/disable and set the level of the ufw log.
3. Listening Report: Will display the ports on the live system in the listening state for TCP and the open state for UDP.
4. Notification popups: Gufw will notify the new connections in the Listening Report.
SEE ALSO ufw(8)AUTHOR
Gufw is (C) 2008-2011, Marcos Alvarez Costales <https://launchpad.net/~costales>.
This manual page was originally written by Marcos Alvarez Costales <https://launchpad.net/~costales>.
13 Feb 2011 gufw(8)