| 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 : |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd"> <HTML> <HEAD> <TITLE>PHP Firewall Generator -- Help Index</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <TABLE WIDTH=100% BGCOLOR=#339933> <TR> <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=+2 COLOR=WHITE>PHP Firewall Generator: Help</FONT></TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=2 CELLPADDING=4> <TR><TD> </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> <HR></TD></TR> <TR><TD ALIGN=LEFT VALIGN=TOP> <B>Index:</B> </TD> <TD> Help Index: <P> <UL> <LI><A HREF="help-interfaces.html">Interfaces</A> <LI><A HREF="help-protocols.html">Protocols</A> <LI><A HREF="help-services.html">Services</A> <LI><A HREF="help-openports.html">Open Ports</A> <LI><A HREF="help-netobjects.html">Network Objects</A> <LI><A HREF="help-rules.html">Firewall Rules</A> <LI><A HREF="help-portfwd.html">Port Forwarding Rules</A> <LI><A HREF="help-redir.html">Redirector Rules</A> </UL> <HR></TD></TR> <TR><TD ALIGN=LEFT VALIGN=TOP> <B>TODO:</B> </TD> <TD> To Do List: <P> <UL> <LI>Install the script automatically. <LI>Start and stop the firewall. <LI>Automatic VPN configuration. <LI>Negation rules, when an object is prepended by "!" in the files. <LI>Support for <A HREF="http://netfilter.kernelnotes.org/">NAT/iptables/ipfilter</A> <LI>Currently a rule that allows all outgoing traffic on all ports also allows all incoming non-SYN traffic on all ports (for TCP responses). It'd be better to allow only incoming traffic on the ports that were actually in use for outgoing socket connections, but this isn't possible in ipchains. Currently this is attempted for UDP by allowing incoming packets packets on the high ports (1024:65535) but this is unsuitable since many programs now bind to UDP ports in this range for incoming connections, and also these ports are often used for hacks (eg: NetBus, BackOrifice). Find a good solution to this problem! <LI>A partial solution is to DENY incoming connections on known bad UDP ports (eg: 12345 and 23456 for NetBus). These must be in place before other (legal) outgoing UDP connections (eg: for DNS). <LI>A better solution might be to use the stateful packet filtering code at ftp://ftp.interlinx.bc.ca/pub/spf/ <LI>Find a more comprehensive /etc/services file somewhere. OK, I found one. It's big. </UL> <HR></TD></TR> <TR><TD ALIGN=LEFT VALIGN=TOP> <B>Credits</B> </TD> <TD> I got some ideas from various places, including Godot's Muse and IPCHAINS-FIREWALL V1.6.2m by Ian Hall-Beyer. Ed McLain took my code and used it in PHPChains, so I took parts of his ideas back and incorporated them. <P> <HR></TD></TR> </TABLE> </BODY> </HTML>