mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-05 13:08:50 +01:00
Help the helpless
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4175 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e6d9444402
commit
566671df34
@ -15,7 +15,7 @@
|
|||||||
</author>
|
</author>
|
||||||
</authorgroup>
|
</authorgroup>
|
||||||
|
|
||||||
<pubdate>2006-01-19</pubdate>
|
<pubdate>2006-06-27</pubdate>
|
||||||
|
|
||||||
<copyright>
|
<copyright>
|
||||||
<year>2004</year>
|
<year>2004</year>
|
||||||
@ -195,17 +195,37 @@
|
|||||||
|
|
||||||
<para><filename>/etc/shorewall/zones</filename>:</para>
|
<para><filename>/etc/shorewall/zones</filename>:</para>
|
||||||
|
|
||||||
<programlisting>#ZONE DISPLAY COMMENT
|
<programlisting>#ZONE TYPE
|
||||||
net Internet The big bad net
|
fw firewall
|
||||||
loc Local Local LAN
|
net ipv4
|
||||||
<emphasis role="bold">rem Remote Remote LAN</emphasis></programlisting>
|
loc ipv4
|
||||||
|
<emphasis role="bold">rem ipv4</emphasis></programlisting>
|
||||||
|
|
||||||
<para><filename>/etc/shorewall/interfaces</filename>:</para>
|
<para><filename>/etc/shorewall/interfaces</filename>:</para>
|
||||||
|
|
||||||
<programlisting>#ZONE INTERFACE BROADCAST OPTION
|
<programlisting>#ZONE INTERFACE BROADCAST OPTION
|
||||||
net eth0 detect norft1918,routefilter
|
net eth0 detect norft1918,routefilter
|
||||||
loc eth1 detect
|
loc eth1 detect
|
||||||
<emphasis role="bold">rem tun0 192.168.10.0/24</emphasis></programlisting>
|
<emphasis role="bold">rem ppp0 192.168.10.0/24</emphasis></programlisting>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Allowing Traffic</title>
|
||||||
|
|
||||||
|
<para>Normally, you will just allow all traffic between your remove
|
||||||
|
client(s) and the local zone. You can do that with a couple of
|
||||||
|
policies:</para>
|
||||||
|
|
||||||
|
<programlisting>#SOURCE DESTINATION POLICY LEVEL BURST/LIMIT
|
||||||
|
rem loc ACCEPT
|
||||||
|
loc rem ACCEPT</programlisting>
|
||||||
|
|
||||||
|
<para>Similar policies using $FW rather than 'loc' can permit traffic from
|
||||||
|
the remote clients to/from the firewall.</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Different Firewall Policies for Different Remote Systems</title>
|
||||||
|
|
||||||
<para>The /etc/shorewall/hosts file comes into play when:</para>
|
<para>The /etc/shorewall/hosts file comes into play when:</para>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user