From 4348cbb93645b06a8d3f0ad658239301bdd7afb9 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 3 Dec 2007 15:35:31 +0000 Subject: Cleaning up GuidedSetupCode and only focusing on AdvancedUsers Interface git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@400 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-advanced-html.lsp | 28 ++++++++++++++++++ shorewall-check-html.lsp | 14 +++++---- shorewall-controller.lua | 2 +- shorewall-edit-html.lsp | 10 ++++++- shorewall-list-html.lsp | 10 ------- shorewall-model.lua | 6 ++-- shorewall-read-html.lsp | 72 ++------------------------------------------- 7 files changed, 53 insertions(+), 89 deletions(-) create mode 100644 shorewall-advanced-html.lsp delete mode 100644 shorewall-list-html.lsp diff --git a/shorewall-advanced-html.lsp b/shorewall-advanced-html.lsp new file mode 100644 index 0000000..043b58b --- /dev/null +++ b/shorewall-advanced-html.lsp @@ -0,0 +1,28 @@ + + +

Firewall configuration

+ + +

MENU

+ +
+
Go back to start page
+ + +

ADVANCED

+ + + + + + + + + + + + + + + + diff --git a/shorewall-check-html.lsp b/shorewall-check-html.lsp index 0378928..a31b947 100644 --- a/shorewall-check-html.lsp +++ b/shorewall-check-html.lsp @@ -2,20 +2,24 @@

Firewall configuration

-

SHOREWALL CHECK RESULT

- +

MENU

-

SHOW CONFIG FILES

+
+
Go back to start page
-
+
Provide a autogenerated list of files in '/etc/shorewall'.
+ +

SHOREWALL CHECK RESULT

+ +

MANAGEMENT

Preform check of configs
-
Preform restart of firewall
+
Preform fw restart
" method="POST">
Edit configuration +

MENU

+ +
+
Go back to start page
+ +
+
Provide a autogenerated list of files in '/etc/shorewall'.
+

Details

File name
@@ -19,7 +27,7 @@ - +

diff --git a/shorewall-list-html.lsp b/shorewall-list-html.lsp deleted file mode 100644 index dc18373..0000000 --- a/shorewall-list-html.lsp +++ /dev/null @@ -1,10 +0,0 @@ - - -

Firewall configuration

- -

EXISTING FILES

- - -
-
Last modified:
- diff --git a/shorewall-model.lua b/shorewall-model.lua index 311ad86..b6f6c39 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -31,11 +31,11 @@ function check_config () end function restart_service () - -- FIXME: Read getstatus AFTER restart so the new 'restart date' is shown. - local status = get_status() local f,err = io.popen("/etc/init.d/shorewall restart") - status.restart = f:read("*a") + local restart = f:read("*a") f:close() + local status = get_status() + status.restart = restart return status end diff --git a/shorewall-read-html.lsp b/shorewall-read-html.lsp index 5910c30..264c4a5 100644 --- a/shorewall-read-html.lsp +++ b/shorewall-read-html.lsp @@ -2,65 +2,9 @@

Firewall configuration

-

GENERAL

+

MENU

-
-
Modify global configuration settings.
- -
-
Define variables used in the other configuratino files.
- -
-
Name network partions. Firewal rules are applied to defined zones.
- -
-
Map physical interfaces to named zones.
- -
-
Map individual hosts or networks to named zones.
- -

FIREWALLING

- -
-
Set default rules (policies) for zones.
- -
-
Define exceptions to policies.
- -
-
Define hosts that can access this host when the firewall is "stopped".
- -
-
Specify ipsec tunel endpoints.
- -
-
List ip addresses or names that should be denied all access to the firewall.
- -

NAT

- -
-
Define dynamic Masquerading or DNAT tables.
- -
-
Define static Network Address Translation tables.
- -

QOS

- -
-
Specify type of service markers for packets traversing the firewall.
- -
-
Define traffic control devices.
- -
-
Define traffic control classes.
- -
-
Define traffic control rules.
- -

SHOW CONFIG FILES

- -
+
Provide a autogenerated list of files in '/etc/shorewall'.

SYSTEM INFO

@@ -74,24 +18,14 @@
Program state
-Show shorewall details -
[connections] Displays the IP connections currently being tracked by the firewall
---]] ?> -

MANAGEMENT

Preform check of configs
-
Preform restart of firewall
+
Preform fw restart
-Preform refresh of configs -
Involves black list, ECN control rules, and traffic shaping...
---]] ?> -
FileSizeLast Modified