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/help-redir.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<HTML>

<HEAD>
<TITLE>Help: Redirector Rules</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">

<TABLE WIDTH=100% BGCOLOR=#339933>
<TR>
  <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=+2 COLOR=WHITE>Help: Redirector Rules</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>

Enter your redirector rules here.  You need to enter the following
for each rule:

<UL>
<LI><B>Rule Number</B>: This defines where the rule is entered into
the list.  For example, to enter a new rule between 100 and 200,
number it "150".  The rules will be re-numbered on each iteration
of the firewall, so you can continue entering rules between each
new pair of rules.  If you leave this blank then the rule will go
at the end of the rule set.
<LI><B>Source</B>: Select a source network object (where the packet
is coming from).
<LI><B>Destination</B>: Select a destination network object (where the
packet is going to).
<LI><B>Protocol</B>: Select a network protocol, udp or tcp.
<LI><B>From Port</B>: What port the redirection is starting from
(what port the packet was originally sent to).  For example, to redirect
traffic for external web servers, enter the port name <B>www</B>.
<LI><B>To Port</B>: Select the port that
the packet is to be redirected to.  For example, if you have a squid
proxy server on the firewall, listening on port <B>squidproxy</B>, then
enter the port name <B>squidproxy</B>.
</UL>

Note that the <B>From Port</B> and <B>To Port</B> must both use
the same protocol.  You cannot redirect a TCP connection to a UDP port.
<P>

You also need to have <B>CONFIG_IP_TRANSPARENT_PROXY</B> defined in your
kernel.  The connection will always be redirected to a socket on
the <B>local</B> (firewall) host -- if you want to redirect it elsewhere
then you must use <B>in.tproxyd</B> from the <B>transproxy</B> package.

<HR></TD></TR>

<TR><TD ALIGN=LEFT VALIGN=TOP><B>What is<BR>Redirection?</B></TD>
<TD>

Redirection is used for transparent proxies.
<P>

You can use redirection to "catch" outgoing WWW requests going through
your firewall, and redirect them to a proxy server running on the firewall.
<P>

The proxy server must be capable of acting as a transparent proxy
(eg: squid).  Make sure that you have defined the following rules
within the squid configuration file:
<P>

<PRE>
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
</PRE>

You need to have masquerading turned on for a network object in order
for redirection for that network object to work.

<HR></TD></TR>

<TR><TD ALIGN=LEFT VALIGN=TOP><B>Example<BR>Rules</B></TD>
<TD>

Here is the basic squid redirection rule:

<UL>
<LI>Source Destination Protocol From Port To Port
<LI>ETH0_NET ALL tcp www squidproxy
</UL>

<HR></TD></TR>

<TR><TD ALIGN=LEFT VALIGN=TOP><B>Tricks and<BR>Traps</B></TD>
<TD>

There are no functions to renumber, copy, or move a rule in this system.
Some ways around this include:

<UL>
<LI>To copy a rule:  Click on the "Edit" icon, and change the rule number.
For example, to make a copy of rule 3100, edit it, and change the rule
number field in the edit window to 3150.  When this is saved it will appear
as a new rule.
<LI>To move or renumber a rule:  Copy the rule to the new location, then
delete the old rule.
<LI>To delete a bunch of rules:  Click the delete button multiple times.
How lazy can you get?
</UL>

<HR></TD></TR>

</TABLE>

</BODY>
</HTML>

Youez - 2016 - github.com/yon3zu
LinuXploit