~ubuntu-branches/ubuntu/karmic/kmyfirewall/karmic

« back to all changes in this revision

Viewing changes to templates/03_nat_router_template.tkmfrs

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2005-12-17 13:42:07 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20051217134207-mo1m08da6szv41u7
Tags: 1.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE kmyfirewall-ruleset>
 
2
<kmfrs>
 
3
 <abstract use_nat="yes" use_filter="yes" use_syn_cookies="yes" use_ipfwd="yes" use_martians="no" use_modules="yes" use_rp_filter="no" name="Nat Router Template" use_mangle="yes" description="Template for setting up a NAT (Network Address Translation) router. 
 
4
This kind of router is ment to be used to share an Internet connection with other hosts on the local LAN." />
 
5
<table id="0" name="filter" description="This table is the main table for filtering
 
6
packets. Here you may define your
 
7
access control rules" >
 
8
<chain default_target="ACCEPT" builtin="yes" id="1" name="INPUT" description="In this chain you can filter packets that
 
9
are addressed directly to this computer." />
 
10
<chain default_target="ACCEPT" builtin="yes" id="2" name="OUTPUT" description="In this chain you can decide which
 
11
packets are allowed to be sent away
 
12
from this computer." />
 
13
<chain default_target="ACCEPT" builtin="yes" id="3" name="FORWARD" description="In this chain you can filter the packets
 
14
that are routed to other hosts by this
 
15
computer." />
 
16
</table>
 
17
<table id="4" name="nat" description="This table is made for every kind of
 
18
NAT (Network Address Translation)." >
 
19
<chain default_target="ACCEPT" builtin="yes" id="5" name="OUTPUT" description="In this chain you can decide which
 
20
packets are allowed to be sent away
 
21
from this computer." />
 
22
<chain default_target="ACCEPT" builtin="yes" id="6" name="PREROUTING" description="..." />
 
23
<chain default_target="ACCEPT" builtin="yes" id="7" name="POSTROUTING" description="..." >
 
24
<rule num="0" logging="no" target="MASQUERADE" custom_rule="no" id="975" name="NAT" enabled="yes" description="No Description Available" >
 
25
<ruleoption targetoption="no" type="interface_opt" id="977" >
 
26
 <ruleoptionvalue value0="bool:off" />
 
27
 <ruleoptionvalue value1="eth0" />
 
28
 <ruleoptionvalue value2="bool:off" />
 
29
 <ruleoptionvalue value3="bool:off" />
 
30
 <ruleoptionvalue value4="bool:off" />
 
31
 <ruleoptionvalue value5="bool:off" />
 
32
 <ruleoptionvalue value6="bool:off" />
 
33
 <ruleoptionvalue value7="bool:off" />
 
34
 <ruleoptionvalue value8="bool:off" />
 
35
 <ruleoptionvalue value9="bool:off" />
 
36
</ruleoption>
 
37
</rule>
 
38
</chain>
 
39
</table>
 
40
<table id="8" name="mangle" description="This table is made for altering packets." >
 
41
<chain default_target="ACCEPT" builtin="yes" id="9" name="INPUT" description="In this chain you can filter packets that
 
42
are addressed directly to this compter." />
 
43
<chain default_target="ACCEPT" builtin="yes" id="10" name="OUTPUT" description="In this chain you can decide which
 
44
packets are allowed to be sent away
 
45
from this computer." />
 
46
<chain default_target="ACCEPT" builtin="yes" id="11" name="FORWARD" description="In this chain you can filter the packets
 
47
that are routed to other hosts by this
 
48
computer." />
 
49
<chain default_target="ACCEPT" builtin="yes" id="12" name="PREROUTING" description="..." />
 
50
<chain default_target="ACCEPT" builtin="yes" id="13" name="POSTROUTING" description="..." />
 
51
</table>
 
52
</kmfrs>
 
53